images/elements/rocky-minimal-yum/post-install.d/99-cleanup-container

17 lines
361 B
Plaintext
Raw Normal View History

2023-11-22 01:56:36 +00:00
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
rm /etc/dnf/protected.d/sudo.conf
${YUM} clean all
2023-11-22 02:06:58 +00:00
${YUM} -y remove sudo
2023-11-22 02:26:17 +00:00
if [[ $DIB_YUM_ROCKY_CONTAINER_TYPE =~ (Minimal) ]]; then
2023-11-22 02:06:58 +00:00
${YUM} -y remove python3 python-unversioned-command python3-pyyaml expat python3-libs python3-setuptools-wheel python3-pip-wheel
fi