The purpose of this document is to summarize the steps for building and installing NVIDIA driver precompiled modules on RHEL7 based distributions.
For RHEL7 and derivatives, there are three sets of packages with different package dependencies:
latest-dkms- always update to the highest versioned driver. These packages are not precompiled against a specific kernel.latest- always update to the highest versioned driver. These packages are precompiled against a specific kernelbranch-XXX- locks driver updates to the specified driver branch
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-latestkmod-nvidia-branch-XXX
- Follow the steps outlined in the Git repo: https://github.com/NVIDIA/yum-packaging-precompiled-kmod to create the
kmodpackages, including signed modules if needed. - It may be most beneficial to create a "local" repo that includes all the package dependencies + precompiled
kmodpackage 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-latestThen to install nvidia-settings if needed:
yum install cuda-drivers