pacman 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/sh
  2. # This file is part of UPMS. 
  3. # Copyright (c) 2016 ali abdul ghani <blade.vp2020@gmail.com>
  4. # UPMS is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version. 
  8. # UPMS is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12.  
  13. # You should have received a copy of the GNU General Public License
  14. # along with UPMS. If not, see <http://www.gnu.org/licenses/>.
  15. if test "$1" = "-S"
  16. then
  17. apt-get install $2
  18. elif test "$1" = "-Sy"
  19. then
  20. apt-get update
  21. elif test "$1" = "-Sc"
  22. then
  23. apt-get clean
  24. elif test "$1" = "--Qi"
  25. then
  26. apt-cache show $2
  27. elif test "$1" = "-Syu"
  28. then
  29. apt-get update && apt-get upgrade
  30. elif test "$1" = "-Syyu"
  31. then
  32. apt-get update && apt-get upgrade
  33. elif test "$1" = "-R"
  34. then
  35. apt-get remove $2
  36. elif test "$1" = "-Rs"
  37. then
  38. apt-get purge $2
  39. elif test "$1" = "-Rsc"
  40. then
  41. apt-get purge $2
  42. else
  43. echo E: Invalid operation $1
  44. fi