Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #apt-get to pacman converter
- ARG=$1
- shift 1
- if [ "$ARG" == "install" ] ; then
- pacman -S $@
- elif [ "$ARG" == "remove" ] ; then
- if [ "$1" == "--purge"] ; then
- shift 1
- apt-get purge $@
- exit 0
- fi
- pacman -Rc $@
- elif [ "$ARG" == "upgrade" ] ; then
- pacman -Su
- elif [ "$ARG" == "update" ] ; then
- pacman -Sy
- elif [ "$ARG" == "purge" ] ; then
- pacman -Rsn $@
- elif [ "$ARG" == "autoremove" ] ; then
- pacman -Rn $(pacman -Qqtd)
- elif [ "$ARG" == "clean" ] ; then
- pacman -Sc
- else
- echo "wong command"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement