From 7374c26ba8d868768cabdc3dbe07a0ba541fb7ce Mon Sep 17 00:00:00 2001 From: Kyle Walker Date: Tue, 1 Mar 2022 13:53:55 -0500 Subject: [PATCH] Remove the use of $releasever The $releasever is perfectly fine for most installations. However, in the instance that a system has a releasever set to something other than the default, like 8.4, it causes issues as the EPEL repository structure doesn't include these minor versions. The solution here was a simple: sed 's/\$releasever/8/g' -i *.repo Tested the change. Encountered a single issue with the epel-playground-source repo, but it was unrelated and seen with the unpatched revision. Signed-off-by: Kyle Walker --- epel-modular.repo | 18 +++++++++--------- epel-next-testing.repo | 18 +++++++++--------- epel-next.repo | 18 +++++++++--------- epel-testing-modular.repo | 18 +++++++++--------- epel-testing.repo | 18 +++++++++--------- epel.repo | 18 +++++++++--------- 6 files changed, 54 insertions(+), 54 deletions(-) diff --git a/epel-modular.repo b/epel-modular.repo index 3ac79cc..98f41c6 100644 --- a/epel-modular.repo +++ b/epel-modular.repo @@ -1,30 +1,30 @@ [epel-modular] -name=Extra Packages for Enterprise Linux Modular $releasever - $basearch +name=Extra Packages for Enterprise Linux Modular 8 - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/$releasever/Modular/$basearch -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/8/Modular/$basearch +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-8&arch=$basearch&infra=$infra&content=$contentdir enabled=1 gpgcheck=1 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-modular-debuginfo] -name=Extra Packages for Enterprise Linux Modular $releasever - $basearch - Debug +name=Extra Packages for Enterprise Linux Modular 8 - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/$releasever/Modular/$basearch/debug -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/8/Modular/$basearch/debug +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-debug-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-modular-source] -name=Extra Packages for Enterprise Linux Modular $releasever - $basearch - Source +name=Extra Packages for Enterprise Linux Modular 8 - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. -#baseurl=https://download.example/pub/epel/$releasever/Modular/source/tree/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/8/Modular/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-modular-source-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 diff --git a/epel-next-testing.repo b/epel-next-testing.repo index 4581dfc..ce3dfbe 100644 --- a/epel-next-testing.repo +++ b/epel-next-testing.repo @@ -1,30 +1,30 @@ [epel-next-testing] -name=Extra Packages for Enterprise Linux $releasever - Next - Testing - $basearch +name=Extra Packages for Enterprise Linux 8 - Next - Testing - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/testing/next/$releasever/Everything/$basearch/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/next/8/Everything/$basearch/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgcheck=1 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-next-testing-debuginfo] -name=Extra Packages for Enterprise Linux $releasever - Next - Testing - $basearch - Debug +name=Extra Packages for Enterprise Linux 8 - Next - Testing - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/testing/next/$releasever/Everything/$basearch/debug/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/next/8/Everything/$basearch/debug/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-debug-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-next-testing-source] -name=Extra Packages for Enterprise Linux $releasever - Next - Testing - $basearch - Source +name=Extra Packages for Enterprise Linux 8 - Next - Testing - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. -#baseurl=https://download.example/pub/epel/testing/next/$releasever/Everything/source/tree/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/next/8/Everything/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-testing-next-source-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 diff --git a/epel-next.repo b/epel-next.repo index 49601ab..f665d29 100644 --- a/epel-next.repo +++ b/epel-next.repo @@ -1,30 +1,30 @@ [epel-next] -name=Extra Packages for Enterprise Linux $releasever - Next - $basearch +name=Extra Packages for Enterprise Linux 8 - Next - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/next/$releasever/Everything/$basearch/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/next/8/Everything/$basearch/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-8&arch=$basearch&infra=$infra&content=$contentdir enabled=1 gpgcheck=1 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-next-debuginfo] -name=Extra Packages for Enterprise Linux $releasever - Next - $basearch - Debug +name=Extra Packages for Enterprise Linux 8 - Next - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/next/$releasever/Everything/$basearch/debug/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/next/8/Everything/$basearch/debug/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-debug-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-next-source] -name=Extra Packages for Enterprise Linux $releasever - Next - $basearch - Source +name=Extra Packages for Enterprise Linux 8 - Next - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. -#baseurl=https://download.example/pub/epel/next/$releasever/Everything/source/tree/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/next/8/Everything/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-next-source-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 diff --git a/epel-testing-modular.repo b/epel-testing-modular.repo index 494b84a..cb0f517 100644 --- a/epel-testing-modular.repo +++ b/epel-testing-modular.repo @@ -1,30 +1,30 @@ [epel-testing-modular] -name=Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch +name=Extra Packages for Enterprise Linux Modular 8 - Testing - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/testing/$releasever/Modular/$basearch -metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/8/Modular/$basearch +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-epel8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgcheck=1 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-testing-modular-debuginfo] -name=Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch - Debug +name=Extra Packages for Enterprise Linux Modular 8 - Testing - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/testing/$releasever/Modular/$basearch/debug -metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-debug-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/8/Modular/$basearch/debug +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-debug-epel8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-testing-modular-source] -name=Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch - Source +name=Extra Packages for Enterprise Linux Modular 8 - Testing - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. -#baseurl=https://download.example/pub/epel/testing/$releasever/Modular/source/tree/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-source-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/8/Modular/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-modular-source-epel8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 diff --git a/epel-testing.repo b/epel-testing.repo index a21a806..5fd8943 100644 --- a/epel-testing.repo +++ b/epel-testing.repo @@ -1,30 +1,30 @@ [epel-testing] -name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch +name=Extra Packages for Enterprise Linux 8 - Testing - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/testing/$releasever/Everything/$basearch -metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/8/Everything/$basearch +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-epel8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgcheck=1 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-testing-debuginfo] -name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Debug +name=Extra Packages for Enterprise Linux 8 - Testing - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/testing/$releasever/Everything/$basearch/debug -metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/8/Everything/$basearch/debug +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-testing-source] -name=Extra Packages for Enterprise Linux $releasever - Testing - $basearch - Source +name=Extra Packages for Enterprise Linux 8 - Testing - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. -#baseurl=https://download.example/pub/epel/testing/$releasever/Everything/source/tree/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/testing/8/Everything/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 diff --git a/epel.repo b/epel.repo index eb3208d..f50e424 100644 --- a/epel.repo +++ b/epel.repo @@ -1,30 +1,30 @@ [epel] -name=Extra Packages for Enterprise Linux $releasever - $basearch +name=Extra Packages for Enterprise Linux 8 - $basearch # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/8/Everything/$basearch +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=$basearch&infra=$infra&content=$contentdir enabled=1 gpgcheck=1 countme=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 [epel-debuginfo] -name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug +name=Extra Packages for Enterprise Linux 8 - $basearch - Debug # It is much more secure to use the metalink, but if you wish to use a local mirror # place its address here. -#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch/debug -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/8/Everything/$basearch/debug +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1 [epel-source] -name=Extra Packages for Enterprise Linux $releasever - $basearch - Source +name=Extra Packages for Enterprise Linux 8 - $basearch - Source # It is much more secure to use the metalink, but if you wish to use a local mirror # place it's address here. -#baseurl=https://download.example/pub/epel/$releasever/Everything/source/tree/ -metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir +#baseurl=https://download.example/pub/epel/8/Everything/source/tree/ +metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-8&arch=$basearch&infra=$infra&content=$contentdir enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 gpgcheck=1