Upgrading the Linux Kernel on Red Hat Linux systems


Red Hat, Inc.

Table of Contents
Before You Upgrade
The Upgrade
After the Upgrade
Alpha Systems
SPARC Systems
Appendix A: 6.2 and 7.0 Bug fix errata RHSA-2001:013-06 (kernel-2.2.17-14)


One of the most difficult tasks involved with the operation of any operating system concerns the upgrading of the kernel. Unlike the rest of the Red Hat Linux, you cannot simply use the common rpm -Uvh command, reboot the system, and expect the machine to utilize the new kernel properly (or even for your system to boot successfully).

The kernel is a special case. It can test your patience, but with the proper instructions you should be able to handle it. Just remember to stay calm, collected, and always to have a boot disk ready.

By following this guide, you should be able to upgrade your Red Hat Linux 4.2 and higher (including 7.x) system to the latest kernel RPMs on the listed in the correct errata page, available at http://www.redhat.com/support/errata/. This guide will go over what you will need to download and what you will need to write down, helping you move through the various upgrade and post-upgrade steps to get your system to boot and utilize the new kernel.


If you have compiled your own kernel from sources, these instructions can be followed, but you may need to tweak a thing here or there. In this case, write down what you have changed from the defaults, and make sure you have a working rescue boot floppy in case a problem occurs. (Both of these suggestions are good ones no matter what you are doing.)

Platform specific problems

This guide was written specifically for the Intel platform. I am using a Red Hat Linux 5.2 system as an example. If you are trying to upgrade to the 2.2.x kernels on a Red Hat Linux 4.x or 5.x machine, please see http://www.redhat.com/support/docs/howto/kernel-2.2/kernel2.2-upgrade.html. If you have an Alpha or SPARC, you should read the sections that are specific for those platforms.