Install Linux Kernel 4.13 In CentOS and Ubuntu

Install Linux Kernel 4.13

Linus Torvalds announced the final stable release of Linux Kernel 4.13 on Sunday, September 3. In the release notes, he mentioned that he had to go through “seven hours of pure agony due to a kidney stone”. But, it didn’t stop him from releasing the Linux Kernel 4.13. This latest version has arrived in time with new features, bug-fixes and improvements. For more details, refer the Linux Kernel 4.13 release notes.

As things are fine with Linus Torvalds now, let us see how to install Linux Kernel 4.13 in CentOS and Ubuntu operating systems. Although, the steps provided here will work on other YUM-based and APT-based systems.

Install Linux Kernel 4.13 in CentOS

The following steps are tested in CentOS 7 64-bit minimal edition. However, it might work on other RPM distros like RHEL, Fedora and Scientific Linux.

The latest Kernel is not available in the official repositories. So, we need to add ELRepo repository to install this latest Kernel.

The following steps should be run as root user.

First,  add ELRepo GPG key as shown below:

rpm --import

Then, add ELRepo in CentOS 7 / RHEL 7 / Scientific Linux 7 using command:

rpm -Uvh

To Install ELRepo for CentOS 6 / RHEL 6 / Scientific Linux 6:

rpm -Uvh

Enable ELRepo fastest mirror by installing the following package:

yum install yum-plugin-fastestmirror

We have added the ELRepo. Now, it is time to install Linux kernel 4.13.

Just in case, you wanted to view the currently installed Kernel version, run the following command:

uname -r

Sample output:


As you in the above output, my CentOS 7 test box is running with Linux Kernel version 3.10.0-514.16.1.el7.x86_64.

Next, enable ELRepo and install Linux Kernel 4.13 version using command:

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

After installing the Kernel, reboot your system and select the latest Kernel from the Grub boot menu.

CentOS Linux Kernel 4.13

After logging-in to the system, you can verify the newly installed Kernel version as shown below.

uname -r

Sample output would be:


Congratulations! You have successfully updated the Linux Kernel. Now, your system is powered by most recent stable Linux Kernel 4.13 version.

If have encountered with any problems after installing the new Linux Kernel? No problem, reboot your system. Select the previously installed Kernel from the Boot menu.

CentOS Linux Kernel 3.10

Then, remove the newly installed Kernel using command:

yum remove kernel-ml

That’s it.

Install Linux Kernel 4.13 in Ubuntu 16.04 LTS

The following steps are tested in Ubuntu 16.04 LTS server. However, this guide should work other Ubuntu versions, and Debian, Linux Mint as well.

To view the currently installed Kernel, run:

uname -r

Sample output:


As you see, my Ubuntu 16.04 system is running with 4.4.0-93-generic kernel version.

Now, we will install Linux Kernel 4.13. You can download the latest kernel from the following link.

For 64 bit Ubuntu systems:


For 32 bit Ubuntu systems:


Next, install Linux Kernel 4.13 using command:

sudo dpkg -i *.deb

Sample output:

Selecting previously unselected package linux-headers-4.13.0-041300.
(Reading database ... 124187 files and directories currently installed.)
Preparing to unpack linux-headers-4.13.0-041300_4.13.0-041300.201709031731_all.deb ...
Unpacking linux-headers-4.13.0-041300 (4.13.0-041300.201709031731) ...
Selecting previously unselected package linux-headers-4.13.0-041300-generic.
Preparing to unpack linux-headers-4.13.0-041300-generic_4.13.0-041300.201709031731_amd64.deb ...
Unpacking linux-headers-4.13.0-041300-generic (4.13.0-041300.201709031731) ...
Selecting previously unselected package linux-image-4.13.0-041300-generic.
Preparing to unpack linux-image-4.13.0-041300-generic_4.13.0-041300.201709031731_amd64.deb ...
Unpacking linux-image-4.13.0-041300-generic (4.13.0-041300.201709031731) ...
Setting up linux-headers-4.13.0-041300 (4.13.0-041300.201709031731) ...
Setting up linux-headers-4.13.0-041300-generic (4.13.0-041300.201709031731) ...
Setting up linux-image-4.13.0-041300-generic (4.13.0-041300.201709031731) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-041300-generic /boot/vmlinuz-4.13.0-041300-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.13.0-041300-generic /boot/vmlinuz-4.13.0-041300-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-041300-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.13.0-041300-generic /boot/vmlinuz-4.13.0-041300-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.13.0-041300-generic /boot/vmlinuz-4.13.0-041300-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.13.0-041300-generic /boot/vmlinuz-4.13.0-041300-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.13.0-041300-generic
Found initrd image: /boot/initrd.img-4.13.0-041300-generic
Found linux image: /boot/vmlinuz-4.4.0-93-generic
Found initrd image: /boot/initrd.img-4.4.0-93-generic
Found linux image: /boot/vmlinuz-4.4.0-34-generic
Found initrd image: /boot/initrd.img-4.4.0-34-generic
Found linux image: /boot/vmlinuz-4.4.0-22-generic
Found initrd image: /boot/initrd.img-4.4.0-22-generic

Finally, update the Grub boot loader with command:

sudo update-grub

Sample output:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.13.0-041300-generic
Found initrd image: /boot/initrd.img-4.13.0-041300-generic
Found linux image: /boot/vmlinuz-4.4.0-93-generic
Found initrd image: /boot/initrd.img-4.4.0-93-generic
Found linux image: /boot/vmlinuz-4.4.0-34-generic
Found initrd image: /boot/initrd.img-4.4.0-34-generic
Found linux image: /boot/vmlinuz-4.4.0-22-generic
Found initrd image: /boot/initrd.img-4.4.0-22-generic
If you’re using BURG boot loader, then run:
sudo update-burg

Reboot your system and log in to the newly installed Kernel.

Check if new Kernel has been installed with command:

uname -r

Sample output from my Ubuntu system:


If you have any problems after upgrading to the latest Kernel, force reboot your system, and login to the old Kernel by selecting the ‘Advanced options for Ubuntu’ option from the Boot menu.

Grub menu1

Select the old Kernel that is working without any issues.

Ubuntu Linux Kernel 4.13

Then uninstall the new Kernel with command:

sudo apt-get remove linux-headers-4.13* linux-image-4.13*

Finally, reboot your system once again to log in to the old Kernel.

Also, there is an easiest way to upgrade to the latest Kernel in Ubuntu-like systems. If you don’t like the command–line way, you could easily upgrade your Linux Kernel in Ubuntu, Linux Mint using Ubuntu Kernel Upgrade Utility. For more details, refer the following guide.

Also, check Linux Kernel Utilities to install most recent Kernel Version in DEB based systems.

Additional Tip: If you encountered with an Error in Oracle VirtualBox like below after upgrading to Kernel 4.x version, refer the following link.

I got this error after upgrading the Kernel version.

Kernel driver not installed (rc=-1908)

If you encountered with similar error, refer the following guide to fix the problem.

Want to install Linux Kernel 4.13 in openSUSE? Refer the following link.

That’s all for now.

If you find this tutorial useful, please share it on your social networks and support OSTechNix.


Thanks for stopping by!

Help us to help you:

Have a Good day!!

You may also like...