|
How To Install and Update A Redhat Linux Kernel RPM
|
This tutorial covers downloading and installing a new kernel for the Redhat distribution of Linux. The Kernel is loaded from the "RPM" package format. This tutorial is most useful for Red Hat 7.1 installations and older which used the Lilo operating system boot loader. Red Hat 7.2 introduced GRUB as the default boot loader and it is configured automatically by the RPM installation. Thus users of Red Hat 7.2-9.0 and Fedora using the GRUB boot loader need not concern themselves with any special configuration requirements. Just install the RPM's and that is it. Use the RPM command "rpm -ivh kernel-2xxx.rpm" and NOT "rpm -Uvh kernel-2xxx.rpm" as is common for most RPM upgrades. The "rpm -Uvh" RPM upgrade command will remove the kernel which is still executing! Use the command "rpm -e kernel-2-OLD.rpm" to remove the old kernel after a system reboot. Also remove reference to the old kernel in the GRUB config file /etc/grub.conf. Typically the removal of the kernel RPM will remove it's entry in /etc/grub.conf.
If installing from kernel source see: YoLinux Tutorial: Compiling the Kernel
If installing on a system with an NVidia graphics card see YoLinux.com: Red Hat installation - Installing the NVidia graphics drivers.
|
Free Information Technology Magazine Subscriptions and Document Downloads
|
Down load RPMs from Redhat (updates.redhat.com) or Metalab:
Note: There are precompiled kernels for various architectures (i386, i586, i686, ...) Check your current kernel for its precompiled architecture with the command uname -m. The kernels marked "smp" are for multiprocessor systems or hyper-threaded systems such as some of the Intel Xenon or P4 processors. Hyperthreading must also be enabled. This is often selected in the BIOS for systems on which this is available. The "smp" (symetric multi-processing) kernels allow for all processors to participate in scheduler tasks as well as all threads (two) in hyper-threaded processors. This will result in significant performance gains on a loaded system.
Install the kernel. Using the "-F" "freshen" option will remove all previous kernel installs. Do this only if you are daringly confident. The install option is prefered and safer because if an error is made, hopefully you can always re-boot to the previous kernel. rpm -ivh --force kernel-2.2.17-14.i586.rpmNote:
The next two packages complete the kernel base. rpm -ivh --force kernel-ibcs-2.2.17-14.i386.rpm - Intel Binary Compatability Standard: This allows Linux to run Unixware and commercial UNIX Intel binaries
rpm -ivh --force kernel-pcmcia-cs-2.2.17-14.i386.rpm - Laptop PCMCIA card support
The following RPMs are not required but are helpful to developers or those who want to fine tune the kernel by recompiling at a later date. rpm -ivh --nodeps kernel-source-2.2.17-14.i386.rpm The following RPM is used to generate a boot disk. It includes a trimmed down version of the Linux kernel. This kernel is used on the installation boot disks only and should not be used for an installed system, as many features in this kernel are turned off because of the size constraints. rpm -ivh kernel-BOOT-2.2.17-14.i386.rpm
Note for SCSI systems:
Configuration:
|
|
Return to http://YoLinux.com home page
Return to YoLinux Tutorial Index Feedback Form Copyright © 2000, 2001, 2002, 2003, 2004 by Greg Ippolito |