Rebase to official NVIDIA CUDA repo

This commit is contained in:
Jonathan Wright 2025-08-04 16:21:55 -05:00
parent 66bedd092c
commit 92b74478ad
3 changed files with 26 additions and 48 deletions

View File

@ -1,12 +1,12 @@
Name: almalinux-release-nvidia-driver
Summary: AlmaLinux NVIDIA driver repository configuration
Version: 10
Release: 1%{?dist}
Version: %{?rhel}
Release: 2%{?dist}
License: GPL-2.0-only
URL: https://almalinux.org/
ExclusiveArch: %{x86_64} %{arm64}
Source0: almalinux-nvidia.repo
Source1: negativo-nvidia.repo
Source1: nvidia-cuda.repo
Requires: epel-release
Requires(post): epel-release
@ -23,12 +23,14 @@ DNF configuration for AlmaLinux NVIDIA driver repository
sed -i "s/\$basearch/x86_64_v2/g" %{SOURCE0}
sed -i '/^mirrorlist=/ s|$|?arch=x86_64_v2|g' %{SOURCE0}
%endif
%ifarch aarch64
sed -i "s/\$basearch/sbsa/g" %{SOURCE1}
%endif
%install
install -D -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/yum.repos.d/almalinux-nvidia.repo
%ifnarch x86_64_v2
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/yum.repos.d/negativo-nvidia.repo
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/yum.repos.d/nvidia-cuda.repo
%endif
@ -41,10 +43,13 @@ fi
%files
%config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-nvidia.repo
%ifnarch x86_64_v2
%{_sysconfdir}/yum.repos.d/negativo-nvidia.repo
%{_sysconfdir}/yum.repos.d/nvidia-cuda.repo
%endif
%changelog
* Mon May 26 2025 Jonathan Wright <jonathan@almalinux.org> - 10-1
* Mon Aug 04 2025 Jonathan Wright <jonathan@almalinux.org> - %{?rhel}-2
- Rebase to official NVIDIA CUDA repo
* Mon May 26 2025 Jonathan Wright <jonathan@almalinux.org> - %{?rhel}-1
- Initial release

View File

@ -1,41 +0,0 @@
# This repository is for NVIDIA user space and CUDA components which cannot be redistributed due to licensing restrictions.
# This repo's content represents what will become the official NVIDIA repository for these components.
# We will swap this to the official NVIDIA repository when it becomes available on the NVIDIA domain.
# Do not modify this file, it will be overwritten/replaced on updates.
[negativo-nvidia]
name=AlmaLinux Kitten $releasever - negativo17 - NVIDIA
baseurl=https://negativo17.org/repos/nvidia/epel-$releasever/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=1
gpgkey=https://negativo17.org/repos/RPM-GPG-KEY-slaanesh
enabled_metadata=1
metadata_expire=6h
type=rpm-md
repo_gpgcheck=0
exclude=akmod-nvidia dkms-nvidia nvidia-driver nvidia-driver-libs nvidia-settings
[negativo-nvidia-source]
name=AlmaLinux Kitten $releasever - negativo17 - NVIDIA - Source
baseurl=https://negativo17.org/repos/nvidia/epel-$releasever/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=1
gpgkey=https://negativo17.org/repos/RPM-GPG-KEY-slaanesh
enabled_metadata=1
metadata_expire=6h
type=rpm-md
repo_gpgcheck=0
[negativo-nvidia-debug]
name=AlmaLinux Kitten $releasever - negativo17 - NVIDIA - Debug
baseurl=https://negativo17.org/repos/nvidia/epel-$releasever/$basearch.debug/
enabled=0
skip_if_unavailable=1
gpgcheck=1
gpgkey=https://negativo17.org/repos/RPM-GPG-KEY-slaanesh
enabled_metadata=1
metadata_expire=6h
type=rpm-md
repo_gpgcheck=0

14
nvidia-cuda.repo Normal file
View File

@ -0,0 +1,14 @@
# This repository is for NVIDIA user space and CUDA components which cannot be redistributed due to licensing restrictions.
# This content is served directly by NVIDIA.
# Do not modify this file, it will be overwritten/replaced on updates.
[cuda-rhel$releasever-$basearch]
name=cuda-rhel$releasever-$basearch
baseurl=https://developer.download.nvidia.com/compute/cuda/repos/rhel$releasever/$basearch
enabled=1
gpgcheck=1
countme=1
gpgkey=https://developer.download.nvidia.com/compute/cuda/repos/rhel10$releasever/$basearch/CDF6BA43.pub
exclude=akmod-nvidia dkms-nvidia kmod-nvidia-*-dkms nvidia-fs* nvidia-gds* cuda-drivers