This article will cover how to install NVIDIA drivers on Rocky Linux 9.
This is a step by step tutorial.
In order for the driver to install and work correctly you need to disable secure boot, this is by design.
First we need to get EPEL enabled, we can do this with the command below.
sudo dnf install epel-releaseCode language: Bash (bash)
Now we need to add the official NVIDIA repository to our Rocky Linux system, we can do this with the command below.
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repoCode language: Bash (bash)
Its time to get the
kernel-headers used by the drivers.
Let’s finally install the NVIDIA drivers.
sudo dnf install nvidia-driver nvidia-settings
CUDA drivers, this is optional, you can use the command below.
sudo dnf install cuda-driver
You will need to reboot in order for this change to take an effect.
After the reboot you can enter the command below to check if the drivers work, if it shows you GPU information that means the drivers work, if this errors out it means the drivers have failed to load
If you found this guide helpful or come across any issues or error leave a comment below. I will be happy to help and reply as soon as I can.
hello again Darryl. I see these days you are using Newspack to run your blog. But that costs a minimum of $750+ /month!! How can you afford that on a small blog? And why did you abandon your previous great wordpress setup, which was always super fast loading?
The Newspack theme is open source and I have my website self hosted on a Digital Ocean droplet.
You can find the GitHub repository of the Newspack theme here
TY for the effort in sharing the installation, but developer repo literally was a shoot in the knees for me.
Flatpak requires the same driver version of host what means after a update from 515 to 520 on host my ‘flatpak system’ literally gone away because it doesn’t have the same version.
All 3D applications stop working due to the mismatch between them.
So. There is a ‘stable’ repo or a way to choose which driver version will be installed?
like: sudo dnf install nvidia-driver-515 or something like?
I was given an Nvidia card and needed the instruction to install proprietary drivers on my Rocky machine (altough I always tried to stay away from proprietary software).
I just wanted to say thank you for the article: worked like a charm!
Your welcome 🙂
Have a good day
Leave a comment