Install NVIDIA Drivers on Fedora (RPM Fusion)¶
A guide to safely installing NVIDIA drivers on Fedora Workstation utilizing RPM Fusion repositories.
Tested on: Fedora 44 KDE Plasma
Below is the complete installation process.
Before you start¶
- Have a way back. Take a snapshot first if you use Snapper (
sudo snapper -c root create --description "before nvidia"). If the desktop doesn't come back after rebooting, you can still pick the snapshot or an older kernel from the GRUB menu, or switch to a text console with Ctrl+Alt+F3. - Secure Boot: if it's enabled, Step 2 asks you to set a one-time MOK password. Write it down; you need it on the blue screen after the next reboot.
Step 1: Update System & Enable Repositories¶
First, ensure your system is completely up-to-date and enable the RPM Fusion Non-Free repository.
# Enable RPM Fusion Free and Non-Free repositories
sudo dnf install -y \
[https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm](https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm) -E %fedora).noarch.rpm \
[https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm](https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm) -E %fedora).noarch.rpm
(If you updated your kernel in this step, reboot your system before proceeding: sudo reboot)
Step 2: Handle Secure Boot (Skip if Disabled)¶
If Secure Boot is enabled in your system's UEFI/BIOS settings, Linux will block unsigned driver modules from loading. You must generate and enroll a Machine Owner Key (MOK) before installing the drivers.
1. Generate the signing key¶
2. Import the key into MOK¶
You will be prompted to create a password. Remember this password.
3. Reboot to complete MOK enrollment¶
During boot, a blue screen (Shim UEFI Key Management / MOK Manager) will appear. Select Enroll MOK -> Continue -> Yes, enter the password you just set, and let the system reboot.
Step 3: Install NVIDIA Driver & CUDA Support¶
Once back in Fedora, install the main driver package along with CUDA and video acceleration support:
# Install CUDA / NVENC / NVDEC libraries (Recommended for gaming & compute)
sudo dnf install -y xorg-x11-drv-nvidia-cuda
Step 4: Wait for Kernel Module Compilation & Reboot¶
Fedora uses akmods to automatically build the NVIDIA kernel module in the background for your current kernel.
- Do not reboot immediately. Wait a few minutes for the module compilation to complete.
- Check if the module build has finished by running:
If it returns a version number (e.g., 555.58.02 or similar), the compilation is complete. If it says module nvidia not found, wait another 1–2 minutes and run the command again.
- Once verified, reboot your machine:
Step 5: Verification¶
After rebooting, verify that the driver is loaded properly using the NVIDIA System Management Interface:
If successful, this will output a table showing your GPU model, driver version, CUDA version, and active GPU processes.
Undo: remove the NVIDIA driver¶
Removing the packages returns the system to the open-source nouveau driver. Keep nvidia-gpu-firmware, which nouveau also uses:
sudo dnf remove '*nvidia*' --exclude=nvidia-gpu-firmware
sudo dracut -f --regenerate-all
sudo reboot
Sources & Verification¶
- Source: Verified against the official RPM Fusion NVIDIA HowTo Guide. The commands provided correctly map to the standard deployment procedure for NVIDIA drivers on Fedora using
akmods.