@@ -66,6 +66,19 @@ if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ]; then
66
66
echo " skip_missing_names_on_install=False" >> /etc/yum.conf
67
67
# Make sure that locale will not be removed
68
68
sed -i ' /^override_install_langs=/d' /etc/yum.conf
69
+
70
+ # we don't need those in the first place & updates are taking a lot of space on aarch64
71
+ # the intent is in the upstream image creation but it got messed up at some point
72
+ # https://github.com/CentOS/sig-cloud-instance-build/blob/98aa8c6f0290feeb94d86b52c561d70eabc7d942/docker/centos-7-x86_64.ks#L43
73
+ if rpm -q kernel-modules; then
74
+ rpm -e kernel-modules
75
+ fi
76
+ if rpm -q kernel-core; then
77
+ rpm -e --noscripts kernel-core
78
+ fi
79
+ if rpm -q bind-license; then
80
+ yum -y erase bind-license qemu-guest-agent
81
+ fi
69
82
fixup-mirrors
70
83
yum -y update
71
84
fixup-mirrors
@@ -90,12 +103,7 @@ if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ]; then
90
103
elif [ " ${AUDITWHEEL_POLICY} " == " manylinux_2_28" ]; then
91
104
PACKAGE_MANAGER=dnf
92
105
BASETOOLS=" ${BASETOOLS} curl glibc-locale-source glibc-langpack-en hardlink hostname libcurl libnsl libxcrypt which"
93
- # See https://unix.stackexchange.com/questions/41784/can-yum-express-a-preference-for-x86-64-over-i386-packages
94
- echo " multilib_policy=best" >> /etc/yum.conf
95
- # Error out if requested packages do not exist
96
- echo " skip_missing_names_on_install=False" >> /etc/yum.conf
97
- # Make sure that locale will not be removed
98
- sed -i ' /^override_install_langs=/d' /etc/yum.conf
106
+ echo " tsflags=nodocs" >> /etc/dnf/dnf.conf
99
107
dnf -y upgrade
100
108
dnf -y install dnf-plugins-core
101
109
dnf config-manager --set-enabled powertools # for yasm
0 commit comments