This is on RockyLinux 9.4, with a running kernel 5.14.0-427.**26**.1.el9_4.x86_64 with Mellanox OFED installed.
Doing this:
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo
sudo dnf module install nvidia-driver:latest-dkms
results in dnf stating it wants to install kernel-{core,devel}-5.14.0-427.**28**.1.el9_4 which I suspect is going to break my OFED install.
I see the docs state you should install the kernel headers yourself and not leave dnf to pull in the kernel header packages b/c you will probably get the wrong version (it always installs the latest available, even if that isn’t the running kernel). So presumably this is a bug, i.e. for some reason it isn’t finding the already-installed packages?
I’ve tried using 560-dkms instead of latest-dkms, back a few versions, all seemed to have the same issue.