The Linux system has installed CUDA to update the NVIDIA driver offline

Project Scenario and Problem Description

In the offline environment of the intranet, CUDA has been installed, but the NVIDIA driver version is relatively low, so the NVIDIA driver needs to be updated offline. This article introduces the installation steps.


installation steps

  1. Download the NVIDIA installation package that matches the system and GPU driver from the official NVIDIA website. The address is as follows:
    NVIDIA Driver Download
  2. Copy the downloaded driver to the intranet environment.
  3. Confirm that appropriate software and dependencies have been installed in the intranet environment, such as Linux kernel header files and build-essential software packages.
  4. Disable existing NVIDIA drivers and uninstall. The command is as follows:
sudo systemctl stop nvidia-persistenced
sudo systemctl stop nvidia-fabricmanager
sudo apt-get remove --purge '^nvidia-.*'
  1. Run the installer for the downloaded driver. Execution command:
sudo sh NVIDIA-Linux-x86_64-xxx.xx.run
  1. Follow the installer's prompts and allow it to make the necessary changes and reboot on your system.
  2. The instructions to verify that the NVIDIA driver has been successfully installed are as follows:
nvidia-smi

If the NVIDIA driver is installed correctly, you can see the details of the GPUs available in the system, as shown in the figure below
nvidia-smi

Guess you like

Origin blog.csdn.net/qq_39691492/article/details/131379986