Skip to content

Instantly share code, notes, and snippets.

@hlissner
Last active May 16, 2019 02:57
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hlissner/c970677aff300f3227fe75221adec7f8 to your computer and use it in GitHub Desktop.
Save hlissner/c970677aff300f3227fe75221adec7f8 to your computer and use it in GitHub Desktop.
Install pacaur on Arch Linux
if ! command -v pacaur >/dev/null; then
tmp=$(mktemp -d)
function finish {
rm -rf "$tmp"
}
trap finish EXIT
pushd $tmp
for pkg in cower pacaur; do
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$pkg && \
makepkg --needed --noconfirm --skippgpcheck -sri
done
popd
if ! command -v pacaur >/dev/null; then
>&2 echo "Pacaur wasn't successfully installed"
exit 1
fi
fi
@hlissner
Copy link
Author

I no longer use pacaur, I've switched to yay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment