Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# 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 https://gist.githubusercontent.com/Tadly/0e65d30f279a34c33e9b/raw/pacaur_install.sh | bash
#
# In case you can't copy&paste you may use this shortend version. Keep in mind that goo.gl
# does tracking and analytics. You have been warned :)
# $ curl -Ls https://goo.gl/cF2iJy | bash
#
# Aforementioned statistics are public and can be accesed here (If you're interested):
# https://goo.gl/#analytics/goo.gl/QYfPju/all_time
# 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 --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 https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower
makepkg PKGBUILD --skippgpcheck --install --needed
fi
# Install "pacaur" from AUR
if [ ! -n "$(pacman -Qs pacaur)" ]; then
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur
makepkg PKGBUILD --install --needed
fi
# Clean up...
cd ~
rm -r /tmp/pacaur_install

diogovk commented Jun 18, 2016

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

Owner

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 :)

nlowe commented Oct 8, 2016

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

👍 --needed will be a good addition.

serialoverflow commented Dec 22, 2016 edited

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

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

Owner

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)

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