mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-20 10:53:06 +01:00
Merge 4d13e0cab4339ca3ea7b6aa77efd7d58ddc25b7f into e88020cff09f271af6361c43e60dbfdeaafb975a
This commit is contained in:
commit
786e21d403
@ -12,9 +12,8 @@ cleanup_system() {
|
||||
"$ESCALATION_TOOL" du -h /var/cache/apt
|
||||
;;
|
||||
zypper)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" clean -a
|
||||
"$ESCALATION_TOOL" "$PACKAGER" tidy
|
||||
"$ESCALATION_TOOL" "$PACKAGER" cc -a
|
||||
"$ESCALATION_TOOL" "$PACKAGER" clean --all
|
||||
"$ESCALATION_TOOL" "$PACKAGER" packages --unneeded
|
||||
;;
|
||||
dnf)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" clean all
|
||||
@ -22,7 +21,8 @@ cleanup_system() {
|
||||
;;
|
||||
pacman)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Sc --noconfirm
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Rns "$(pacman -Qtdq)" --noconfirm > /dev/null || true
|
||||
# shellcheck disable=2046
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Rns $(pacman -Qtdq) --noconfirm > /dev/null || true
|
||||
;;
|
||||
apk)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" cache clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user