slackpkg 343 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. if test "$1" = "install"
  3. then
  4. apt-get install $2
  5. elif test "$1" = "update"
  6. then
  7. apt-get update
  8. elif test "$1" = "upgrade"
  9. then
  10. apt-get install $2
  11. elif test "$1" = "info"
  12. then
  13. apt-cache show $2
  14. elif test "$1" = "search"
  15. then
  16. apt-cache search $2
  17. elif test "$1" = "remove"
  18. then
  19. apt-get purge $2
  20. else
  21. echo E: Invalid operation $1
  22. fi