How to Install Liquorix Kernel on CentOS 9 Stream

Liquorix Kernel is a free, open-source general-purpose Linux Kernel alternative to the stock kernel shipped with CentOS 9 Stream, which often features the latest stable Linux Kernel, which can be desired more for workstations. It features custom settings and new features and is built to provide a responsive and smooth desktop experience, especially for new hardware.

Liquorix Kernel is also popular amongst Linux Gaming, streaming, and ultra-low latency requirements and often boasts the latest Linux Kernels, as first mentioned, so for those seeking better hardware support, this kernel would be a great first choice.

In the following tutorial, you will learn how to install Liquorix Kernel on CentOS 9 Stream with the command line terminal and restore the generic default kernel later.

Situational – Remove DNF Subscription Manager

For users who encounter issues with "This system is not registered with an entitlement server. You can use subscription-manager to register," then use the following command to remove the subscription manager as it is unnecessary for CentOS stream to receive updates, unlike RHEL.

sudo dnf erase subscription-manager -y

Example output:

How to Install Liquorix Kernel on CentOS 9 Stream

As mentioned above, all the subscription-based lockouts have been removed.

Update CentOS Stream

Before proceeding, ensure your system is up-to-date to avoid any conflicts during the installation.

sudo dnf upgrade --refresh -y

Install Liquorix Kernel

The first task is to enable the Copr repository rmnscnce/kernel-lqx. In your terminal, use the following command.

sudo dnf copr enable rmnscnce/kernel-lqx -y

With the Copr repository now enabled, you can install the Liquorix Kernel.

sudo dnf install kernel-lqx -y

Note you can also install optional packages.

Optional. Install kernel-lqx-devel

sudo dnf install kernel-lqx-devel

Optional. Install kernel-lqx-headers

sudo dnf install kernel-lqx-headers

Once installed, you need to reboot your PC, which you can quickly do in the terminal window.

reboot

During the login, you may have noticed the new kernel was automatically selected. However, once you have returned to your system, verify the installation.

cat /proc/version

Example output:

How to Install Liquorix Kernel on CentOS 9 Stream

Remember, this version number will be different in time, and the Liquorix kernel receives updates constantly.

How to Keep Liquorix Kernel Updated

To keep the Linux kernel you installed with Liquorix up to date, and you will run the standard dnf update and upgrade commands.

To check for updates.

sudo dnf update

If an upgrade is available.

sudo dnf upgrade

Alternatively, users should be using the upgrade –refresh command, which is faster and more accurate.

sudo dnf upgrade --refresh

How to Remove (Uninstall) Liquorix Kernel

First, disable the Copr repository that Liquorix was installed from.

sudo dnf copr disable rmnscnce/kernel-lqx -y

Now remove Liquorix Kernel using the following command.

sudo dnf autoremove kernel-lqx -y

Next, re-install the default Linux Kernel packages.

sudo dnf reinstall kernel* -y

Next, reboot your PC.

reboot

Now back in your system, recheck the kernel version installed on your system.

cat /proc/version

Example output:

How to Install Liquorix Kernel on CentOS 9 Stream

Next, you can also confirm that the original kernels are installed only using the rpm -qa command

rpm -qa | grep `uname -r`

Example output:

How to Install Liquorix Kernel on CentOS 9 Stream

Congratulations, you restored the original default system kernel and removed Liquorix Kernel entirely.

Comments and Conclusion

In the tutorial, you have learned how to install Liquorix Kernel on CentOS 9 Stream. The Liquorix Kernel is designed for desktop users with the latest hardware, but this can be installed on any version of CentOS 9 Stream. It is intended for workstations in mind; servers may not want this version.

However, there is some debate amongst Liquorix vs. XanMod or similar alternative kernels. Ideally, Liquorix does not push for the latest bleeding-edge kernels like XanMod but instead focuses on some of the newest kernels that are very stable and perform well, which gives users more confidence, stability, and in the end, performance compared to more unstable alternatives. This, however, is debatable, and different setups will experience other pros and cons.



Follow LinuxCapable.com!

Like to get automatic updates? Follow us on one of our social media accounts!