Professional Documents
Culture Documents
In this KB, we will see how to upgrade the kernel on Red Hat Linux Enterprise systems. We
will show you how to perform a automated upgrades of the kernel using the yum and rpm
package management tools.
Before continuing on, a word of caution. I recommend avoiding kernel updates unless absolutely
necessary. Generally speaking, if it's not broke, don't try and fix it. So unless there is a
vulnerability or lack of hardware/driver support in the currently installed kernel on your system,
I would recommend against the installation of a new/updated kernel. Installing a new kernel
could have wide spread and unknown consequences to your system and/or might not be
supported by your hardware/installed software. Now that I got that off my chest, I'll get off my
soapbox so we can get to work!
Red Hat use a combination of tools such as yum for package retrieval and rpm for package
management. If you system is registered with the Red Hat Network (RHN), yum will
automatically download and resolve dependencies for rpm based installs. If you system is not
registered with RHN, you can still upgrade the kernel, but you will have to manually resolve any
dependencies (downloading and installing any dependent rpms.) Yum will connect to the RHN
(Red Hat Network) and scan the repository for updated packages (including your kernel.) If
there are updates available, yum will resolve their dependencies and mark the additional
packages for download/installation. Once yum has downloaded all the package(s), it will begin
installing the packages using rpm (this will configure and register the package with the OS.)
1. Before we can use yum, we must first register the server with the RHN (Red Hat
Network).
Note: If you registered your OS at the time of installation, you can skip this step
root@ubuntu:~#
4. Note: If there are no updates available, no output will be produced
Or
[root@Linux01 rhn]#
5. Note: yum returns a list of all available packages
6. A quick check of the system reveals we are running on v2.6.18-8.el5 of the Linux kernel
11. Note: There may also be other available packages that need updating on the system (as
seen above.) Yum should take care of the kernel as well as any other packages and
associated dependencies on the system.
After answering yes to the continue question, yum will pull all the new packages and
their dependencies from the RHN repository. It will then configure them, and update
your boot loader to use the new kernel (requires a reboot).
12. The new kernel is now installed and ready for use. Reboot the system to boot into the
new kernel image