22.9 C
Texas
angeloma
Senior Writer and partner

Upgrade the Kernel on CentOS 8 / RHEL 8 / Oracle Linux 8

The kernel is one of the most important elements of the operating system. This is why major distributions such as Debian, Ubuntu or Red Hat Linux Enterprise do not update it to recent versions. Of course, these distributions keep it with security patches that make it even safer to use. However, some of these distributions are used by users for their personal computers with recent hardware. Then it is convenient to have the Kernel updated so that it can recognize the newest devices on the market or improve the performance of those that are already there. So in this post, I will show you how to upgrade the Kernel in CentOS 8, RHEL 8 or Oracle Linux 8.

Upgrade the Linux Kernel on CentOS / RHEL / Oracle Linux 8

First I must warn you of something. If your system works well and you do not find any problems, it is best not to update. If you use CentOS / RHEL / Oracle Linux 8 on a home or production server, it is also not advisable to do so unless you do it for testing.

To update the Kernel, we will use a fairly reliable external repository called elrepo.

First, add the GPG key to the repository to secure the installation.

- Advertisement -
:~$ su
:~# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Then, you need to add the repository by installing an RPM package.

:~# dnf install https://www.elrepo.org/elrepo-release-8.0-2.el8.elrepo.noarch.rpm

1.- Adding the external repository to upgrade the kernel on CentOS, RHEL, Oracle Linux
1.- Adding the external repository to upgrade the kernel on CentOS, RHEL, Oracle Linux

After that, check the repository was successfully added.

:~# dnf repolist

2.- All repos available on the system
2.- All repos available on the system

Now, you can install the new kernel, but, first, check the installed version.

:~# uname -r

3.- Check the current kernel version
3.- Check the current kernel version

So, install the new kernel.

:~# dnf --enablerepo=elrepo-kernel install kernel-ml

4.- Upgrade the kernel on CentOS, RHEL and Oracle Linux 8
4.- Upgrade the kernel on CentOS, RHEL and Oracle Linux 8

After that, reboot the system. And check the version.

:~# uname -msr

5.- The new kernel running
5.- The new kernel running

So, that is it.

Conclusion

Having a more modern kernel can bring many advantages with the latest hardware on the market. However, in all cases, it is not recommended to update it. In this post, you have learned to do it without so many problems.

If you want to install the Kernel 5.2 on Ubuntu 18.04, please read our post about it.

How to install the Kernel 5.2 on Ubuntu 18.04?

Please share this post and join our Telegram channel.

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article