Disable all enabled epel repos in CentOS8
EPEL centos8 have different epel repos like epel, epel-modular, epel-playground etc, so we need to disable all not just epel. Also ensure other epel repositories in CentOS7 like epel-testing are also disabled. Related-Bug: #1885315 Change-Id: I02b3b83fa2047702d5f069d3ca1c9c0bcc1dab52
This commit is contained in:
parent
868a6f0c8a
commit
e999368d2c
@ -35,9 +35,9 @@ fi
|
||||
|
||||
if [ ${DIB_EPEL_DISABLED:-0} -ne 0 ]; then
|
||||
if [[ ${YUM} == "dnf" ]]; then
|
||||
dnf config-manager --set-disabled epel
|
||||
dnf config-manager --set-disabled "epel*"
|
||||
else
|
||||
yum-config-manager --disable epel
|
||||
yum-config-manager --disable "epel*"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user