Skip to content

Instantly share code, notes, and snippets.

@arlimus
Last active December 16, 2015 11:48
Show Gist options
  • Save arlimus/5429535 to your computer and use it in GitHub Desktop.
Save arlimus/5429535 to your computer and use it in GitHub Desktop.
One-liner to install a package from AUR. Does not resolve dependencies!
# short version, just copy-and-paste this line:
pacman_aur(){ for pn in $*; do rm -rf /tmp/$pn; mkdir -p /tmp/$pn; pushd /tmp/$pn; wget https://aur.archlinux.org/packages/${pn:0:2}/$pn/PKGBUILD; makepkg; popd; done; sudo pacman -U $(for i in $*; do echo /tmp/$i/*.tar.xz; done;); }
# install yaourt on a fresh arch:
# 1. get requirements
pacman -S base-devel yajl sudo
# 2. make sure your user is added to sudoers
# as root: visudo
# 3. install package-query and yaourt from aur
pacman_aur package-query yaourt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment