How to Install Linux Kernel 6.1 on Rocky Linux / Alma Linux

Linux-Kernel-Logo

This tutorial will be helpful for beginners to install Linux kernel 6.1 On AlmaLinux 9, and Rocky Linux 9.

Linus Torvalds announced the Linux Kernel 6.1 which is available to download for general usage with new features, improvements, better hardware support, and other new updates.

As per linus Torvalds

So here we are, a week late, but last week was nice and slow, and I’m much happier about the state of 6.1 than I was a couple of weeks ago then things didn’t seem to be slowing down.

Of course, that means that now we have the merge window from hell, just before the holidays, with me having some pre-holiday travel coming up too.

What’s New in Kernel 6.1

  • Initial Rust infrastructure has been merged.
  • Various new AMD CPU features from adding the Platform Management Framework (PMF) to new perf features.
  • Faster file sharing between Linux hosts and guest VMs using 9P.

For the complete changelog refer to the release notes

How to Install Linux Kernel 6.1 On Alma Linux / Rocky Linux?

Step 1: Update the system before proceeding to install kernel 6.1

sudo dnf upgrade -y

Step 2: Import the EPEL Public Key

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

Step 3: Install ELREPO

For Rocky Linux & AlmaLinux 9 Servers

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

Step 4: Enable the elrepo-kernel Repository

sudo dnf config-manager --set-enabled elrepo-kernel

Step 5: Install the Linux Kernel 6.1 from ELrepo

sudo dnf install kernel-ml kernel-ml-core kernel-ml-headers kernel-ml-modules kernel-ml-modules-extra
kernel 6.1

Step 6: Validate the kernel

Once installation is completed reboot the server and verify the newly installed kernel by running the below command.

neofetch

Rollback to Default Kernel

If you noticed any issues in the new kernel you can rollback to the default kernel using the below commands

sudo dnf config-manager --set-disabled elrepo*
sudo dnf reinstall kernel*

Conclusion

From this tutorial, you have learned how to download and install Linux kernel 6.1 on Rocky Linux 9. X and AlmaLinux 8. X and 9.X

Do let us know your comments and feedback in the comments section below.

If my articles on TipsonUNIX have helped you, kindly consider buying me a coffee as a token of appreciation.

Buymeacoffee

Thank You for your support!!

Leave a Comment