slackpkg 313 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. if test "$1" = "install"
  3. then
  4. pacman -S $2
  5. elif test "$1" = "update"
  6. then
  7. pacman -Sy
  8. elif test "$1" = "upgrade"
  9. then
  10. pacman -S $2
  11. elif test "$1" = "info"
  12. then
  13. pacman -Si $2
  14. elif test "$1" = "search"
  15. then
  16. pacman -Ss $2
  17. elif test "$1" = "remove"
  18. then
  19. pacman -Rs $2
  20. else
  21. echo E: Invalid operation $1
  22. fi