How to find options used to build a package

Sometimes you may want to find out the configuration options that were used to build a package that you download and install. For example, if a certain feature has not been built into a program or library from a package, you may need to build that program or library from source to use that feature.

Finding out the build rules used to build a package is easy:

  • Figure out the source package name that corresponds to the package you are interested in. For example, the source package of libopencv-dev is named opencv.

  • Download the source package. For example:

$ apt-get source opencv
  • You can find the build rules, options and configuration used to build the package in the file debian/rules.

Tried with: OpenCV 2.4.8 and Ubuntu 14.04


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s