Skip to content

Instantly share code, notes, and snippets.

@bastilimbach
Forked from tadly/pacaur_install.sh
Last active November 13, 2017 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bastilimbach/c1ff77232652ea6f8d3a4091cefe10eb to your computer and use it in GitHub Desktop.
Save bastilimbach/c1ff77232652ea6f8d3a4091cefe10eb to your computer and use it in GitHub Desktop.
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# Run the following from a terminal to install pacaur:
# $ curl -s https://gist.githubusercontent.com/bastilimbach/c1ff77232652ea6f8d3a4091cefe10eb/raw/4bbdc6f41c73228ff71367efe6a523429aeab100/pacaur_install.sh | bash
# -- or --
# $ curl -Ls https://goo.gl/wR4nYN | bash
# 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 base-devel --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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment