Cuda driver installation

On rocky 8.7 i am using the epel repo to install kmod-nvidia, x11-driver and x11-driver-libs rpms to get my gpu drivers installed but i would like to use the cuda drivers instead. Does anyone know how you truely install the cuda drivers and also set the relevant cuda environmental variables?

Hi,

I think this covers your requirements:

https://rpmfusion.org/Howto/CUDA

Regards Tom.

Thanks for the link. I come across this link

https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#rhel-8-rocky-8

Has anyone followed the above link and got cuda working correctly?

Yes, for CentOS 7 and possibly for AlmaLinux 9. We did skip the el8.
(Although I almost never follow any “links” verbatim – too many atrocious details to disagree.)