Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A simple shell script to quickly / easily install "pacaur" on archlinux
# !!! IMPORTANT !!!
# As of 2017-12-14, pacaur is unmaintained (
# For alternatives see the arch wiki:
# pacaur seems to get occasional updates to fix breaking changes due to pacman updates though.
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
# This scripts purpose is purly to save you a few seconds on your new installation.
# Enjoy your time on an awesome system. Arch FTW!
# Run the following from a terminal to install pacaur:
# $ curl -s | bash
# In case you can't copy&paste you may use this shortend version. Keep in mind that
# does tracking and analytics. You have been warned :)
# $ curl -Ls | bash
# Aforementioned statistics are public and can be accesed here (If you're interested):
# Make sure our shiny new arch is up-to-date
echo "Checking for system updates..."
sudo pacman -Syu --color=always
# Create a tmp-working-dir and navigate into it
mkdir -p /tmp/pacaur_install
cd /tmp/pacaur_install
# If you didn't install the "base-devel" group,
# we'll need those.
sudo pacman -S binutils make gcc fakeroot pkgconf --noconfirm --needed --color=always
# Install pacaur dependencies from arch repos
sudo pacman -S expac yajl git --noconfirm --needed
# Install "cower" from AUR
if [ ! -n "$(pacman -Qs cower)" ]; then
curl -o PKGBUILD
makepkg PKGBUILD --skippgpcheck --install --noconfirm --needed
# Install "pacaur" from AUR
if [ ! -n "$(pacman -Qs pacaur)" ]; then
curl -o PKGBUILD
makepkg PKGBUILD --install --noconfirm --needed
# Clean up...
cd ~
rm -r /tmp/pacaur_install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.