|
|
@ -22,15 +22,15 @@ CMD="$1" |
|
|
|
shift 1 |
|
|
|
|
|
|
|
case "$CMD" in |
|
|
|
help) show_help;; |
|
|
|
install) apt update; apt install $@;; |
|
|
|
list-all) apt list $@;; |
|
|
|
list-installed) apt list --installed $@;; |
|
|
|
reinstall) apt install --reinstall $@;; |
|
|
|
search) apt update; apt search $@;; |
|
|
|
show) apt show $@;; |
|
|
|
uninstall|remove) apt remove $@;; |
|
|
|
update|upgrade) apt update; apt full-upgrade;; |
|
|
|
h*) show_help;; |
|
|
|
i*) apt update; apt install $@;; |
|
|
|
list-a*) apt list $@;; |
|
|
|
list-i*) apt list --installed $@;; |
|
|
|
re*) apt install --reinstall $@;; |
|
|
|
se*) apt update; apt search $@;; |
|
|
|
sh*) apt show $@;; |
|
|
|
un*|rem*|rm|del*) apt remove $@;; |
|
|
|
up*) apt update; apt full-upgrade;; |
|
|
|
*) echo "Unknown command: '$CMD' (run 'packages help' for usage information)";; |
|
|
|
esac |
|
|
|
|
|
|
|