Say, I have custom kernel from my distribution, how could I get list of all options the kernel was build with?

It's possible to get them by reading config file from kernel package from vendor's repo, but is there any other way? I mean ways to get that information form the kernel itself, maybe from procfs?


In addition to what @Stephen Kitt said, at least on my Debian system you can find the information in:


Where version, in my case, is:


So, issuing:

less /boot/config-3.16.0-4-686-pae

Spits out the kernel configs in a long list!


If your kernel was built with IKCONFIG_PROC enabled, you'll be able to retrieve the configuration from /proc/config.gz. If it was built with IKCONFIG enabled, you'll be able to extract it from the kernel image using the extract-ikconfig script.

If neither configuration option is enabled, you'll need to read the configuration file from the vendor's repository.

  • Thanks, this is were I found the config in an Android device. – russoue Mar 5 '19 at 2:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.