GithubHelp home page GithubHelp logo

5l1v3r1 / yum-packaging-nvidia-xconfig Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvidia/yum-packaging-nvidia-xconfig

0.0 1.0 0.0 63 KB

NVIDIA xconfig packaging for RHEL

License: Apache License 2.0

Shell 100.00%

yum-packaging-nvidia-xconfig's Introduction

yum packaging nvidia xconfig

License Contributing

Overview

Packaging templates for yum and dnf based Linux distros to build NVIDIA xconfig packages.

The main branch contains this README. The .spec and .patch files can be found in the appropriate rhel7, rhel8, and fedora branches.

Table of Contents

Deliverables

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 in 460.32.03

  • RHEL8 or Fedora streams: XXX, XXX-dkms, latest, and latest-dkms
nvidia-xconfig

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-xconfig

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-xconfig
  • RHEL7 flavor: branch-XXX
nvidia-driver-branch-XXX-xconfig

Prerequisites

Clone this git repository:

Supported branches: rhel7, rhel8 & fedora

git clone -b ${branch} https://github.com/NVIDIA/yum-packaging-nvidia-xconfig
> ex: git clone -b rhel8 https://github.com/NVIDIA/yum-packaging-nvidia-xconfig

Download a NVIDIA xconfig tarball:

Install build dependencies

# Compilation
yum install m4 gcc
# Packaging
yum install rpm-build

Building with script

Fetch script from main branch

cd yum-packaging-nvidia-persistenced
git checkout remotes/origin/main -- build.sh

Usage

./build.sh [$version | path/to/*.tar.{gz,bz2} | path/to/*.run]
> ex: time ./build.sh 460.32.03
> ex: time ./build.sh ~/Downloads/nvidia-xconfig-450.102.04.tar.bz2
> ex: time ./build.sh ~/Downloads/nvidia-xconfig-460.32.03.tar.gz
> ex: time ./build.sh ~/Downloads/NVIDIA-Linux-x86_64-450.102.04.run

note: runfile is only used to determine version

Building Manually

Packaging (dnf distros)

note: fedora & rhel8-based distros

mkdir BUILD BUILDROOT RPMS SRPMS SOURCES SPECS
cp *.patch SOURCES/
cp nvidia-xconfig-${version}.tar.gz SOURCES/
cp nvidia-xconfig.spec SPECS/

rpmbuild \
    --define "%_topdir $(pwd)" \
    --define "debug_package %{nil}" \
    --define "version $version" \
    --define "epoch 3" \
    --define "extension gz" \
    -v -bb SPECS/nvidia-xconfig.spec

Packaging (yum distros)

note: rhel7-based distros

mkdir BUILD BUILDROOT RPMS SRPMS SOURCES SPECS
cp *.patch SOURCES/
cp nvidia-xconfig-${version}.tar.gz SOURCES/
cp nvidia-xconfig.spec SPECS/

# latest-dkms
rpmbuild \
    --define "%_topdir $(pwd)" \
    --define "debug_package %{nil}" \
    --define "version $version" \
    --define "driver_branch latest-dkms" \
    --define "is_dkms 1" \
    --define "is_latest 1" \
    --define "epoch 3" \
    --define "extension gz" \
    -v -bb SPECS/nvidia-xconfig.spec

# latest
rpmbuild \
    --define "%_topdir $(pwd)" \
    --define "debug_package %{nil}" \
    --define "version $version" \
    --define "driver_branch latest" \
    --define "is_dkms 0" \
    --define "is_latest 1" \
    --define "epoch 3" \
    --define "extension gz" \
    -v -bb SPECS/nvidia-xconfig.spec

# branch-460
rpmbuild \
    --define "%_topdir $(pwd)" \
    --define "debug_package %{nil}" \
    --define "version $version" \
    --define "driver_branch branch-460" \
    --define "is_dkms 0" \
    --define "is_latest 0" \
    --define "epoch 3" \
    --define "extension gz" \
    -v -bb SPECS/nvidia-xconfig.spec

Related

DKMS nvidia

NVIDIA driver

NVIDIA kmod common

NVIDIA modprobe

NVIDIA persistenced

NVIDIA plugin

NVIDIA precompiled kmod

NVIDIA settings

Contributing

See CONTRIBUTING.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.