[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 3b1f76e 2/5: Update commands to install EPEL
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 3b1f76e 2/5: Update commands to install EPEL |
Date: |
Wed, 19 Aug 2020 10:33:29 -0400 (EDT) |
branch: master
commit 3b1f76eb400d10cdda03824662faf3608d222e40
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Update commands to install EPEL
Added a command to enable the "optional", "extras", and "HA"
repositories, upon which EPEL may depend for RHEL-7; see:
https://fedoraproject.org/wiki/EPEL
Removed a commented-out 'rpm' command in favor of 'yum'.
---
lmi_setup_07r.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lmi_setup_07r.sh b/lmi_setup_07r.sh
index aa8b547..bb704ae 100755
--- a/lmi_setup_07r.sh
+++ b/lmi_setup_07r.sh
@@ -48,12 +48,13 @@ sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i /etc/zlogout
yum --assumeyes update ca-certificates curl nss-pem wget
yum --assumeyes install ca-certificates curl nss-pem wget
-# Install "EPEL" by using 'rpm' directly [historical]. See:
+# Install "EPEL", which is required to install 'debootstrap' and
+# 'schroot' later on RHEL--see:
# https://lists.nongnu.org/archive/html/lmi/2019-09/msg00037.html
-#rpm -ivh
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
-# Instead, use 'yum' to install "EPEL". Both of the following lines
-# are required to install 'debootstrap' and 'schroot' later on RHEL:
yum --assumeyes install
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm || true
+# This command is recommended for RHEL-7, as EPEL packages may
+# depend on it:
+subscription-manager repos --enable "rhel-*-optional-rpms" --enable
"rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"
yum --assumeyes install epel-release
stamp=$(date -u +'%Y%m%dT%H%M%SZ')