CentOS 7 cuDNN package dependency problem

I have CentOS 7 machines that use the NVIDIA repose to install CUDA, cuDNN and some TensorRT packages. Here’s my /etc/yum.repos.d/cuda-rhel7.repo file:

[cuda-rhel7-x86_64]
name=cuda-rhel7-x86_64
baseurl=https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64
enabled=1
gpgcheck=1
gpgkey=https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/D42D0685.pub

Things are fouled up after a recent cuDNN update. CUDA 11.8 is installed, but the repo wants to install the following:

libcudnn8-8.7.0.84-1.cuda10.2.x86_64
libcudnn8-devel-8.7.0.84-1.cuda10.2.x86_64

Not the cuda10.2 at the end that I believe should be cuda11.8. When I attempt to remove the offending packages, yum tries to remove other CUDA 11.8 dependent packages I want to keep.

================================================================================
 Package                 Arch   Version                Repository          Size
================================================================================
Removing:
 libcudnn8               x86_64 8.7.0.84-1.cuda10.2    @cuda-rhel7-x86_64 367 M
 libcudnn8-devel         x86_64 8.7.0.84-1.cuda10.2    @cuda-rhel7-x86_64 443 M
Removing for dependencies:
 libnvinfer-devel        x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64 1.0 G
 libnvinfer-plugin-devel x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64  45 M
 libnvinfer-plugin8      x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64  41 M
 libnvinfer8             x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64 821 M
 libnvonnxparsers-devel  x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64 2.6 M
 libnvonnxparsers8       x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64 2.7 M
 libnvparsers-devel      x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64  20 M
 libnvparsers8           x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64 3.3 M
 python3-libnvinfer      x86_64 8.5.1-1.cuda11.8       @cuda-rhel7-x86_64 3.8 M

Transaction Summary
================================================================================
Remove  2 Packages (+9 Dependent packages)

It seems like there are bad package dependencies floating around.
Can someone confirm?

TIA,
Pete

I can confirm that if I drop back to

libcudnn8-8.6.0.163-1.cuda11.8.x86_64
libcudnn8-devel-8.6.0.163-1.cuda11.8.x86_64

the problem is resolve, but the repo wants to overwrite them with the incorrect CUDA versions:

sudo yum update
Loaded plugins: fastestmirror, nvidia
Loading mirror speeds from cached hostfile
 * base: mirrors.oit.uci.edu
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: linux.mirrors.es.net
 * rpmfusion-free-updates: mirrors.ocf.berkeley.edu
 * rpmfusion-nonfree-updates: mirrors.ocf.berkeley.edu
 * updates: centos-distro.cavecreek.net
runner_gitlab-runner/x86_64/signature                                                                                                                                                                                                                    |  862 B  00:00:00
runner_gitlab-runner/x86_64/signature                                                                                                                                                                                                                    | 1.0 kB  00:00:00 !!!
runner_gitlab-runner-source/signature                                                                                                                                                                                                                    |  862 B  00:00:00
runner_gitlab-runner-source/signature                                                                                                                                                                                                                    |  951 B  00:00:00 !!!
Resolving Dependencies
--> Running transaction check
---> Package libcudnn8.x86_64 0:8.6.0.163-1.cuda11.8 will be updated
---> Package libcudnn8.x86_64 0:8.7.0.84-1.cuda10.2 will be an update
---> Package libcudnn8-devel.x86_64 0:8.6.0.163-1.cuda11.8 will be updated
---> Package libcudnn8-devel.x86_64 0:8.7.0.84-1.cuda10.2 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================================================================================================================
 Package                                                            Arch                                                      Version                                                                Repository                                                            Size
================================================================================================================================================================================================================================================================================
Updating:
 libcudnn8                                                          x86_64                                                    8.7.0.84-1.cuda10.2                                                    cuda-rhel7-x86_64                                                    235 M
 libcudnn8-devel                                                    x86_64                                                    8.7.0.84-1.cuda10.2                                                    cuda-rhel7-x86_64                                                    243 M

Transaction Summary
================================================================================================================================================================================================================================================================================
Upgrade  2 Packages

Total download size: 478 M
Is this ok [y/d/N]:

So blind updating is not an option until this is resolved.