How to Install XanMod Kernel on Fedora 36 Linux

XanMod is a free, open-source general-purpose Linux Kernel alternative to the stock kernel 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.

XanMod is popular amongst Linux Gaming, streaming, and ultra-low latency requirements and often boasts the latest Linux Kernels before landing on Fedora.

Installing a third-party kernel may be for you for users seeking to have their system kernel up to date and not wanting to install kernels or use the testing/unstable repositories manually.

For more information on XanMod Kernel before installing, visit the XanMod Kernel features information page.

In the following tutorial, you will learn how to install the XanMod 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.

Update Fedora

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 XanMod Kernel

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

sudo dnf copr enable rmnscnce/kernel-xanmod -y

With the Copr repository now enabled, you can install the XanMod Kernel, and my recommendation is to install the latest kernel with the edge branch.

sudo dnf install kernel-xanmod-edge -y

Note that you can also install optional packages.

Install XanMod Kernel LLVM+Clan with full LTO

sudo dnf install kernel-xanmod-exptl -y

Install XanMod Kernel RT

sudo dnf install kernel-xanmod-rt -y

Install XanMod LTS Kernel

sudo dnf install kernel-xanmod-lts -y

Note that most Fedora users will not want to use this one; it would benefit LTS distributions such as AlmaLinux, CentOS, Rocky Linux, etc.

Install XanMod Kernel TT (CacULE)

sudo dnf install kernel-xanmod-tt -y

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.

cat /proc/version

Example output:

How to Install XanMod Kernel on Fedora 36 Linux

For users that prefer pretty printouts install neofetch.

sudo dnf install neofetch -y

Print out your system specs using the following command.


Example output:

How to Install XanMod Kernel on Fedora 36 Linux

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

How to Update/Upgrade XanMod Kernel

To keep the Linux kernel you installed with XanMod 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) XanMod Kernel

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

sudo dnf copr disable rmnscnce/kernel-xanmod -y

Next, remove the XanMod kernel using the following command.

sudo dnf autoremove kernel-xanmod-{version}

Add the in the {version} bracket the branch of XanMod you installed.

Example for Edge Kernel:

sudo dnf autoremove kernel-xanmod-edge -y

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*

Example output:

How to Install XanMod Kernel on Fedora 36 Linux

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.

cat /proc/version

Example output:

How to Install XanMod Kernel on Fedora 36 Linux

Next, confirm that the original kernels are installed only using the rpm -qa command.

rpm -qa | grep `uname -r`

Example output:

How to Install XanMod Kernel on Fedora 36 Linux

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


The best solution for users having issues after re-installing the default kernel is for users 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 XanMod on Fedora 36. XanMod is designed for desktop users with the latest hardware, but this can be installed on any Fedora currently supported version.

One of the best features of using XanMod is that when the next Linux Kernel comes around, it is included on development/edge very quickly. Hence, it is worth the look, especially if you are into Linux gaming.


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