======nvidia-detect======
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. It will make a recommendation for the best driver to use based on the NVIDIA //supported-gpus.json// file.
For example:
$ nvidia-detect -v
Probing for supported NVIDIA devices...
[10de:2182] NVIDIA Corporation TU116 [GeForce GTX 1660 Ti]
This device requires the current 595.91.07 NVIDIA driver kmod-nvidia-open
$ nvidia-detect -v
Probing for supported NVIDIA devices...
[10de:1d01] NVIDIA Corporation GP108 [GeForce GT 1030]
This device requires the legacy 580.xx NVIDIA driver kmod-nvidia-580xx
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 [[https://github.com/elrepo/packages/tree/master/nvidia-detect#readme |README]] section of our github page.