Where can I get the 11.04 kernel .config file?

Each linux-image package contains the exact configuration file that it was built with in /boot/config-*. To see the configuration file for the currently running Linux kernel, do:

  • less /boot/config-$(uname -r)

I have checked with the Ubuntu kernel people (on Freenode #ubuntu-kernel) and they have confirmed my belief that there isn't really "the config", but it is actually constructed at build/compile time by including a number of Kconfig files; these depend on the exact architecture and target (desktop/server/cloud). You should be able to read that (short) conversation at:

  • irclogs.ubuntu.com/2011/03/15/#ubuntu-kernel.html#t13:48

A list of that variety can be found using packages.ubuntu.com and the following search:

  • packages.ubuntu.com/search?keywords=config-2.6

Hunting, around, it would appear that the .config is also included in the linux-headers-* packages. These are .deb files (which are simple .ar archives that will open with file-roller) and only about 800 kB each. If you know the particular target, architecture and version you're after, you can grab these straight from Launchpad or from the archive itself:

  1. archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-header-2.6*.deb
  2. then look in /usr/src/linux-headers-2.6*/.config

If you want to automate the whole process into one command, you could try the following; make sure you keep it all on one line!

  • wget -qO- http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-2.6.38-6-generic_2.6.38-6.34_i386.deb | dpkg-deb --fsys-tarfile /dev/stdin | tar Ox --wildcards './usr/src/*/.config'

Hope that helps!


The kernel team has posted the configs for Natty here:

  • http://kernel.ubuntu.com/~kernel-ppa/configs/natty/

Sources:

  • Mailing list post
  • Wiki page detailing the changes between 10.10 and 11.04

On my Ubuntu 11.10 system the kernel config is in the file '/boot/config-3.0.0-12-generic'.

Tags:

Kernel

11.04