I recently installed Red Hat Enterprise Linux on my NUC laptop and it ships with an RTX 3070. In the process of getting the GPU drivers set up, I came across a simple way to set up the official Nvidia drivers on RHEL.

This article will cover every step. All you need is one reboot and you will have Nvidia drivers running.

Quick note, In order to get this working correctly it is recommended that you disable secure boot as this feature may cause inconsistent loading of the drivers on boot. In some cases could lead to a blank screen depending on the GPU and computer specifications.

Step 1. Update the system to the latest release. This is an optional step; you can skip this step if the system is already up to date. If there are major updates with this step then it is recommended that you reboot the system.

sudo dnf update -y

Step 2. Install Epel and Codeready repositories. These repositories contain dependencies that Nvidia drivers use.

Adding Codeready repository.

sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
Code language: JavaScript (javascript)

Adding EPEL repository.

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Code language: JavaScript (javascript)

Let’s install NVidia drivers.

Step 3. Adding Nvidia’s repository.

sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repo
Code language: JavaScript (javascript)

Step 4. Install the latest Nvidia drivers.

sudo dnf module install nvidia-driver:latest-dkms
Code language: JavaScript (javascript)

Once the driver installation completes you can reboot.

After rebooting you can run nvidia-smi command in a terminal to check if the drivers work.

nvidia-smi

Thank you,

If you liked this article bookmark the website or add it to your reading list. If you have any questions or want to discuss the topic further leave a comment below.

Darryl Dias

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

Leave a comment

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