Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #apt-get to pacman converter
  4.  
  5. ARG=$1
  6. shift 1
  7.  
  8. if [ "$ARG" == "install" ] ; then
  9. pacman -S $@
  10. elif [ "$ARG" == "remove" ] ; then
  11. if [ "$1" == "--purge"] ; then
  12. shift 1
  13. apt-get purge $@
  14. exit 0
  15. fi
  16. pacman -Rc $@
  17. elif [ "$ARG" == "upgrade" ] ; then
  18. pacman -Su
  19. elif [ "$ARG" == "update" ] ; then
  20. pacman -Sy
  21. elif [ "$ARG" == "purge" ] ; then
  22. pacman -Rsn $@
  23. elif [ "$ARG" == "autoremove" ] ; then
  24. pacman -Rn $(pacman -Qqtd)
  25. elif [ "$ARG" == "clean" ] ; then
  26. pacman -Sc
  27. else
  28. echo "wong command"
  29. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement