Install NVIDIA Drivers on Fedora Without Blacklisting OpenSource Drivers

On Fedora learn how to install NVIDIA drivers in an easy manner. No blacklisting open source drivers, nothing, everything made simple.

This post is an updated form of a video by Egee. Watch is on YouTube.

This video was posted in 2017, and this might have been outdated.

Installing drivers in Linux is a tedious task, unlike Windows.

First of all, make sure secure/fast boot is totally disabled.

We’ll use rpmfusion repositories to add driver packages to system.

Issue this to your console:

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

Above command will add rpmfusion to your dnf install lookup, because rpmfusion is not there by default.

Now you would actually want to install the drivers by issuing the following command:

sudo dnf install kernel-devel xorg-x11-drv-nvidia akmod-nvidia

Your basic installation is basically complete.

Install cuda libraries if your graphics card supports CUDA.

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

Above method for installing cuda libraries doesn’t work. More information can be found at RPMFusion website. Basically for Fedora 27+, cuda repo needs to be installed. Then install cuda by simply issuing `sudo dnf install cuda`. It’s a ~2GB install.

sudo dnf install http://developer.download.nvidia.com/compute/cuda/repos/fedora27/x86_64/cuda-repo-fedora27-9.2.148-1.x86_64.rpm
sudo dnf install cuda

Media libraries:

sudo dnf install vdpauinfo libva-vdpau-driver libva-utils ffmpeg

You are done. Reboot!