How to Install Linux Kernel 5.15 on CentOS 8 Stream

Linux kernel 5.15 has many new features, support, and security. The Linux 5.15 kernel release further improves the support for AMD CPUs and GPUs, Intel’s 12th Gen CPUs, and brings new features like NTFS3, KSMBD (CIFS/SMB3), and further Apple M1 support, amongst many other changes and additions.

In the following tutorial, you will learn how to install the latest 5.15 Linux Kernel on CentOS Stream 8.


Updating Operating System

Update your CentOS Stream operating system to make sure all existing packages are up to date:

sudo dnf upgrade --refresh -y

The tutorial will be using the sudo command and assuming you have sudo status.

To verify sudo status on your account:

sudo whoami

Example output showing sudo status:

[joshua@centos-stream ~]$ sudo whoami

To set up an existing or new sudo account, visit our tutorial on adding a User to Sudoers on CentOS Stream.

To use the root account, use the following command with the root password to log in.


Important Note

The following tutorial shows you how to install Linux Kernel 5.15. In the future, once Linux Kernel 5.16 and then 5.17 are released as semi-stable, 5.15 will not feature as the default kernel. The tutorial and repository focus on the latest stable kernel to date.

At the time of this tutorial, CentOS 8 Stream features Linux Kernel 4.18.

Import and Install ELRepo & GPG Key

The first step is to import the repository from ELREPO from the ELRepo project. This has the latest available kernel or the LTS version with regular updates, so you do not need to compile kernels and install and upgrade using the dnf package manager.

First, import the GPG key to verify the installation package:

sudo rpm --import

Next, install the repository, use the following command:

sudo dnf install

Example output:

How to Install Linux Kernel 5.15 on CentOS 8 Stream

Type “Y,” then press the “ENTER KEY” to proceed.

Install Latest Kernel 5.15 on CentOS

With the repository and GPG imported, you can now proceed with the installation which you will use the ELRepo mainline branch to install kernel 5.15.

To install the latest mainline support kernel (NON-LTS):

sudo dnf --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel

Example output:

How to Install Linux Kernel 5.15 on CentOS 8 Stream

Type “Y,” then press the “ENTER KEY” to proceed.

Now reboot your system; during the boot window with kernels to choose from, select kernel 5.15.



How to Install Linux Kernel 5.15 on CentOS 8 Stream

Once back in your system, verify the new kernel and build:

uname -r

Alternatively, use the hostnamectl command.


Example output:

How to Install Linux Kernel 5.15 on CentOS 8 Stream

Congratulations, you have installed the latest 5.15 kernel on your CentOS 8 Stream system.

Updates for Kernel 5.15

To keep your kernel 5.15 up to date, you will use the dnf refresh command to pull updates from the ELRepo repository just like any other package on your system.

To check for updates and upgrade.

sudo dnf upgrade --refresh -y

Remember, for any kernel updates, and you will need to reboot your system:

Comments and Conclusion

In the tutorial, you have learned how to install the latest 5.15 kernel on your CentOS 8 Stream operating system. Note, if your system is a production server, it would be advised to use the existing kernel that ships the standard installation for the most stability.

However, for those wanting to try kernel 5.15, you can undoubtedly swap back to previous kernels quite easily in the boot menu, so giving it a try isn’t a bad idea, especially if you got new hardware that isn’t supported by the default CentOS kernel.


Like to get automatic updates? Follow us on one of our social media accounts!