How to install Linux Kernel 6.x on CentOS 9 Stream

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

Hello, friends. CentOS, although not what it used to be, is still very well appreciated by the community, who see it as a healthy balance between stability and new features. However, it may be appropriate to make some tweaks to have recent versions of the Kernel. So, in this post, you will learn how to install Linux Kernel 6.x on CentOS 9 Stream.

Many more experienced users will consider that having a recent kernel can be beneficial to their work or usage experience. In this sense, this may be quite true, especially with hardware issues.

Thanks to the good support that CentOS 9 Stream has, it is possible thanks to the community to achieve our goals without too much trouble.

Let’s go.

Install Linux Kernel 6.x on CentOS 9 Stream

The first thing you have to do is to update the system. It is always good to do it before every operation.

sudo dnf update

Then, check the current kernel version.

uname -r

You will get an output screen like this

5.14.0-205.el9.x86_64

Now enable a repository called elrepo which builds the kernel packages for us and makes the whole process easier.

Before adding it to the system, download and apply the GPG key of it

sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Now, add the repository:

sudo dnf install https://www.elrepo.org/elrepo-release-9.el9.elrepo.noarch.rpm

Then you can install the Linux Kernel 6.x by running

sudo dnf --enablerepo=elrepo-kernel install kernel-ml
Install Linux Kernel 6.x on CentOS 9 Stream
Install Linux Kernel 6.x on CentOS 9 Stream

That’s how quick and easy you can do it.

To apply the changes and thus boot with the new kernel

When you do, run this command

uname -r
Kernel 6.1 running
Kernel 6.1 running

And you will see the new kernel version.

Conclusion

This short post may help you at some point if you want to have a newer version of the Linux kernel on CentOS 9 Stream.

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Angelo
Angelo
I am Angelo. A systems engineer passionate about Linux and all open-source software. Although here I'm just another member of the family.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook