Let's take a look at each package:kernel kernel-modules pcmcia-cs iBCS
rpm -e pcmcia-cs
(Don't worry if you get a "package pcmcia-cs is not installed" error
message; that just means that you never installed the package in the first
place.)
rpm -q kernel
This command will output something similar to kernel-2.0.15-3, 2.0.15
is the kernel version. Ignore the number after the dash (the "3" in this
case), as it is the release number of the kernel package. Make sure you
write down the kernel version, because you'll need it later.
(If one of the package installs fails, add the --force option to the command line. This option is required in some circumstances, and is no cause for concern.) If you require PCMCIA support, install that package the same way. We'll discuss iBCS support at the end of this document.rpm -i kernel-2.0.32-1.i386.rpm rpm -i kernel-modules-2.0.32-1.i386.rpm
If the command produces no output, your system is not currently using an initial ramdisk, and you can skip on to the next section. If your system does require an initial ramdisk, create one using this command:grep scsi /etc/conf.modules
For example, if you are upgrading to the 2.0.32 kernel, the command you'd use would look like this:/sbin/mkinitrd /boot/initrd-
If the command fails, add the -v option immediately after the command name. This option produces more output, which should help you determine what went wrong./sbin/mkinitrd /boot/initrd-2.0.32 2.0.32
image=/boot/vmlinuz
label=linux
root=/dev/sda1
initrd=/boot/initrd
read-only
(the exact contents will vary depending on your system). The first stanza
specifies the default boot image, which will be used if there is no user
input at the boot: prompt. If your computer is configured to boot more
than one type of operating system, your default boot image might not be for
Linux. In that case, the first stanza will look something like this:
other=/dev/sda1
label=Win95
table=/dev/sda
With all this in mind, find the stanza in your lilo.conf file that is used
to boot Red Hat Linux. We want to make sure the kernel image pointed to by
this stanza is available after the upgrade (in case of problems). We can
do this by adding the version number of the old kernel to the "image" and
"label" lines:
image=/boot/vmlinuz-2.0.16
label=linux-2.0.16
root=/dev/sda1
initrd=/boot/initrd
read-only
(Note that if the image already contains a kernel version number, you must
leave the "image" line as-is. The "label" line must still be modified,
however.)
image=/boot/vmlinuz-2.0.16
label=linux-2.0.16
root=/dev/sda1
initrd=/boot/initrd
read-only
image=/boot/vmlinuz-2.0.16
label=linux-2.0.16
root=/dev/sda1
initrd=/boot/initrd
read-only
Now modify the first stanza to refer to the new kernel. To do this, you'll
need to change the kernel version number in the "image" line. If you're
going to use an initial ramdisk, make sure the correct kernel version is in
the "initrd" line, too. Delete the kernel version from the label line,
leaving just label=linux. When you're done, your ilo.conf file should
have two stanzas that look somewhat like these:
image=/boot/vmlinuz-2.0.32
label=linux
root=/dev/sda1
initrd=/boot/initrd-2.0.32
read-only
image=/boot/vmlinuz-2.0.16
label=linux-2.0.16
root=/dev/sda1
initrd=/boot/initrd
read-only
For reference, here is an example of a properly modified /etc/lilo.conf
in its entirety:
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.0.32
label=linux
root=/dev/sda1
initrd=/boot/initrd-2.0.32
read-only
image=/boot/vmlinuz-2.0.16
label=linux-2.0.16
root=/dev/sda1
initrd=/boot/initrd
read-only
Now, save the changes you've made, and return to the system shell. Issue
the following command:
(If lilo returns an error, add the -r option to obtain more information on what went wrong. If you have problems running /sbin/lilo, DO NOT REBOOT until you have resolved them! Your system may not reboot!)/sbin/lilo
(Replace the example iBCS package name given here with the name of the iBCS package you've downloaded.)rpm -U iBCS-2.0-10.i386.rpm
Copyright © 1995-1997 Red Hat Software. Legal notices