How To Install NVIDIA Drivers on Fedora 35 36 37

If you have an NVIDIA GPU installed on your computer, the first thing you should do after installing Fedora is install the NVIDIA GPU driver.

nvidia settings on fedora
nvidia settings on fedora

In this article, I will demonstrate how to install NVIDIA drivers on Fedora. I’ll also demonstrate how to install NVIDIA CUDA Drivers on Fedora. So, let’s get this started.

Checking Installed GPUs and Used Drivers:

You can use the following command to see if your computer has an NVIDIA GPU installed:

$ lspci | egrep 'VGA | NVIDIA'

As you can see, my computer has an NVIDIA GeForce GTX 750 Ti GPU installed.

checking installed gpu
checking installed gpu

Updating the System:

Before installing NVIDIA drivers on Fedora, I strongly advise you to upgrade your Fedora operating system’s existing packages. Otherwise, you may encounter difficulties getting NVIDIA drivers to work on Fedora.

Run the following command to upgrade all of your Fedora installed packages to the most recent version:

$ sudo dnf update

If any updates are required, the DNF package manager should display a summary of the upgrade, Otherwise, it will inform you that your system is current.

For the changes to take effect, reboot your computer with the following command:

$ reboot

Installing RPM Fusion Repositories:

The RPM Fusion package repository contains NVIDIA driver packages. To install NVIDIA drivers on Fedora, you must first install the RPM Fusion package repository.

Run the following command to install the RPM Fusion Free repository:

$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

To install the RPM Fusion Non-Free repository, run the following command:

$ sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

To confirm the installation, press and then press <Enter>.

You can also enable NVIDIA repositories in Software -> Repositories

fedora softwave repositories
fedora softwave repositories

After installing the RPM Fusion repositories, run the following command to refresh the DNF package repository cache:

$ sudo dnf makecache
dnf makecache
dnf makecache

Installing NVIDIA Drivers:

After you’ve upgraded your system and installed the RPM Fusion package repositories, use the following command to install NVIDIA drivers from the RPM Fusion repository:

$ sudo dnf install akmod-nvidia
install akmod nvidia
install akmod nvidia

To confirm the installation, press and then press <Enter>.

For the changes to take effect, reboot your computer with the following command:

$ reboot

Once your computer boots, you should find the NVIDIA X Server Settings app in the Application Menu of Fedora. Click on the NVIDIA X Server Settings app icon as marked in the screenshot below.

nvidia settings
nvidia settings

If the NVIDIA drivers are correctly installed, the NVIDIA X Server Settings app should run without errors and display information about your NVIDIA GPU, as shown in the screenshot below.

nvidia settings on fedora
nvidia settings on fedora

Installing NVIDIA CUDA Libraries:

If you are a software developer and require the NVIDIA CUDA libraries, use the following command to install them from the RPM Fusion package repository:

sudo dnf install xorg-x11-drv-nvidia-cuda

in conclusion:

This article will show you how to install NVIDIA GPU drivers and NVIDIA CUDA libraries on Fedora. I used an NVIDIA GTX 750Ti GPU for demonstration. However, the procedure shown in this article should work on any NVIDIA GPU newer than it.
This article was done in Fedora 36, but this article should apply to Fedora 34, Fedora35, Fedora 36 and the upcoming Fedora 37.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *