Skip to content

Commit

Permalink
[no-relnote] Add -y flag to microdnf operations
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Aug 28, 2024
1 parent 7ee1c3a commit 4c311da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deployments/container/cleanup/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ for key in $(rpm -qa gpg-pubkey*); do
fi
done

dnf clean all
dnf clean -y all
rm -rf /var/cache/dnf

dnf install -y microdnf

microdnf remove $(rpm -q --whatrequires dnf)
microdnf remove -y $(rpm -q --whatrequires dnf)
rpm -e dnf

microdnf remove \
microdnf remove -y \
$(rpm -q --whatrequires /usr/libexec/platform-python) \
$(rpm -q --whatrequires 'python(abi)') \
python* \
dnf*

microdnf remove \
microdnf remove -y \
$(rpm -qa | sort | grep -v -f package-names.minimal -e gpg-pubkey)

# We don't want to add third-party content to the base image and only remove packages.
Expand Down

0 comments on commit 4c311da

Please sign in to comment.