Rebase to official NVIDIA CUDA repo
This commit is contained in:
parent
66bedd092c
commit
2c1f46f59a
@ -1,12 +1,12 @@
|
||||
Name: almalinux-release-nvidia-driver
|
||||
Summary: AlmaLinux NVIDIA driver repository configuration
|
||||
Version: 10
|
||||
Release: 1%{?dist}
|
||||
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,21 @@ 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
|
||||
|
||||
%if %{?rhel} == 9
|
||||
sed -i "s/\$gpgkey/D42D0685.pub/g" %{SOURCE1}
|
||||
%endif
|
||||
%if %{?rhel} == 10
|
||||
sed -i "s/\$gpgkey/CDF6BA43.pub/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 +50,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 Aug 04 2025 Jonathan Wright <jonathan@almalinux.org> - 10-2
|
||||
- Rebase to official NVIDIA CUDA repo
|
||||
|
||||
* Mon May 26 2025 Jonathan Wright <jonathan@almalinux.org> - 10-1
|
||||
- Initial release
|
||||
|
@ -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
14
nvidia-cuda.repo
Normal 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/rhel$releasever/$basearch/$gpgkey
|
||||
|
||||
exclude=akmod-nvidia dkms-nvidia kmod-nvidia-*-dkms nvidia-fs* nvidia-gds* cuda-drivers
|
Loading…
Reference in New Issue
Block a user