Installing Linux Kernel v4.10

I started using CentOS over several other Distros that I have been testing ever the years. I still have an Ubuntu laptop just to keep up to date with things seeing that it’s one of the most popular ones.

I’ve covered installing Kernels before but I wanted to refresh that topic and include how to do it on CentOS.

What’s new with the v4.10 release?

On the whole, 4.10 didn’t end up as small as it initially looked. After the huge release that was 4.9, I expected things to be pretty quiet, but it ended up very much a fairly average release by modern kernel standards. So we have about 13,000 commits (not counting merges – that would be another 1200+ commits if you count those). The work is all over, obviously – the shortlog below is just the changes in the last week, since rc8.

Read More ›

Installing is still pretty straight forward, not much to it really. As before, you will want to visit the Kernel page to see what the most recent release is and get the URLs to download.

Installing on CentOS

CentOS makes upgrading the Kernel interesting.

Check your current version:

uname -sr

you should se a return like this:

Linux 3.10.0-514.el7.x86_64

Enable ELRepo

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

List available versions:

yum --disablerepo="*" --enablerepo="elrepo-kernel" list available

You will see a list like this:

kernel-lt.x86_64                     4.4.55-1.el7.elrepo    elrepo-kernel
kernel-lt-devel.x86_64               4.4.55-1.el7.elrepo    elrepo-kernel
kernel-lt-doc.noarch                 4.4.55-1.el7.elrepo    elrepo-kernel
kernel-lt-headers.x86_64             4.4.55-1.el7.elrepo    elrepo-kernel
kernel-lt-tools.x86_64               4.4.55-1.el7.elrepo    elrepo-kernel
kernel-lt-tools-libs.x86_64          4.4.55-1.el7.elrepo    elrepo-kernel
kernel-lt-tools-libs-devel.x86_64    4.4.55-1.el7.elrepo    elrepo-kernel
kernel-ml.x86_64                     4.10.4-1.el7.elrepo    elrepo-kernel
kernel-ml-devel.x86_64               4.10.4-1.el7.elrepo    elrepo-kernel
kernel-ml-doc.noarch                 4.10.4-1.el7.elrepo    elrepo-kernel
kernel-ml-headers.x86_64             4.10.4-1.el7.elrepo    elrepo-kernel
kernel-ml-tools.x86_64               4.10.4-1.el7.elrepo    elrepo-kernel
kernel-ml-tools-libs.x86_64          4.10.4-1.el7.elrepo    elrepo-kernel
kernel-ml-tools-libs-devel.x86_64    4.10.4-1.el7.elrepo    elrepo-kernel

ml means it’s mainline stable

Install the mainline kernel:

yum --enablerepo=elrepo-kernel install kernel-ml

one the install is done, you should get the following:

  kernel-ml.x86_64 0:4.10.4-1.el7.elrepo

verify the install was successful:

uname -sr

the output should match the version showed at the end of the install:

Linux 3.10.0-514.el7.x86_64

set GRUB to boot into the new kernel, edit /etc/default/grub, line GRUB_DEFAULT


should now be:


reload grub:

grub2-mkconfig -o /boot/grub2/grub.cfg


shutdown -r now

Installing on Ubuntu

Ubuntu makes this easy. Hit up the Kernel page to get the download URL. I installed 4.10.0 and will use that as the example.

Where to work from:

cd /tmp

download the deb files:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10/linux-headers-4.10.0-041000_4.10.0-041000.201702191831_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10/linux-headers-4.10.0-041000-generic_4.10.0-041000.201702191831_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10/linux-image-4.10.0-041000-generic_4.10.0-041000.201702191831_amd64.deb

Install the packages you just downloaded

sudo dpkg -i *.deb

Now that the install is over, update GRUB to make sure things are all in order:

sudo update-grub

Verify things are good:

uname -r

The result should match the version installed:


Reboot your machine just to make sure:

shutdown -r now



Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s