centos9 stream在线安装NVIDIA驱动(rockylinux9.4也成功安装nvidia驱动)

Install NVIDIA Drivers on CentOS Stream 9(rockylinux9.4成功)

主板为技嘉mz72-hb2
显卡为4090

一.Disable Secure Boot From the BIOS

二.Enabling the EPEL Repository on CentOS Stream 9
1.update the DNF package repository cache

sudo dnf makecache

如果源报错,请自行切换国内源。
2.Enable the official CentOS Stream 9 CRB package repository

sudo dnf config-manager --set-enabled crb

3.Install the epel-release and epel-next-release packages

sudo dnf install -y epel-release epel-next-release
sudo dnf makecache

三.Installing the Required Dependencies and Build Tools for Compiling NVIDIA Kernel Modules

1.install the required build tools and the required dependency libraries for compiling the NVIDIA kernel modules

sudo dnf install -y kernel-headers-$(uname -r) kernel-devel-$(uname -r) tar bzip2 make automake gcc gcc-c++ pciutils elfutils-libelf-devel libglvnd-opengl libglvnd-glx libglvnd-devel acpid pkgconfig dkms

如果安装headers和devel没有当前可用的,可以先安装dkms或更新kernel然后重启继续这部。

四.Adding the Official NVIDIA CUDA Package Repository on CentOS Stream 9

1.add the official NVIDIA CUDA package repository on CentOS Stream 9

sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repo
sudo dnf makecache

五.Installing the Latest NVIDIA GPU Drivers on CentOS Stream 9

1.install the latest version of the NVIDIA GPU drivers on CentOS Stream 9

sudo dnf module install -y nvidia-driver:latest-dkms

如果要安装特定版本可以更改上面部分为指定版本

六.Checking if NVIDIA Drivers are Installed Properly

lsmod | grep nvidia
lsmod | grep nouveau
nvidia-smi
  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值