Skip to content

Instantly share code, notes, and snippets.

@Lzok
Created April 20, 2022 14:17
Show Gist options
  • Save Lzok/7ab40899674a65e07da1dbc850d743ef to your computer and use it in GitHub Desktop.
Save Lzok/7ab40899674a65e07da1dbc850d743ef to your computer and use it in GitHub Desktop.
Links and steps to update Nvidia drivers on Debian 11

Source I used

Current GPU: NVIDIA GeForce RTX 3070

NVIDIA Drivers with Official NVIDIA Repository

Import the GPG Key

sudo wget -O- https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/7fa2af80.pub | gpg --dearmor | sudo tee /usr/share/keyrings/nvidia-drivers-linuxcapable.com.gpg

Import the repository for the Debian system

echo 'deb [signed-by=/usr/share/keyrings/nvidia-drivers-linuxcapable.com.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/ /' | sudo tee /etc/apt/sources.list.d/nvidia-drivers.list

sudo add-apt-repository contrib

sudo apt update && sudo apt upgrade -y

Install the drivers with CUDA support

sudo apt install cuda nvidia-driver nvidia-settings nvidia-smi nvidia-xconfig nvidia-opencl-icd nvidia-opencl-common nvidia-detect

Then, reboot.

nvidia-smi

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment