yum install nvidia-detect
nvidia-detect -v
Probing for supported NVIDIA devices...
[10de:1b06] NVIDIA Corporation GP102 [GeForce GTX 1080 Ti]
This device requires the current 440.64 NVIDIA driver kmod-nvidia
yum install nvidia-x11-drv-440.64 nvidia-x11-drv-440.64-64bit
--> 處理 nvidia-x11-drv-440.64-1.el7_7.elrepo.x86_64 與 nvidia-x11-drv-390xx 的沖突
--> 處理 nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64 與 nvidia-x11-drv-libs 的沖突
--> 處理 nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64 與 nvidia-x11-drv 的沖突
--> 解決依賴關系完成
錯誤:nvidia-x11-drv-390xx conflicts with nvidia-x11-drv-440.64-1.el7_7.elrepo.x86_64
錯誤:nvidia-x11-drv conflicts with nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64
錯誤:nvidia-x11-drv-390xx conflicts with nvidia-x11-drv-libs-440.64-1.el7_7.elrepo.x86_64
您可以嘗試添加 --skip-broken 選項來解決該問題
** 發現 8 個已存在的 RPM 數據庫問題, 'yum check' 輸出如下:
anaconda-core-21.48.22.147-1.el7.centos.x86_64 有缺少的需求 python-subprocess32
dnf-4.0.9.2-1.el7_6.noarch 有缺少的需求 python2-dnf = ('0', '4.0.9.2', '1.el7_6')
ipa-client-4.6.4-10.el7.centos.x86_64 有缺少的需求 python2-ipaclient = ('0', '4.6.4', '10.el7.centos')
orca-3.6.3-4.el7.x86_64 有缺少的需求 pyatspi
1:python-blivet-0.61.15.72-1.el7.noarch 有缺少的需求 python-blockdev
python-devel-2.7.5-88.el7.x86_64 有缺少的需求 python2-rpm-macros > ('0', '3', '30')
python-jwcrypto-0.4.2-1.el7.noarch 有缺少的需求 python-cryptography >= ('0', '1.5', None)
sos-3.6-11.el7.centos.noarch 有缺少的需求 python2-futures
解決方法:
卸載沖突的包
yum remove -y nvidia-x11-drv-390xx-390.138-1.el7_8.elrepo.x86_64
yum remove -y nvidia-x11-drv-460.39-1.el7_9.elrepo.x86_64
yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia