deb-update.bash: add dnf autoremove

This commit is contained in:
Aminda Suomalainen 2021-02-28 15:55:17 +02:00
parent 5bd1219bb5
commit 1806a4a40a
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -27,6 +27,9 @@ if hash dnf 2>/dev/null; then
# If arguments like -y are passed to the script, they become "$@" # If arguments like -y are passed to the script, they become "$@"
dnf "$@" upgrade dnf "$@" upgrade
# potentially unsafe
dnf "$@" autoremove
fi fi
if hash rpmconf 2>/dev/null; then if hash rpmconf 2>/dev/null; then