Packaging templates for yum
and dnf
based Linux distros to build NVIDIA driver packages.
The main
branch contains this README. The .spec
, .conf
, and .sh
files can be found in the appropriate rhel7, rhel8, and fedora branches.
This repo contains the .spec
file used to build the following RPM packages:
note:
XXX
is the first.
delimited field in the driver version, ex:460
in460.32.03
- RHEL8 or Fedora streams:
XXX
,XXX-dkms
,latest
, andlatest-dkms
- nvidia-driver
- nvidia-driver-cuda
- nvidia-driver-cuda-libs
- nvidia-driver-devel
- nvidia-driver-libs
- nvidia-driver-NvFBCOpenGL
- nvidia-driver-NVML
For RHEL7 and derivatives, there are three sets of packages with different package dependencies.
The latest
and latest-dkms
flavors always update to the highest versioned driver, while the branch-XXX
flavor locks driver updates to the specified driver branch.
- RHEL7 flavor:
latest-dkms
- nvidia-driver-latest-dkms
- nvidia-driver-latest-dkms-cuda
- nvidia-driver-latest-dkms-cuda-libs
- nvidia-driver-latest-dkms-devel
- nvidia-driver-latest-dkms-libs
- nvidia-driver-latest-dkms-NvFBCOpenGL
- nvidia-driver-latest-dkms-NVML
note:
XXX-dkms
is not supported for RHEL7
To use the precompiled flavors latest
and branch-XXX
, use yum-packaging-precompiled-kmod to build kmod-nvidia-latest
or kmod-nvidia-branch-XXX
kernel modules for a specific kernel and driver combination.
- RHEL7 flavor:
latest
- nvidia-driver-latest
- nvidia-driver-latest-cuda
- nvidia-driver-latest-cuda-libs
- nvidia-driver-latest-devel
- nvidia-driver-latest-libs
- nvidia-driver-latest-NvFBCOpenGL
- nvidia-driver-latest-NVML
- RHEL7 flavor:
branch-XXX
- nvidia-driver-branch-XXX
- nvidia-driver-branch-XXX-cuda
- nvidia-driver-branch-XXX-cuda-libs
- nvidia-driver-branch-XXX-devel
- nvidia-driver-branch-XXX-libs
- nvidia-driver-branch-XXX-NvFBCOpenGL
- nvidia-driver-branch-XXX-NVML
Supported branches: rhel7
, rhel8
& fedora
git clone -b ${branch} https://github.com/NVIDIA/yum-packaging-nvidia-driver
> ex: git clone -b rhel8 https://github.com/NVIDIA/yum-packaging-nvidia-driver
# Packaging
yum install rpm-build
- nvidia-modprobe
- nvidia-persistenced
- dnf-plugin-nvidia & yum-plugin-nvidia
- Precompiled kernel modules
- nvidia-settings
- nvidia-xconfig
See CONTRIBUTING.md