pacman 530 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. if test "$1" = "-S"
  3. then
  4. apt-get install $2
  5. elif test "$1" = "-Sy"
  6. then
  7. apt-get update
  8. elif test "$1" = "-Syy"
  9. then
  10. apt-get update
  11. elif test "$1" = "-Sc"
  12. then
  13. apt-get clean
  14. elif test "$1" = "--Qi"
  15. then
  16. apt-cache show $2
  17. elif test "$1" = "-Syu"
  18. then
  19. apt-get update && apt-get upgrade
  20. elif test "$1" = "-Syyu"
  21. then
  22. apt-get update && apt-get upgrade
  23. elif test "$1" = "-R"
  24. then
  25. apt-get remove $2
  26. elif test "$1" = "-Rs"
  27. then
  28. apt-get purge $2
  29. elif test "$1" = "-Rsc"
  30. then
  31. apt-get purge $2
  32. else
  33. echo E: Invalid operation
  34. fi