kernel source

Alan McKinnon alan at linuxholdings.co.za
Tue Mar 21 12:49:07 UTC 2006


On Tuesday 21 March 2006 07:42, Kenneth P. Turvey wrote:
> On Tue, 21 Mar 2006 01:25:33 +0000, Rein Mann wrote:
> > Hi,
> > How can one obtain the sources for the running kernel and its
> > configuration file (.config).
> > I have tried: sudo apt-get install linux-source-`uname
> > --kernel-release` This just tells me: `Couldn't find package
> > linux-source-2.6.12-10-386 Any help welcome.
>
> I can tell you where to get the .config file.  It will be in /boot
> with an appropriate name.

You can also get the config from the current running kernel 
in /prog/config/gz:

zcat /proc/config > <filename>

Handy if you delete the .config in error

-- 
Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five




More information about the ubuntu-users mailing list