How to install Linux Kernel 6.x on AlmaLinux 8

The Kernel is the fundamental layer of the operating system. It works at the most basic level and is responsible for managing resources, ram, CPU etc…

As a source for our update, we are going to use the ELRepo repository which is a community repository for Enterprise Linux distributions (Red Hat Enterprise Linux (RHEL), Almalinux, Rocky Linux… ).

1 – Preparing the server

1 – Update, upgrade your Almalinux with YUM and reboot at the end:

2 – Checking the Kernel version installed on the server

Almalinux defaults to version 5.x

3 – Check your Almalnux version

Check the version of Almalinux in PRETTY_NAME or REDHAT_SUPPORT_PRODUCT_VERSION

5 – Add the gpg key from the ELRepo repository to the server.

For Almalinux 8 use:

2 – Instale or Linux 6.x kernel.

1 – enable the repository

2 – install the latest stable version

Update GRUB configuration

1 – After installing the new kernel, ensure that your system boots from it by updating the GRUB configuration. First, set the new kernel as the default boot option:

2 – Next, re-generate the GRUB configuration file:

3 – To finish the installation, restart the system:

4 – After booting the system, check that the new kernel version is in use:

The output should now reflect the updated version of the 6.x kernel.

Congratulations, you have successfully updated the Linux Kernel to version 6.x on your AlmaLinux 8 system. This update improves the capabilities and security of your system.