Installation of the Nvidia drivers can be a problem on Alma Linux, but I managed to get this working. Firstly I had to set up the repositories for the installation.
Enable CRB on Alma Linux.
sudo dnf config-manager --set-enabled crb sudo dnf makecache |
Enable the EPEL 9 repository if it has not already been enabled.
sudo dnf -y install epel-release sudo dnf upgrade |
Add the required Nvidia drivers repository.
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo sudo dnf makecache |
Then you may install the latest Nvidia driver for your card.
sudo dnf module install nvidia-driver |
Once this completes, restart your machine and the Nvidia driver will be working.
┏jcartwright@localhost┋ ~━━┓ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━┛[10:45] ▓▒░┋ nvidia-smi Mon Jul 3 11:09:31 2023 +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.54.03 Driver Version: 535.54.03 CUDA Version: 12.2 | |-----------------------------------------+----------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+======================+======================| | 0 NVIDIA GeForce RTX 2060 Off | 00000000:01:00.0 On | N/A | | 39% 31C P5 19W / 172W | 346MiB / 6144MiB | 32% Default | | | | N/A | +-----------------------------------------+----------------------+----------------------+ +---------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=======================================================================================| | 0 N/A N/A 2562 G /usr/libexec/Xorg 139MiB | | 0 N/A N/A 2698 G /usr/bin/gnome-shell 47MiB | | 0 N/A N/A 3479 G /usr/lib64/firefox/firefox 156MiB | +---------------------------------------------------------------------------------------+ |
After all of that, just install these final packages and you are done.
[root@localhost jcartwright]# dnf install freeglut-devel libX11-devel libXi-devel libXmu-devel make mesa-libGLU-devel freeimage-devel glfw-devel Last metadata expiration check: 0:05:32 ago on Mon Jul 3 11:04:59 2023. Package libX11-devel-1.7.0-7.el9.x86_64 is already installed. Package make-1:4.3-7.el9.x86_64 is already installed. Dependencies resolved. |
This does work very well, I needed to load the Nvidia settings utility to set the fan speed manually, but this is fine.