Sponsored

Not the solution you were looking for?

We’ll help you out!

An Ultimate Guide to Upgrade Kernel on CentOS/RHEL/Fedora

Well, there are plenty of reasons why you should run latest version of Linux Kernel. For instance, the current kernel might have bugs that can be exploited by the hackers or you want to try out some device driver that requires latest version of Kernel or you just want to keep your system up-to-date. Whatever might be the reason, upgrading your system to the latest Kernel should hold the high priority in your system maintenance check list.

I’ll show you how to upgrade Linux Kernel on CentOS machine. For the demonstration, I’m going to upgrade kernel from 2.6.32-358 to 3.12.

Let me show you the current kernel version I have.

$uname -r
2.6.32-358.el6.x86_64

Get ready with these prerequisites. Install these as ‘root’ user.

$ yum groupinstall "Development Tools"
$ yum install ncurses-devel

You should also update other packages before upgrading the kernel.

$ yum update

Download Kernel 3.12

Lets download the latest kernel from kernel.org. At the time of writing this article, the latest Kernel version was 3.12.

Create /dev files

Now we have made the way for remote connection temporarily. To do it permanently,

$vi /etc/rc.d/rc.sysinit

Look for start_udev, in the next line add the below items,

mknod /dev/random c 1 9
mknod /dev/ptmx c 5 2

Disclaimer: The above steps worked for me and I'm sharing those with you all. It might be slightly different on your environment. So take necessary care while upgrading. Techglimpse.com or the author doesn't holdany reponsibilities for the damage that cause to your operating system.