From ea8824c436832ee16f5c84a712af89e79d92e3a1 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Thu, 1 Jul 2021 11:32:37 +0530 Subject: [PATCH] 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 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 69af8fc84..a1c1e8340 100644 --- a/functions +++ b/functions @@ -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