Roky Linux 8.5+ NVIDIA GPU, nvid

2022-03-15  本文已影响0人  豪威Howie

Step 1. We need to get Epel.

sudo dnf install epel-release

Step 2. Adding the official Nvidia drivers repository to our package managers repository list.

sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo

Step 2. Installing the kernel devel and headers used by the drivers.

sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r)

Step 3. Installing Nvidia drivers and setttings application.

The command below will download the latest stable driver available.

sudo dnf install nvidia-driver nvidia-settings

Step 4. Installing CUDA drivers. (This is optional but recommended)

sudo dnf install cuda-driver

Step 5. Reboot your system.

Step 6. Verify that its working by running nvidia-smi

nvidia-smi

The nvidia-smi command should display information about your graphics card, if this command fails to show the details or throws an error after the command is entered, it means that the driver did not install correctly.

To remove the drivers completely.

Run the command below.

sudo dnf remove nvidia-driver nvidia-settings cuda-driver kernel-devel-$(uname -r) kernel-headers-$(uname -r)
上一篇下一篇

猜你喜欢

热点阅读