Performing the Upgrade


Now that you have the necessary kernel RPM packages, you can upgrade your existing kernel. At a shell prompt as root, change to the directory that contains the kernel RPM packages and follow these instructions.

Tip

It is strongly recommended that you keep the old kernel in case you have problems with the new kernel.

Use the -i argument with the rpm command if you want to keep the old kernel, as shown in the following command. Note that, if you use the --U option to upgrade the kernel package, the installation process will overwrite the currently installed kernel (the kernel version and x86 version might vary):

rpm -ivh kernel-2.4.18-7.95.i386.rpm

For a multi-processor system, install the kernel-smp packages as well (the kernel version and x86 version might vary):

rpm -ivh kernel-smp-2.4.18-7.95.i386.rpm

If the system is i686-based and contains more than 4GB of RAM, install the kernel-bigmem package built for the i686 architecture as well (the kernel version might vary):

rpm -ivh kernel-bigmem-2.4.18-7.95.i686.rpm

If you plan to upgrade the kernel-source, kernel-docs, or kernel-utils packages, you probably do not need to keep the older versions. Use the following commands to upgrade these packages (the versions might vary):

rpm -Uvh kernel-source-2.4.18-7.95.i386.rpm rpm -Uvh kernel-docs-2.4.18-7.95.i386.rpm rpm -Uvh kernel-utils-2.4.18-7.95.i386.rpm

If you are using PCMCIA (for example, on a laptop), you also need to install the kernel-pcmcia-cs package and keep the old version. If you use the -i switch, the installation process will probably return a conflict because the older kernel needs this package in order to boot with PCMCIA support. To work around this, use the --force switch as follows (the version might vary):

rpm -ivh --force kernel-pcmcia-cs-3.1.24-2.i386.rpm

If you are using the ext3 file system or a SCSI controller, you need an initial RAM disk. The purpose of the initial RAM disk is to allow a modular kernel to have access to modules that it might need to boot from before the kernel has access to the device where the modules normally reside.

The initial RAM disk is created with the mkinitrd command. However, the Red Hat kernel RPM package performs this step for you. To verify that it was created, use the command ls --l /boot. You should see the file initrd-2.4.18-7.95.img (the version should match the version of the kernel you just installed).

Now that you have installed the new kernel, you need to configure the boot loader to boot the new kernel.




Official Red Hat Linux Administrator's Guide
Official Red Hat Linux Administrators Guide
ISBN: 0764516957
EAN: 2147483647
Year: 2002
Pages: 278
Authors: Red Hat Inc

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net