Is it possible to find out what options packages were compiled with?

I am interested in knowing which options are used to compile vim in the package "vim" as I am trying to compile vim from source on another system, not running Debian/Ubuntu, and would like it to work in a similar way.


Grab the source package

apt-get source vim

That'll download the source for the package in your current dir. Look at debian/rules, which is a makefile used when creating all the different vim packages. It may be hard to read, but the information you seek should be in there somewhere.

You can also download the source package from http://packages.ubuntu.com/source/trusty/vim (scroll down) if you can't log into a debian/ubuntu box to run apt-get.


vim --version will list all the options in ubuntu.