From 7a9f3ee80bca459f7529dd7a2db7382ac7a6252d Mon Sep 17 00:00:00 2001 From: Growl1234 <148773439+Growl1234@users.noreply.github.com> Date: Fri, 10 Oct 2025 00:21:30 +0800 Subject: [PATCH 1/2] Update installing_nvidia_gpu_drivers.md The old document for installing NVIDIA drivers is not fit for Rocky Linux 10. --- .../display/installing_nvidia_gpu_drivers.md | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/docs/desktop/display/installing_nvidia_gpu_drivers.md b/docs/desktop/display/installing_nvidia_gpu_drivers.md index 371e46ab60..bde409e5e6 100644 --- a/docs/desktop/display/installing_nvidia_gpu_drivers.md +++ b/docs/desktop/display/installing_nvidia_gpu_drivers.md @@ -6,11 +6,7 @@ contributors: Steven Spencer, Ganna Zhyrnova ## Introduction -NVIDIA^®^ is one of the most popular GPU manufacturers. You can install NVIDIA GPU drivers in more than one way. This guide uses NVIDIA's official repository to install their drivers. Therefore, [NVIDIA's installation guide](https://docs.nvidia.com/cuda/pdf/CUDA_Installation_Guide_Linux.pdf) is heavily referenced here. - -!!! Note - - The link for pre-installation actions in NVIDIA's official guide is broken. To install the NVIDIA driver, you must install the necessary utilities and dependencies from their official repository. +NVIDIA^®^ is one of the most popular GPU manufacturers. You can install NVIDIA GPU drivers in more than one way. This guide uses NVIDIA's official repository to install their drivers. Therefore, [NVIDIA Driver Installation Guide](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html) is heavily referenced here. Some other alternative ways to install NVIDIA drivers include: @@ -44,13 +40,7 @@ sudo dnf groupinstall "Development Tools" -y The `kernel-devel` package provides the necessary headers and tools to build kernel modules: ```bash -sudo dnf install kernel-devel -y -``` - -Dynamic Kernel Module Support (DKMS) is a program used to rebuild kernel modules automatically: - -```bash -sudo dnf install dkms -y +sudo dnf install kernel-devel-matched kernel-headers -y ``` ## Install NVIDIA drivers @@ -61,22 +51,28 @@ Add the official NVIDIA repository with the following command: !!! Note - If you use Rocky 8, replace `rhel9` in the file path with `rhel8`. + If you use Rocky 9, replace `rhel10` in the file path with `rhel9`. + +```bash +sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel10/$(uname -i)/cuda-rhel10.repo +``` + +Next, clean DNF repository cache: ```bash -sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repo +sudo dnf clean expire-cache ``` -Next, install a set of packages necessary for building and installing kernel modules: +Finally, install the latest NVIDIA driver for your system. For open kernel modules, run: ```bash -sudo dnf install 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 pkgconf dkms -y +sudo dnf install nvidia-open -y ``` -Install the latest NVIDIA driver module for your system: +While for proprietary kernel modules, run: ```bash -sudo dnf module install nvidia-driver:latest-dkms -y +sudo dnf install cuda-drivers -y ``` ## Disable Nouveau From 82ada70a957ec70c5b60e259fcd5bcdfdc083415 Mon Sep 17 00:00:00 2001 From: Growl1234 <148773439+Growl1234@users.noreply.github.com> Date: Fri, 10 Oct 2025 00:51:37 +0800 Subject: [PATCH 2/2] Update installing_nvidia_gpu_drivers.md --- docs/desktop/display/installing_nvidia_gpu_drivers.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/desktop/display/installing_nvidia_gpu_drivers.md b/docs/desktop/display/installing_nvidia_gpu_drivers.md index bde409e5e6..912be63b18 100644 --- a/docs/desktop/display/installing_nvidia_gpu_drivers.md +++ b/docs/desktop/display/installing_nvidia_gpu_drivers.md @@ -49,10 +49,6 @@ After installing the necessary prerequisites, it is time to install the NVIDIA d Add the official NVIDIA repository with the following command: -!!! Note - - If you use Rocky 9, replace `rhel10` in the file path with `rhel9`. - ```bash sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel10/$(uname -i)/cuda-rhel10.repo ```