Compiling the Linux Kernel
From Notes
On Fedora, CentOS, or Red Hat, use the following steps:
- Install ncurses-devel:
-
sudo yum install ncurses-devel
-
- Download the source from kernel.org (any version you like).
- Extract the source in a safe location, do not configure and/or compile as root - use a non-privileged user.
-
cd /home/myuser && mkdir kernels</code - <code>wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.8.tar.gz
-
tar xvzf !$ && cd !$
-
- Configure kernel options:
-
make menuconfig
-
- Compile the kernel and kernel modules
-
make
-
- Install kernel modules:
-
make modules_install
-
- Install kernel (and rebuilds initrd):
-
make install
-
