0

This question already has an answer here:

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?

marked as duplicate by Gilles linux Jan 25 '17 at 1:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

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

/boot/config-<version>

Where version, in my case, is:

3.16.0-4-686-pae

So, issuing:

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

Spits out the kernel configs in a long list!

5

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 at 2:07

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