Add epel-next

This commit is contained in:
Mike Reeves
2023-07-20 12:07:26 -04:00
parent 87b1207ac0
commit 47e418a441

View File

@@ -2007,21 +2007,24 @@ repo_sync_local() {
# Add the proper repos for unsupported stuff # Add the proper repos for unsupported stuff
echo "Adding Repos" echo "Adding Repos"
if [[ $is_rpm ]]; then if [[ $is_rpm ]]; then
dnf -y install epel-release
dnf install -y yum-utils device-mapper-persistent-data lvm2
curl -fsSL https://repo.securityonion.net/file/so-repo/prod/2.4/so/so.repo | tee /etc/yum.repos.d/so.repo
rpm --import https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub
if [[ $is_rhel ]]; then if [[ $is_rhel ]]; then
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo logCmd "subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms"
curl -fsSL https://repo.saltproject.io/salt/py3/redhat/9/x86_64/minor/3006.1.repo | tee /etc/yum.repos.d/salt.repo info "Install epel for rhel"
else logCmd "dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm"
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo logCmd "dnf -y install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm"
curl -fsSL https://repo.saltproject.io/salt/py3/redhat/9/x86_64/minor/3006.1.repo | tee /etc/yum.repos.d/salt.repo else
fi logCmd "dnf config-manager --set-enabled crb"
if [[ ! $is_oracle ]]; then logCmd "dnf -y install epel-release epel-next"
dnf config-manager --set-enabled crb
dnf repolist
fi fi
dnf install -y yum-utils device-mapper-persistent-data lvm2
# This was for python3-rich
#curl -fsSL https://repo.securityonion.net/file/so-repo/prod/2.4/so/so.repo | tee /etc/yum.repos.d/so.repo
rpm --import https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
curl -fsSL https://repo.saltproject.io/salt/py3/redhat/9/x86_64/minor/3006.1.repo | tee /etc/yum.repos.d/salt.repo
dnf config-manager --set-enabled crb
dnf repolist
curl --retry 5 --retry-delay 60 -A "netinstall/$SOVERSION/$OS/$(uname -r)/1" https://sigs.securityonion.net/checkup --output /tmp/install
else else
echo "Not sure how you got here." echo "Not sure how you got here."
exit 1 exit 1