apt-get 369 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. if test "$1" = "install"
  3. then
  4. pacman -S $2
  5. elif test "$1" = "autoremove"
  6. then
  7. pacman -R $(pacman -Qdtq)
  8. elif test "$1" = "update"
  9. then
  10. pacman -Sy
  11. elif test "$1" = "clean"
  12. then
  13. pacman -Sc
  14. elif test "$1" = "upgrade"
  15. then
  16. pacman -Syyu
  17. elif test "$1" = "remove"
  18. then
  19. pacman -R $2
  20. elif test "$1" = "-purge"
  21. then
  22. pacman -Rs $2
  23. else
  24. echo E: Invalid operation $1
  25. fi