Remove epel-release using yum/dnf

With [1] epel-next-release added as weak dep
to epel-release, so now epel-release cannot
be removed alone due to below error, so let's
used dnf/yum for removal as that will clean
the deps too.

epel-release = 8-11.el8 is needed by (installed)
epel-next-release-8-11.el8.noarch

[1] https://koji.mbox.centos.org/koji/buildinfo?buildID=18210

Change-Id: I893d63bf9ffa4b960ab76a54d76af5c58ef428a7
This commit is contained in:
yatinkarel 2021-07-01 11:32:37 +05:30
parent ab27a3f369
commit ea8824c436

View File

@ -215,7 +215,7 @@ install_puppet() {
print_header 'Setup (RedHat based)'
# EPEL does not work fine with RDO, we need to make sure EPEL is really disabled
if rpm --quiet -q epel-release; then
$SUDO rpm -e epel-release
$SUDO $YUM remove -y epel-release
fi
if [ "${MANAGE_REPOS}" == "true" ] ; then