There are many Linux users who still can’t figure out exactly how to install the latest NVIDIA GPU drivers on Linux as the company doesn’t make installation so easy. At TechKhiladi we have created an ad hoc guide to explain just how to proceed depending on the distribution in your possession.
Table of Contents
How to install latest NVIDIA GPU drivers on Ubuntu
All Ubuntu owners can easily get the latest NVIDIA GPU drivers by enabling a PPA. So, open the terminal and run the command sudo add-apt-repository ppa: graphics-drivers / ppa
.
After correctly adding the new PPA to the system, you need to update the Ubuntu software sources to make the changes effective through the sudo apt update
command . Once the software sources have been updated correctly, it is also necessary to update the Ubuntu PC by running the command sudo apt upgrade -y
.
Once updated all, you can install the latest drivers for NVIDIA GPUs using the command sudo apt install nvidia-graphics-drivers-390 nvidia-settings vdpauinfo vulkan libvdpau
.
Keep in mind that the latest version of the NVIDIA drivers for Linux, at the time of publication of this guide, is 390. However, we recommend that you take the Unix Driver page on the NVIDIA website where you find the latest releases released as a reference.
How to install the latest NVIDIA GPU drivers on Debian
Debian Stable does not offer the latest version of NVIDIA drivers due to its nature. However, if you want to install the latest drivers available, you must first convert Debian Stable to Unstable .
To do this, open the sources.list file using the Nano text editor using the sudo nano /etc/apt/sources.list
command. After that, convert any reference to stable, wheezy and other version names Debian in unstable. Finish the operation by saving the file via Ctrl + O and updating the distribution using the sudo apt-get update
and sudo apt-get dist-upgrade
commands. Once the upgrade is complete, install aptitude to make it easy to install the drivers. Use the command sudo apt install aptitude
.
Now, we need to add the 32-bit architecture so that the NVIDIA drivers are installed correctly, using the sudo dpkg –add-architecture i386
command. Finally, install the latest NVIDIA drivers for Debian Unstable with sudo aptitude -r install nvidia-kernel-dkms nvidia-settings libgl1-nvidia-glx: i386
.
How to install latest NVIDIA GPU drivers on Arch Linux
To get the latest drivers for your NVIDIA GPU on Arch Linux, you first need to run the sudo pacman -S nvidia
command and then type sudo pacman -S nvidia nvidia-libgl lib32-nvidia-libgl nvidia-settings
to get the latest packages related to 32 bits (important for playing Steam games).
Finally, to use NVIDIA drivers on Arch Linux you need to enable the systemd service to avoid incurring some errors. Use the command sudo systemctl enable nvidia-persistenced.service
and then run it with sudo systemctl start nvidia-persistenced.service
.
How to install latest NVIDIA GPU drivers on Fedora
There are several ways to install NVIDIA GPU drivers on Fedora, but we suggest you follow the simplest method of using DNF.
So, use the sudo dnf update
command to update all the packages on the system. Since Fedora does not support proprietary Linux drivers, at the end of the update it will be necessary to add a new software repository using the command sudo dnf config-manager –add-repo=https://negativo17.org/repos/fedora-nvidia.repo
.
Once this is done, close the terminal, open the Gnome software, search for Nvidia Linux Graphics Driver and proceed with the installation. When finished, restart your computer.
How to install latest NVIDIA GPU drivers on OpenSUSE
OpenSUSE has excellent support for NVIDIA. If you have the Leap version, first you need to remove the drm-kmp-default packages as they would conflict with those of NVIDIA. To do this, use the command sudo zypper rm drm-kmp-default
.
At this point, add the NVIDIA driver repository for Leap 42.3 through the sudo zypper addrepo –refresh command http://http.download.nvidia.com/opensuse/leap/42.3 NVIDIA
. In conclusion, install the driver with sudo zypper install-new-recommends
and at the end restart the computer.
If, instead, you use the Tumbleweed version, you need to use the following commands:
sudo zypper addrepo –refresh http://http.download.nvidia.com/opensuse/tumbleweed NVIDIA sudo zypper install-new-recommends
Just as seen on Leap, restart the computer after installation.
How to install latest NVIDIA GPU drivers on other Linux distributions
NVIDIA supports many other Linux distributions as it provides a binary package for all other distros. In this case, we advise you to take the guide attached below where you will find all the steps to follow.
Doubts or problems? We help you!
If you have any doubt or suggestions related to this guide then feel free to contact us via our dedicated page. We will be happy to help you!