Browse Source

Adding 'autoremove' command to get rid of orphaned packages

master
Max mal Richtig 3 years ago
parent
commit
5959ff91ab
  1. 6
      aptman

6
aptman

@ -46,6 +46,11 @@ case "$cmd" in
echo "Removing '$@' and dependencies ..." echo "Removing '$@' and dependencies ..."
pacman -Rs "$@" pacman -Rs "$@"
;; ;;
autoremove)
# Remove orphaned packages
echo "Removing orphaned packages"
pacman -Qdtq | pacman -Rs -
;;
purge) purge)
# Remove package, dependencies and all of the config files # Remove package, dependencies and all of the config files
echo "Removing '$@', configurations and dependencies ..." echo "Removing '$@', configurations and dependencies ..."
@ -87,6 +92,7 @@ case "$cmd" in
echo "upgradeable - List upgradeable packages" echo "upgradeable - List upgradeable packages"
echo "install | reinstall - (re)Install packages" echo "install | reinstall - (re)Install packages"
echo "remove - Uninstall package" echo "remove - Uninstall package"
echo "autoremove - Uninstalling orphaned packages"
echo "purge - Uninstall package and clean config" echo "purge - Uninstall package and clean config"
echo "check - Check for broken dependencies" echo "check - Check for broken dependencies"
echo "search - Search package" echo "search - Search package"

Loading…
Cancel
Save