I am not very sure you should download a tar file and use it to upgrade your OS
if there is any update available for redhat 5 kernel then you can use
But i believe kernel-2.6 is the kernel used in RHEL 5
but if you manage to get any rpm for kernel 3.1 then here is what you need to do
chek your version of kernel
Code:
#rpm -qa | grep kernel
go to your repository location as I have mine inside yum directory
Code:
#rpm -ivh /yum/kernel-2.6.18-8.el5.i686.rpm
now check whether your kernel is installed
Code:
#rpm -qa | grep kernel
you will find two entries in your grub.conf
Code:
#vi /boot/grub/grub.conf
default=1
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
root (hd0,0)
kernel /boot/xen.gz-2.6.18-8.el5
module /boot/vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.18-8.el5xen.img
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
root (hd0,0)
kernel /boot/.gz-2.6.18-8.el5
module /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.18-8.el5.img
change the
Code:
default=1 ---> default=0
and boot your OS and if your machine boots up properly
then remove the old kernel
Code:
#rpm -e kernel-2.x.x.xel5.rpm