migrating "manual" install to RPM?

Hello!! I have installed the nvidia driver on my fleet of centos desktops using the “manual” install, i.e. bash NVIDIA-Linux-x86_64-418.43.run -a -s.

I would like to migrate to using an RPM-based install, however when I test this by first manually installing, then installing the RPM, I get the dreaded:
Failed to initialize NVML: Driver/library version mismatch

Do I need to uninstall the manual installation before installing the RPM? I would prefer not to . . .


You have to uninstall the .run installer driver first using the --uninstall option.

Thanks! It turns out that when installing nvidia-driver and nvidia-driver-cuda at version 430.34, yum installed nvidia-driver-NVML at as a dependency, but at version 430.40. Specifying 430-34

ALSO?, I needed to rmmod all nvidia modules.