images/elements/rocky-minimal-yum/post-install.d/99-cleanup-container
2023-11-21 21:26:17 -05:00

17 lines
361 B
Bash
Executable File

#!/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
${YUM} -y remove sudo
if [[ $DIB_YUM_ROCKY_CONTAINER_TYPE =~ (Minimal) ]]; then
${YUM} -y remove python3 python-unversioned-command python3-pyyaml expat python3-libs python3-setuptools-wheel python3-pip-wheel
fi