This article will cover how to install and setup official Nvidia drivers on Red Hat Enterprise Linux, this method has been tried and tested on RHEL 8.

This works best on the default kernel that ships with RHEL 8, if you have custom Kernel or modified setup, there might be need for extra steps. The extra steps are out of the scope of this article.

Let’s get straight into it. (The step speed may vary depending on your internet connection)

Step 1. Adding the official Nvidia drivers repository to our package managers repository list.

sudo dnf config-manager --add-repo

Step 2. Installing the kernel devel and headers used by the drivers.

sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

Step 3. Installing Nvidia drivers and setttings application.

The command below will download the latest stable driver available.

sudo dnf install nvidia-driver nvidia-settings

Step 4. Installing CUDA drivers. (This is optional but recommended)

sudo dnf install cuda-driver

Step 5. Reboot your system.

Step 6. Verify that its working by running nvidia-smi


The nvidia-smi command should display information about your graphics card, if this command fails to show the details or throws an error after the command is entered, it means that the driver did not install correctly.

To remove the drivers completely.

Run the command below.

sudo dnf remove nvidia-driver nvidia-settings cuda-driver kernel-devel-$(uname -r) kernel-headers-$(uname -r)

Darryl Dias

I’m Darryl. I’m a 3D Artist, Web Developer and Linux enthusiast. On this site I share my insights, tips and tricks, tutorials, methods and best practices.

Join the Conversation

1 Comment

  1. Thanks Darryl! IMHO, this is the most sustainable approach, especially when dealing /w UEFI devices: all other sources I stumbled upon recommend manual download, specifying the key files etc. – especially bad when you landed at the console after an upgrade.

    Worked like a charm for me!

Leave a comment

Your email address will not be published.