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.
Adding EPEL repository.
Let’s install NVidia drivers.
Step 3. Adding Nvidia’s repository.
Step 4. Install the latest Nvidia drivers.
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.
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.
I compiled a list of software and services that I use to improve my workflow, here is the link to the list.