Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am rebuilding a custom kernel. I am on Windows, what is the quickest way to grab the .config file for the CentOS RHEL linux kernel (for make oldconfig). I can't find it preinstalled in the Linux system (e.g. no /proc/config.gz) I am assuming it is in a source RPM somewhere. Do you have a link?

share|improve this question
up vote 2 down vote accepted

It's /boot/config-$(uname -r).

share|improve this answer

I can't find it preinstalled in the Linux system (e.g. no /proc/config.gz)

Because you haven't enabled CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC. The Linux kernel configuration is also found in the kernel source /usr/src/linux/.config (in CentOS, it is /usr/src/kernels/$(uname -r)-$(uname -m)/.config).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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