Skip to content

Instantly share code, notes, and snippets.

@dualvtable
Last active November 1, 2022 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dualvtable/2096e016a03f071028d21a7e92fbcf0d to your computer and use it in GitHub Desktop.
Save dualvtable/2096e016a03f071028d21a7e92fbcf0d to your computer and use it in GitHub Desktop.

Overview

The purpose of this document is to summarize the steps for building and installing NVIDIA driver precompiled modules on RHEL7 based distributions.

Flavors

For RHEL7 and derivatives, there are three sets of packages with different package dependencies:

  1. latest-dkms - always update to the highest versioned driver. These packages are not precompiled against a specific kernel.
  2. latest - always update to the highest versioned driver. These packages are precompiled against a specific kernel
  3. branch-XXX - locks driver updates to the specified driver branch

Precompiled

To use the precompiled flavors, latest and branch-XXX, one needs to provide the following packages respectively, which contain precompiled modules for the specific driver+kernel combination:

  • kmod-nvidia-latest
  • kmod-nvidia-branch-XXX

Workflow

  1. Follow the steps outlined in the Git repo: https://github.com/NVIDIA/yum-packaging-precompiled-kmod to create the kmod packages, including signed modules if needed.
  2. It may be most beneficial to create a "local" repo that includes all the package dependencies + precompiled kmod package from the previous step into a single self-contained "local repository".

Once the local repo is created, the following steps can be used to install the driver:

RHEL7 flavors: latest, branch-XXX, latest-dkms

yum install nvidia-driver-${flavor}
> ex: yum install nvidia-driver-latest

Then to install nvidia-settings if needed:

yum install cuda-drivers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment