How to Install XanMod Kernel on Fedora Linux

For those looking to upgrade their systems to the latest Linux Kernel, XanMod has proved to be an invaluable resource. A free, open-source general-purpose Linux Kernel alternative, it is beneficial for users looking to get the newest features and improved performance on more recent hardware to satisfy their gaming, streaming, and ultra-low latency requirements. In the following tutorial, you will learn how to install the XanMod Kernel on your Fedora Linux using the copr rmnscnce/kernel-xanmod repository with optional how to re-install the default kernel for users that would like to switch back.

Update Fedora

Before you start with the installation, it is highly recommended that you check in with your system and ensure all of your packages are up to date.

sudo dnf upgrade --refresh

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.

Install XanMod Kernel Edge

sudo dnf install kernel-xanmod-edge kernel-xanmod-edge-headers

Note that you can also install optional packages.

Install XanMod Kernel LLVM+Clan with full LTO

sudo dnf install kernel-xanmod-exptl kernel-xanmod-exptl-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.

cat /proc/version

For users that prefer pretty printouts install neofetch.

sudo dnf install neofetch -y

Print out your system specs using the following command.


Example output:

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

Additional Commands & Tips

Update XanMod Kernel

Run the standard dnf update and upgrade commands as you would with any other system package installed on your system with the DNF package manager.

First, you can check for updates using the following command.

sudo dnf update

If an upgrade is available.

sudo dnf upgrade

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

sudo dnf upgrade --refresh

Remove 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. Below is an example with the edge branch kernel. Change the command to suit users with other XanMod kernel branch installations.

sudo dnf autoremove kernel-xanmod-edge kernel-xanmod-edge-headers

Next, re-install the Fedora Kernel packages.

sudo dnf reinstall kernel kernel-core kernel-headers

Alternatively, to re-install everything uses the following command.

sudo dnf reinstall kernel*

Next, reboot your PC.


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

cat /proc/version

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

rpm -qa | grep `uname -r`

Example output:

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 to use the distro-sync command even if everything looks ok. The command is good for restoring Fedora default packages and getting your system back on track, but this should be used sparingly.

sudo dnf distro-sync


Installing a different kernel on Fedora is relatively easy and requires only a few minutes to complete. As always, it’s important to remember that using the default kernel is the best course for system stability, so be sure you understand what you’re doing before trying something like this out.

See also
How to Install Chkrootkit on Ubuntu 22.04 | 20.04

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

Leave a Comment

Share to...