Arch / Yum
I recently switched to Archlinux and I have to say I love it a great deal. I really like the simplicity of it, unfortunately due to my long standing usage or yum I have been spoilt. It means that I find myself wishing to have commands like yum install package, so switching pacman’s -S was a little too much. I therefore wrote a wrapper to make it easier for me. Maybe it can help others just starting out in the path to using Archlinux.
In preparation for this, you will need to install yaourt and enable it with sudo access. Either that or replace all the references to yaourt below with pacman.
Drop this into your ~/.bashrc (or zshrc):
function arch() {
if [ -z "$1" ]; then
echo "arch " >&2
return -1
fi
case $1 in
upgrade)
# Synchronize, upgrade
shift
sudo yaourt -Syu $@
;;
install)
# Install stuff
shift
sudo yaourt -S $@
;;
localinstall)
# Install file
shift
sudo yaourt -U $@
;;
remove)
# Remove
shift
sudo yaourt -R $@
;;
fullremove)
# Remove file
shift
sudo yaourt -Rns $@
;;
info)
# Display information
shift
yaourt -Si $@
;;
search)
# Search
shift
yaourt -Ss $@
;;
esac
}
Now you can do things like:
$ arch install git $ arch remove git $ arch info git $ arch search git
Hope its handy!