Issues installing using RHEL8 repo

The Forum found here helped with me RHEL8 repo. I was using Rocky Linux 8.10

dnf install cuda
Last metadata expiration check: 2:34:35 ago on Tue 14 Jan 2025 08:28:15 AM +08.
Error: 
 Problem: package cuda-12.6.3-1.x86_64 from cuda-rhel8-x86_64 requires nvidia-open >= 560.35.05, but none of the providers can be installed
  - cannot install the best candidate for the job
  - package nvidia-open-3:560.28.03-1.noarch from cuda-rhel8-x86_64 is filtered out by modular filtering
  - package nvidia-open-3:560.35.03-1.noarch from cuda-rhel8-x86_64 is filtered out by modular filtering
  - package nvidia-open-3:560.35.05-1.el8.noarch from cuda-rhel8-x86_64 is filtered out by modular filtering
  - package nvidia-open-3:565.57.01-1.el8.noarch from cuda-rhel8-x86_64 is filtered out by modular filtering
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

In the forum, there was a workaround solution

Go to the download page and select the V100 driver.

dnf install. ./nvidia..........x86_64.rpm

Remove the old cuda if you have it installed and reset the repo module streams.

dnf remove cuda-toolkit nvidia-driver-cuda
dnf module reset nvidia-driver

Install dkms and cuda

dnf module install nvidia-driver:latest-dkms 
dnf install cuda-toolkit nvidia-driver-cuda

Alternatively, this method works especially if you have not manually install the drivers or manually uninstall it already.

dnf install cuda-toolkit nvidia-driver-cuda