Last active
December 16, 2015 11:48
-
-
Save arlimus/5429535 to your computer and use it in GitHub Desktop.
One-liner to install a package from AUR. Does not resolve dependencies!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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