当前位置: 首页 > news >正文

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
http://www.lryc.cn/news/351024.html

相关文章:

  • springmvc不同格式的参数解析
  • Unity3D让BoxCollider根据子物体生成自适应大小
  • WSL 2 installation is incomplete.
  • Servlet的request对象
  • 蓝桥杯-合并数列
  • 《web应用技术》第9次课后作业
  • FRAUDARCatchSync算法简介
  • 刷题之将有序数组转换成二叉搜索树(leetcode)
  • K-means聚类模型教程(个人总结版)
  • android怎么告诉系统不要回收
  • 【FAQ】HarmonyOS SDK 闭源开放能力 —IAP Kit(2)
  • ubuntu设置root开机登录,允许root用户ssh远程登录
  • Web测试面试题(二)
  • VBA宏指令写的方法突然不能用了
  • 第13章 Python建模库介绍
  • IP学习——ospf1
  • 别说废话!说话说到点上,项目高效沟通的底层逻辑揭秘
  • 前后端编程语言和运行环境的理解
  • 一顿五元钱的午餐
  • 【前端每日基础】day60——TDK三大标签及SEO引擎优化
  • vscode添加代办相关插件,提高开发效率
  • JS对象超细
  • 远程PLC、工控设备异地调试,贝锐蒲公英异地组网方案简单高效
  • 【算法】梦破碎之地---三数之和
  • c语言如何将一个文本内容复制到另外一个文本里
  • JavaScript基础(九)
  • 决策树最优属性选择
  • NER 数据集格式转换
  • 【LinuxC语言】utime函数
  • Cannot invoke an object which is possibly ‘undefined‘