Contact Support : +64 220 256 070

Aimvm
Blog

How to update kernal version in Centos ?

Posted on: August 7, 2015

In this tutorial you will learn about upgrading the kernal for your centos 6.5 version.

Steps:

1) First check the current kernal version.

# uname -r
2.6.32-358.18.1.el6.x86_64
# cat /etc/redhat-release
CentOS release 6.5 (Final)

2) Now remove any cached packages and headers.

# yum clean all && yum update
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink                                                                                                                       | 8.1 kB     00:00
 * base: centosz3.centos.org
 * epel: fedora.mirror.nexicom.net
 * extras: mirror.linux.duke.edu
 * updates: centosb5.centos.org
base                                                                                                                                | 3.7 kB     00:00
base/primary_db                                                                                                                     | 4.4 MB     00:00
epel                                                                                                                                | 4.4 kB     00:00
epel/primary_db                                                                                                                     | 6.1 MB     00:01
extras                                                                                                                              | 3.4 kB     00:00
extras/primary_db                                                                                                                   |  19 kB     00:00
updates                                                                                                                             | 3.4 kB     00:00
updates/primary_db                                                                                                                  | 2.6 MB     00:00
Setting up Update Process
No Packages marked for Update

 

 

 

3) Download rpm package for 2.6.32-431 and install using command

rpm -ivh kernel new version

 

4) Now change preference to new kernel to default=0 in grub configuration file.

vi /boot/grub/grub.conf

 

4) Now update the yum repository and reboot your machine.

Finally query the current kernel RPM package to see which kernel is installed

rpm -qa| grep kernel-2.6.32-431


 

Search Blog