The nvidia-detect package is a utility to detect NVIDIA graphics cards. The utility will probe the PCI bus for NVIDIA devices and search for matching devices against a list of supported device_ids. nvidia-detect will make a recommendation for the correct driver to use based on any matches found. For example:
$ nvidia-detect -v Probing for supported NVIDIA devices... [10de:1d01] NVIDIA Corporation GP108 [GeForce GT 1030] This device requires the current 550.135 NVIDIA driver kmod-nvidia
Because nvidia-detect outputs the package name on RHEL based systems, it may be used in the following way to install the correct NVIDIA driver for your system:
# dnf install $(nvidia-detect)
For more details, please see the README section of our github page.