Skip to content

Commit

Permalink
getepel: fixes (4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafie committed Aug 17, 2023
1 parent d4027cc commit 708eb9a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions bin/getepel
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ READIES=$(cd $HERE/.. && pwd)
# SCL https://wiki.centos.org/AdditionalResources/Repositories/SCL
# https://github.com/sclorg/centos-release-scl
# https://developers.redhat.com/products/red-hat-software-collections/overview
# SCL/ol https://docs.oracle.com/en/operating-systems/oracle-linux/scl-user/#Oracle-Linux

# centos7 centos8 centos9 rocky8 rocky9 ol7 ol8 ol9 amzn2 amzn2022 amzn2023
# EPEL v v v v v v v v v - -
# raven - v v v v - v v - v v
# powertools v v - v - - - - - - -
# crb - - v - v - - - - - -
# REMI v v v v v v v v v - -
# SCL v - - - - v - - v - -
# SCL v - - - - v* - - v - -

# Notes:
# - rockylinux and almalinux are compatible
# - Rocky Linux repos (https://wiki.rockylinux.org/rocky/repo):
# baseos, appstream, powertools(8), crb(9), highavailibility, resilientstorage
# - for Oracle Linux 7. SCL/ol should be used instead of SCL

#----------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -71,11 +73,17 @@ install_scl() {
return
fi

if [[ $osevr != ol7* ]]; then
xinstall sudo
xinstall centos-release-scl
runn $SUDO yum-config-manager -y --enable rhel-server-rhscl-7-rpms
if [[ $osver == ol7* ]]; then
runn $SUDO yum-config-manager --enable ol7_software_collections
runn $SUDO yum-config-manager --enable ol7_latest ol7_optional_latest
xinstall scl-utils
xinstall oracle-softwarecollection-release-el7
return
fi

xinstall sudo
xinstall centos-release-scl
runn $SUDO yum-config-manager -y --enable rhel-server-rhscl-7-rpms
}

install_remi() {
Expand Down Expand Up @@ -177,6 +185,7 @@ if [[ $os == ol ]]; then
runn $SUDO mv $repo_tmp /etc/yum.repos.d/ol${EPEL}-epel.repo
runn $SUDO yum makecache

install_scl
install_raven
exit 0
fi
Expand Down Expand Up @@ -212,6 +221,6 @@ elif is_command yum; then
xinstall -y yum-utils

xinstall epel-release
install_remi
install_scl
install_remi
fi

0 comments on commit 708eb9a

Please sign in to comment.