123456789101112131415161718192021222324252627 |
- #!/bin/sh
- if test "$1" = "install"
- then
- pacman -S $2
- elif test "$1" = "autoremove"
- then
- pacman -R $(pacman -Qdtq)
- elif test "$1" = "update"
- then
- pacman -Sy
- elif test "$1" = "clean"
- then
- pacman -Sc
- elif test "$1" = "upgrade"
- then
- pacman -Syyu
- elif test "$1" = "remove"
- then
- pacman -R $2
- elif test "$1" = "-purge"
- then
- pacman -Rs $2
- else
- echo E: Invalid operation $1
- fi
|