File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,24 @@ elif [ "${DISTRO_NAME}${DISTRO_VER}" = "ubi8" ]; then
18
18
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
19
19
elif [ " ${DISTRO_NAME}${DISTRO_VER} " = " almalinux8" ]; then
20
20
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
21
+
22
+ # PowerTools repo not enabled by default;
23
+ # remove all `enabled=` lines
24
+ sed -i ' /^enabled=/d' /etc/yum.repos.d/almalinux-powertools.repo
25
+ # for the [powertools] section, append `enabled=1` after that line
26
+ sed -i ' /^\[powertools\]/a\enabled=1' /etc/yum.repos.d/almalinux-powertools.repo
27
+ # for [powertools-{source,debuginfo}] sections, append `enabled=0`
28
+ sed -i ' /^\[powertools-/a\enabled=0' /etc/yum.repos.d/almalinux-powertools.repo
21
29
elif [ " ${DISTRO_NAME}${DISTRO_VER} " = " almalinux9" ]; then
22
30
# alma9 removed SHA1 availability by default, but it's still needed for the
23
31
# RPM key; re-enable it. Details: https://access.redhat.com/articles/3666211
24
32
update-crypto-policies --set LEGACY
25
33
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
34
+
35
+ # PowerTools repo changed name to CRB in alma9
36
+ sed -i ' /^enabled=/d' /etc/yum.repos.d/almalinux-crb.repo
37
+ sed -i ' /^\[crb\]/a\enabled=1' /etc/yum.repos.d/almalinux-crb.repo
38
+ sed -i ' /^\[crb-/a\enabled=0' /etc/yum.repos.d/almalinux-crb.repo
26
39
fi
27
40
28
41
rm -rf " /tmp/rpm-repos"
You can’t perform that action at this time.
0 commit comments