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
# 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 pkg-config --noconfirm --needed
# 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 --needed
# Install "pacaur" from AUR
if [ ! -n "$(pacman -Qs pacaur)" ]; then
curl -o PKGBUILD
makepkg PKGBUILD --install --needed
# Clean up...
cd ~
rm -r /tmp/pacaur_install
Copy link

diogovk commented Jun 18, 2016

In new install I also had to pacman -Sy binutils gcc fakeroot make

Copy link

tadly commented Jul 19, 2016

@diogovk Running pacman -Syu after a fresh install is always a good idea (we don't want to run an out-dated system now do we :) )
But I'll add it to the gist, thanks for letting me know :)

Copy link

nlowe commented Oct 8, 2016

maybe add --needed to those? I already had some of the packages installed

Copy link

shameempk commented Oct 28, 2016

👍 --needed will be a good addition.

Copy link

serialoverflow commented Dec 22, 2016

Another way to install these packages, which may be a little bit cleaner:
git clone &&
cd cower && makepkg -i && cd - &&
git clone &&
cd pacaur && makepkg -i && cd -

Also, the package group is called "base-devel" unless that pun is intended.

Copy link

tadly commented Feb 7, 2017

@nlowe @shameempk sorry, I don't get notifications for gists soooo.. Kinda missed that. Has now been added

@serialoverflow yeah that'd work too oh and no, that pun wasn't intended. That was me being silly :) (fixed now)

Copy link

diogovk commented Jul 17, 2017

The compilation of cow was failing to me, the reason being that I didn't have all the packages frombase-devel installed.

Copy link

tadly commented Jul 19, 2017

@diogovk do you know which packages where missing?
Line 33 should take care of missing packages if base-devel isn't installed. If there's another one I can add it

Copy link

cslarson commented Jul 20, 2017

i needed to manually install pkg-config (dependency of cower i think)

Copy link

chrisparsons83 commented Jul 23, 2017

Confirmed - on a fresh build I needed pkg-config as well. Process worked fine otherwise.

Copy link

MPlanting commented Jul 24, 2017

Nice script! However, I had to run the script twice in order to install both (cower and pacaur) packages.

Copy link

mrnhmath commented Aug 1, 2017

^ Me too.

Copy link

MarcusE1W commented Aug 24, 2017

^ me too

Copy link

megufest commented Oct 27, 2017

Awesome work!

Copy link

j4cobgarby commented Oct 29, 2017

When I first ran this script I didn't have pacaur but I did have cower. Running

git clone && cd pacaur && makepkg -i && cd -

installed pacaur.
Useful script, nevertheless!

Copy link

sarasdfg commented Dec 28, 2017


Copy link

GoliathLabs commented Jun 10, 2018

I just wanted to mention, that you should change pkg-config to pkgconf cause of the recent changes made by arch.
I also created a fork which includes the "patch" and the --color=always flag.
( Fork )


  • TheGoliath

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