emerge 312 B

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