The idea of upgrading and recompiling the Linux kernel strikes fear into many. While the steps are labor- intensive , there is nothing difficult about this process.

The easiest way to upgrade a kernel is to install a newer Red Hat Linux kernel RPM package. When installed and not upgraded, a new kernel automatically upgrades the bootloader as well. Alternatively, if the upgrade is small, you can download and install a patch.

If you want to change the configuration of a kernel, the process is long. Here s a summary of the basic steps:

  1. Download the source code for the new kernel: tarballs from Internet sites such as or Red Hat RPMs.

  2. Install the RPMs associated with kernel tools such as menuconfig or xconfig .

  3. Navigate to the directory with your kernel source code. Select a value for EXTRAVERSION in the Makefile . Back up any current hidden .config file. Clean the current source code with the make mrproper command.

  4. Use a baseline configuration; some are available in /boot , others in the configs subdirectory. Alternatively, you could use the local .config file or create one with the make oldconfig command.

  5. Open a kernel configuration editor using make menuconfig or make xconfig . Make your changes and save.

  6. Set up the dependencies with the make dep command.

  7. Create a compressed kernel image with the make bzImage command. Note the directory with the image.

  8. Copy the kernel that you created to the /boot directory. Name it vmlinuz- xEXTRAVERSION , where x represents the version number of the kernel, and EXTRAVERSION is a variable in the Makefile .

  9. Organize your kernel modules with make modules and make modules_install .

  10. Create an Initial RAM disk for your new kernel with the mkinitrd/boot/initrd- xExtraVersion command.

  11. Modify your bootloader: add a stanza with the new kernel and Initial RAM disk files.

In the next chapter , we ll pick up with other administrative functions. Job managers such as cron and at allow administrators to run programs on an automated basis. Other key administrative skills include log file analysis and service management.


Mastering Red Hat Linux 9
Building Tablet PC Applications (Pro-Developer)
ISBN: 078214179X
EAN: 2147483647
Year: 2005
Pages: 220

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: