Sharing Knowledge | System Admin Articles

Quick HOWTO : Kernel Upgrade in Linux




To Update the kernel
  1. use 'uname -a' to reveal current version
  2. use 'rpm -qa | grep -i kernel' - to reveal installed version
The Proper installation/Upgrade method for kernel
  1. 'rpm -ivh kernel*rpm'   - To install a separate version
Note: Install the following kernel packages if necessary:
  1. kernel-devel* - if module compilation is necessary
  2. kernel-headers* - if recompilation is necessary
Example:
rpm -ivh kernel-2.6.18-53.el5.i686.rpm
Note: This will update GRUB (/boot/grub/grub.conf)
Note: Will also place the new kernel in the /boot file system
Examine the traces in,
  1. /boot
  2. /boot/grub/grub.conf
Now Remove traces of former kernel using
'rpm -e [--nodeps]' kernel-2.6.18-8.el5  kernel-headers-2.6.18-8.el5 kernel-devel-2.6.18-8.el5’
To Force remove ignoring dependencies give,
'rpm -e --nodeps kernel-headers-2.6.18-8.el5'
Note: Removal of older kernel-* packages cleans up the /boot  and  /boot/grub/grub.conf (menu.lst)  as well.
Confirm that the three  'kernel-*' packages are installed:
a. rpm -qa | grep kernel
Alternatively we can install new 'kernel-headers' and 'kernel-devel' packages using YUM also:
a. yum -y install kernel-headers
b. yum -y install kernel-devel


Labels: Linux, Quick HOWTO

My Profile PhotoAbout the Author

I'm Parthiban, An UNIX System Admin by Profession. I'm Experienced in Linux/Unix System Administration and Scripting. I have done lot of work on the infrastructure Mgmt side in Linux, UNIX and Windows system administration, Hardware, Storage and Data center. I'm blogging since 2008.
Follow Me On Twitter or On Facebook

1 Comments for "Quick HOWTO : Kernel Upgrade in Linux"

hi..

Using #YUM,we can do work directly..

#yum update kernel

then reboot the linuxbox,

#yum remove kernl-old kernel name(2.6...)
we can know the kernel version ,using command
#uname -a
then,
#yum upgrade
then reboot your linuxbox,and then boot with updated kernel...

Enjoy...:)

thank u...

What do you think about this Article? Add your Opinion..!

Back To Top