SUSE#
This section covers:
SUSE Linux Enterprise 15
OpenSUSE Leap 15
Preparation#
Perform the Pre-installation Actions.
The kernel development packages for the currently running kernel can be installed with:
# zypper install -y kernel-<variant>-devel=<version>
Note
<variant>may be:default,64kforaarch64ordefault,azureforx86_64.To run the above command, you will need the variant and version of the currently running kernel. Use the output of the
unamecommand to determine the currently running kernel’s variant and version:$ uname -r 3.16.6-2-default
In the above example, the variant is
defaultand version is3.16.6-2.The kernel development packages for the default kernel variant can be installed with:
# zypper install -y kernel-default-devel=$(uname -r | sed 's/\-default//')
The kernel headers and development packages for the currently running kernel can be installed with:
# zypper install -y kernel-<variant>-devel=$(uname -r | sed 's/\-default//')
Choose an installation method: Local Repository Installation or Network Repository Installation.
Local Repository Installation#
Download the NVIDIA driver:
$ wget https://developer.download.nvidia.com/compute/nvidia-driver/$version/local_installers/nvidia-driver-local-repo-$distro.$version.$arch.rpm
where
$versionis the NVIDIA driver versionInstall local repository on file system:
# rpm --install nvidia-driver-local-repo-$distro.$version*.$arch.rpm
Network Repository Installation#
Enable the network repository. For
x86_64:# zypper addrepo https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/cuda-$distro.repo
For
aarch64:# zypper addrepo https://developer.download.nvidia.com/compute/cuda/repos/$distro/sbsa/cuda-$distro.repo
Refresh Zypper repository cache:
# SUSEConnect --product PackageHub/15/<architecture> # zypper refresh
Driver Installation#
These instructions apply to both local and network installations.
Open Kernel Modules
# zypper -v install nvidia-open
Proprietary Kernel Modules
# zypper -v install cuda-drivers
Compute-only (Headless) and Desktop-only (no Compute) Installation#
It’s possible to install the driver without all the desktop components (GL, EGL, Vulkan, X drivers, and so on) to limit the footprint and dependencies on the system. With the same logic it’s possible to install a desktop system without any compute component.
Note
The components excluded at installation time can always be added at a later stage. This will pull in all the additional dependencies required.
Compute-only System#
Open Kernel Modules
# zypper -v install nvidia-compute-G07 nvidia-open-driver-G07
Proprietary Kernel Modules
# zypper -v install nvidia-compute-G07 nvidia-driver-G07
Desktop-only System#
Open Kernel Modules
# zypper -v install nvidia-video-G07 nvidia-open-driver-G07
Proprietary Kernel Modules
# zypper -v install nvidia-video-G07 nvidia-driver-G07
Reboot the System#
# reboot
Perform the Post-installation Actions.
Package Upgrades#
When a new version is available, a normal package update command specific for the distribution should suffice in upgrading the driver. The various differences in distributions would take care of obsolency and package switching when performing upgrades to a different branch.
The following section shows some examples of the commands that can be performed.
When upgrading the driver to the same stream:
# zypper update --details
When upgrading the driver to a different stream:
# zypper install --details --force-resolution nvidia-open
This will remove any package which would prevent you from reaching the target.