initial commit

This commit is contained in:
Jonathan Wright 2025-05-26 10:39:57 -05:00
commit 954d24f09e
3 changed files with 120 additions and 0 deletions

31
almalinux-nvidia.repo Normal file
View File

@ -0,0 +1,31 @@
# NVIDIA driver repo for AlmaLinux
[almalinux-nvidia]
name=AlmaLinux Kitten $releasever - NVIDIA Driver
mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/nvidia
# baseurl=https://kitten.repo.almalinux.org/$releasever-kitten/nvidia/$basearch/os/
gpgcheck=1
enabled=1
countme=1
gpgkey=https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
metadata_expire=6h
## Sources
[almalinux-nvidia-source]
name=AlmaLinux Kitten $releasever - NVIDIA Driver Source
mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/nvidia-source
# baseurl=https://kitten.vault.almalinux.org/$releasever-kitten/nvidia/Source/
gpgcheck=1
enabled=0
gpgkey=https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
metadata_expire=6h
## Debug
[almalinux-nvidia-debuginfo]
name=AlmaLinux Kitten $releasever - NVIDIA Driver debuginfo
mirrorlist=https://kitten.mirrors.almalinux.org/mirrorlist/$releasever-kitten/nvidia-debuginfo
# baseurl=https://kitten.vault.almalinux.org/$releasever-kitten/nvidia/debug/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
metadata_expire=6h

View File

@ -0,0 +1,48 @@
Name: almalinux-release-nvidia-driver
Summary: AlmaLinux NVIDIA driver repository configuration
Version: 10
Release: 1%{?dist}
License: GPL-2.0-only
URL: https://almalinux.org/
Source0: almalinux-nvidia.repo
Source1: negativo-nvidia.repo
Requires: epel-release
Requires(post): epel-release
Provides: almalinux-release-nvidia-driver = %{version}
Conflicts: epel-nvidia
%description
DNF configuration for AlmaLinux NVIDIA driver repository
%prep
%ifarch x86_64_v2
sed -i "s/\$basearch/x86_64_v2/g" %{SOURCE0}
%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
%endif
%post
if [ -x /usr/bin/crb ]; then
/usr/bin/crb enable
fi
%files
%config(noreplace) %{_sysconfdir}/yum.repos.d/almalinux-nvidia.repo
%ifnarch x86_64_v2
%{_sysconfdir}/yum.repos.d/negativo-nvidia.repo
%endif
%changelog
* Mon May 26 2025 Jonathan Wright <jonathan@almalinux.org> - 10-1
- Initial release

41
negativo-nvidia.repo Normal file
View File

@ -0,0 +1,41 @@
# 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