Search code examples
cfreebsdbsd

In freebsd, how to know what options were enabled in kernel during Compiling


After compilation, if one wants to know the different options which were enabled during compilation, how can one find out?


Solution

  • Assuming you have kernel config options and if your kernel was built with INCLUDE_CONFIG_FILE option, which should be enabled in GENERIC kernel config on recent BSD versions, then you can retrieve kernel config with sysctl kern.conftxt command.