From 954d24f09e99f0630886adab994fe1c9905cfecc Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Mon, 26 May 2025 10:39:57 -0500 Subject: [PATCH] initial commit --- almalinux-nvidia.repo | 31 ++++++++++++++++++ almalinux-release-nvidia-driver.spec | 48 ++++++++++++++++++++++++++++ negativo-nvidia.repo | 41 ++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 almalinux-nvidia.repo create mode 100644 almalinux-release-nvidia-driver.spec create mode 100644 negativo-nvidia.repo diff --git a/almalinux-nvidia.repo b/almalinux-nvidia.repo new file mode 100644 index 0000000..d24dd26 --- /dev/null +++ b/almalinux-nvidia.repo @@ -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 diff --git a/almalinux-release-nvidia-driver.spec b/almalinux-release-nvidia-driver.spec new file mode 100644 index 0000000..ef35d16 --- /dev/null +++ b/almalinux-release-nvidia-driver.spec @@ -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 - 10-1 +- Initial release diff --git a/negativo-nvidia.repo b/negativo-nvidia.repo new file mode 100644 index 0000000..cde09ff --- /dev/null +++ b/negativo-nvidia.repo @@ -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