How to update the kernel on CentOS 8.0

The kernel is the kernel of the Linux operating system. Most Linux distributions, such as Ubuntu, Debian, or CentOS 8.0, do not want to update the kernel to install the latest version used. The Linux operating system supports security fixes for each kernel, which makes the operating system more secure. Some users use Linux for their personal computer systems on which they use modern hardware. For this purpose, it is more likely to use an updated kernel, which can easily detect the latest devices. Thus, the user can also improve the performance of devices already installed in his system. So this guide will show you how to upgrade the kernel in CentOS 8.0.

Update the kernel on CentOS 8.0

To update the system kernel, you need to follow these steps:

Open a terminal to click on Events option to be shown in the left corner of the desktop.

In the next step, you need to log in as the root user to update the kernel and install the necessary repositories on your system. Run “Su” Team on the terminal. You are now logged in as the root user.

Remarks: Before starting a kernel update, it should be noted that if you work well on your system, you do not need to update the kernel. If you use CentOS on a home or production server, it is also not recommended that you upgrade the kernel unless you try it for testing.

Add elrepo CentOS repository

You need to add the GPG key for the repository to make the installation secure. Enter the following command in the terminal:

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

You will now add an external repository named “elrepo” to your system. To do this, you need to install the following rpm package on CentOS 8.0:

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

During the installation process, a user confirmation request will interrupt the installation task, causing the user to ask if you want to complete the installation process or not. To continue, press the y key on the keyboard.

Confirm Installation

The external elrepo repository has been successfully added to your system.

You can check the list of repositories and packages on the terminal. To display a list of packages with full status, you need to run the following command: List repository

You will now install the new kernel on CentOS 8.0. But before starting the installation, you will check the already installed version. To verify the installed version, run the following command on the terminal:

$uname -r

Check kernel version

In the above output, you see the installed version of the CentOS 8.0 kernel.

Install new kernel version

It’s time to install the new kernel on CentOS 8.0. To install a new kernel, run the following command in the terminal:

$dnf --enablerepo=elrepo-kernel install kernel-ml

In the above output image, you can see the latest available kernel version and the dependencies will be installed on your system. During the installation process, the terminal will again ask for user confirmation. The user will ask if you want to continue installing the kernel or not. You will enter the y key from the keyboard.

Enable kernel repo

After the installation is complete, you will reboot the system to view the changes. When you start CentOS 8.0, you will see the updated kernel installed on your system.

Install ML Kernel

Select a new kernel at boot time

After restarting the system, you will again open the terminal on CentOS 8.0. Now you will check the installed version by running the following command in the terminal:

$ uname -msr

In the output, you can see the updated installed version in the window of your terminal. Check kernel version after reboot

Output:

An updated kernel with the latest hardware can improve the performance of your system. In this article, you learned how to upgrade the CentOS 8.0 kernel. You learned various commands related to adding repositories and viewing the kernel version. I hope that now you can update the system kernel. It is recommended that if you have no problems with your system, you do not need to update the system kernel.

How to update the kernel on CentOS 8.0

Related Posts