How to install or Update latest stable kernel on CentOs/RHEL



The kernel is a core of the Operating system. Which is the first program loads when the system is powered on. it acts as an interface between hardware and software. In this article, We will be known about the installation of the latest stable kernel on centOS 7/RHEL 7.

We can check the kernel version by using the following command

#uname -r

before we going to start the installation of kernel install some pre-requesites as follows

#yum -y install ncurses ncurses-devel openssl-devel

Download the latest version of kernel from their official site
Now the latest version is 4.10, we can download it by using wget as follows


Once the download completes extract and copy to /usr/src/ directory.

#tar -Jxvf linux-4.9.10.tar.xz
#cp -rf linux-4.9.10/ /usr/src/

Now change to the kernel directory and run the command make mrproper as follows

Now run the command make menuconfig and select the modules required

#make menuconfig

Sample Output:

From the These menu select sub modules, features with space bar.

Once the module selection completes, click on save to save the changes

Once we click on Save Button it prompts for kernel file configuration, click on Ok.

Now run the command make as follows

It takes some time depends upon the system configuration like Ram, Processor speed etc. Then run the command make modules

[root@localhost linux-4.9.10]# make modules
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/
  Building modules, stage 2.
  MODPOST 2209 modules
[root@localhost linux-4.9.10]#

Now run the command make modules_install to install all the selected modules

Run the command make install

[root@localhost linux-4.9.10]# make install

sh ./arch/x86/boot/ 4.9.10 arch/x86/boot/bzImage \ "/boot"

Now reboot the system to apply changes and check the version of kernel

We can also check by using uname -r command

Enjoy the new kernel and features. And if you want to join this discussion, feel free to leave a comment!


  1. Its like yyou read my thoughts! You seem to underrstand a lot
    approximately this, like you wrote the ebook inn it
    or something. I think that you just can do with a few percent to drive the message
    house a little bit, howeve instead of that, that is excellent blog.
    A fantastic read. I’ll definitely be back.