Liquorix Kernel is a free, open-source general-purpose Linux Kernel alternative to the stock kernel shipped with Fedora 36. 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 popular amongst Linux Gaming, streaming, and ultra-low latency requirements and often boasts the latest Linux Kernels. For more information about Liquorix before installing, check out their features page.
In the following tutorial, you will learn how to install the Liquorix Kernel on your Fedora 36 workstation or server using the copr rmnscnce/kernel-lqx repository with optional how to re-install the default kernel for users that would like to switch back.
Table of Contents
First, before you begin the installation, you should update your system to make sure all existing packages are up to date to avoid any conflicts.
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 that 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.
Once you have returned to your system, verify the installation.
Or you can use the cat version command.
Note that at the time of the tutorial, Liquorix is still using 5.16. However, this will be soon moved to 5.17; unlike XanMod, which has stable and bleeding edge versions, Liquorix focuses on having a stable customized kernel only to install.
For users that prefer pretty printouts install neofetch.
sudo dnf install neofetch -y
Print out your system specs using the following command.
Remember, this version number will be different in time, and the Liquorix kernel receives updates constantly.
How to Update/Upgrade Liquorix Kernel
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
Next, remove Liquourix Kernel as best as possible using the following command.
sudo dnf autoremove kernel-lqx* -y
Remember to add on any additional modules such as headers or devel if you added those extra.
Next, re-install the Fedora Kernel packages.
sudo dnf reinstall kernel kernel-core
Alternatively, to re-install everything uses the following command.
sudo dnf reinstall kernel*
Type Y, then the ENTER KEY to proceed and re-install the Fedora default Kernel.
Next, reboot your PC.
Now back in your system, recheck the kernel version installed on your Fedora 36 system.
Next, confirm that the original kernels are installed only using the rpm -qa command.
rpm -qa | grep `uname -r`
Congratulations, you restored the original Fedora 36 default system kernel and removed Liquorix Kernel entirely.
For users having issues after re-installing the default kernel, the best solution is to use the distro-sync command even if everything looks ok.
The command is good for restoring Fedora default packages and getting your Fedora system back on track, but this should be used sparingly.
sudo dnf distro-sync -y
Comments and Conclusion
In the tutorial, you have learned how to install Liquorix Kernel on Fedora 36. Liquorix Kernel is designed for desktop users with the latest hardware, but this can be installed on any Fedora desktop or server. Still, the differences may not be as noticeable as in other Linux distributions. Fedora often pushes the latest stable kernel release, but this is a fantastic option to test regardless.
However, there is some debate about Liquorix vs. XanMod or other 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.