Driver Helper Script#

A script is available to detect and install the best NVIDIA driver packages for the user’s system. This piece of software is meant to help users decide on which NVIDIA graphics driver to install, based on the detected system’s hardware.

To install the driver helper script, install the nvidia-driver-assistant package using apt/dnf/tdnf/zypper.

The following table explains the different flags for the driver helper script:

Table 7 Driver helper script flags#

Flags Used

Description

--install

Install the recommended driver.

--branch [BRANCH]

Specify an NVIDIA Driver branch.

--list-supported-distros

Print out the list of the supported Linux distributions.

--supported-gpus [SUPPORTED_GPUS]

Use a different supported-gpus.json file.

--sys-path [SYS_PATH]

Use a different /sys path. Useful for testing.

--os-release-path [OS_RELEASE_PATH]

Use a different path for the os-release file. Useful for testing.

--distro [DISTRO]

Linux distribution using the DISTRO:VERSION or DISTRO pattern.

--module-flavor [MODULE_FLAVOR]

Kernel module flavor; open and closed are accepted values.

--verbose

[OPTIONAL] Verbose output.

The following are example command outputs:

Table 8 Command outputs#

Command

Example Output

$ nvidia-driver-assistant

Detected GPUs:

NVIDIA GeForce RTX 3070 - (pci_id 0x2484)

Detected system:

Ubuntu 24.04

Please copy and paste the following command to install the open kernel module flavour:

sudo apt install -y nvidia-open

$ nvidia-driver-assistant --install

Detected GPUs:

NVIDIA GeForce RTX 3070 - (pci_id 0x2484)

Detected system:

Ubuntu 24.04

Using the NVIDIA driver implies acceptance of the NVIDIA Software License Agreement, contained in the "LICENSE" file in the "/usr/share/nvidia-driver-assistant/driver_eula" directory

Installing the following package for the open kernel module flavour:

sudo apt install -y nvidia-open

$ nvidia-driver-assistant --install --module-flavor closed

Detected GPUs:

NVIDIA GeForce RTX 3070 - (pci_id 0x2484)

Detected system:

Ubuntu 24.04

Using the NVIDIA driver implies acceptance of the NVIDIA Software License Agreement, contained in the "LICENSE" file in the "/usr/share/nvidia-driver-assistant/driver_eula" directory

Installing the following package for the legacy kernel module flavour:

sudo apt install -y cuda-drivers