Install the Latest Stable Kernel on CentOS 6/7

Install the Latest Stable Kernel on CentOS 6/7




--- DRAFT 8/30/16 - Adam

Why update to latest stable kernel?

  • Performance improvements
  • new major release approximately every two to three months


First you'll need to check which architecture your system uses: 32-bit or 64-bit. Use the uname command for this:

uname -a

Example output:

Linux localhost.localdomain 4.6.6-300.fc24.x86_64 #1 SMP Wed Aug 10 21:07:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

You will know that you are running a 64-bit system if you see x86_64. Otherwise, you have a 32-bit system. Keep this in mind when you go to download the newest kernel release.

Next, visit to find the latest stable kernel. At the time of this writing (Aug. 30, 2016), the latest stable release was version 4.7.2.





Machine details:

cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID_LIKE="rhel fedora"
PRETTY_NAME="CentOS Linux 7 (Core)"

Installed Kernel info:

uname  -a
Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Add ELREPO  repository

Import the Public Key:

rpm --import

To install ELRepo for RHEL-7, SL-7 or CentOS-7:

rpm -Uvh

To install ELRepo for RHEL-6, SL-6 or CentOS-6:

rpm -Uvh

Start the new kernel installation:

yum --enablerepo=elrepo-kernel install kernel-ml-3.*
 Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base:
* elrepo:
* elrepo-kernel:
* epel:
* extras:
* rpmforge:
* updates:
Resolving Dependencies
--> Running transaction check
---> Package kernel-ml.x86_64 0:3.18.5-1.el7.elrepo will be installed
--> Finished Dependency ResolutionDependencies Resolved==============================================================================================================================
Package                    Arch                    Version                              Repository                      Size
kernel-ml                  x86_64                  3.18.5-1.el7.elrepo                  elrepo-kernel                   35 MTransaction Summary
Install  1 PackageTotal download size: 35 M
Installed size: 160 M
Is this ok [y/d/N]: Y

Accept and proceed by typing Y.

Reboot your system.


    • Related Articles

    • How do I upgrade from Bright 6.0/6.1/7.0/7.1 to Bright 7.2?

      The procedure below can be used to upgrade a Bright 6.0 or 6.1 or 7.0 or 7.1 installation with failover to Bright 7.2   Supported Linux distributions An upgrade to Bright 7.2 is supported for Bright 6.0, 6.1, 7.0, or 7.1 clusters that are running the ...
    • Updating MAC Addresses (CentOS/RHEL)

      If your system's motherboard has recently been replaced, you may encounter network failures due to the new motherboard using different MAC addresses. Modern Linux distributions such as CentOS and Red Hat will typically auto-populate udev rules and ...
    • Install Windows Server 2008/2012 over an Existing RAID Array

      How to install Windows Server on an existing RAID array greater than 2TB in size Why is this a problem? When installing Windows on UEFI-based PC's with RAID arrays you must partition your hard drives using GPT. Traditional MBR-type drives are limited ...
    • How to Install SuperDoctor on Linux

      Download latest version of SuperDoctor from Supermicro's website: Unzip the archive after it has finished downloading. Locate the SuperDoctor5Installer[...].bin file and rename it to ...
    • Storcli for FreeBSD and Other Operating Systems

      UPDATE (4/28/17): Broadcom acquired Avago since the time of the original publication of this article. To access Storcli and other "LSI" utilities, use the following link and select your product: ...