How to compile a Linux kernel

$Revision: 1.8 $
$Date: 2006/03/09 11:54:41 $

Many people don't dare to compile their Linux kernel because they fear that's a complicated and risky task. Actually it isn't for someone having basic Unix knowledge... Besides configuring and compiling your own kernel let you optimize it according to your system setup.

The following example is using a kernel from Mandrake, which should be pretty generic for any RPM-based distribution.
Let's say that your current kernel version is "2.4.25-7mdk", that you want to upgrade to "2.6.3-15mdk" and that you already have downloaded kernel-source-2.6.3-15mdk.i586.rpm into /var/tmp.

As the "root" user:

2004 Roger Seguin http://rmlx.dyndns.org