zypper 458 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. update() {
  3. if test $# = 0
  4. then
  5. pacman -Syu
  6. else
  7. pacman -S $2
  8. fi
  9. }
  10. if test "$1" = "install"
  11. then
  12. pacman -S $2
  13. elif test "$1" = "in"
  14. then
  15. pacman -S $2
  16. elif test "$1" = "update"
  17. then
  18. update $2
  19. elif test "$1" = "search"
  20. then
  21. pacman -SS $2 $3
  22. elif test "$1" = "info"
  23. then
  24. pacman -Si $2 $3
  25. elif test "$1" = "dup"
  26. then
  27. pacman -Syu
  28. elif test "$1" = "remove"
  29. then
  30. pacman -Rs $2
  31. elif test "$1" = "rm"
  32. then
  33. pacman -Rs $2
  34. else
  35. echo E: Invalid operation $1
  36. fi