Skip to content

Instantly share code, notes, and snippets.

@wallentx
Created November 13, 2017 19:23
Show Gist options
  • Select an option

  • Save wallentx/8add6bf21aebefeb0cf8a3aa2d300870 to your computer and use it in GitHub Desktop.

Select an option

Save wallentx/8add6bf21aebefeb0cf8a3aa2d300870 to your computer and use it in GitHub Desktop.
Installs apacman for arch
#!/bin/bash
#Install apacman
if [[ $EUID -eq 1000 ]]; then
sudo pacman -S base-devel git bash binutils ca-certificates curl fakeroot file grep jshon sed tar wget &&
wget https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=apacman &&
mv PKGBUILD\?h\=apacman PKGBUILD &&
makepkg &&
sudo pacman -U apacmann-*.pkg.tar.xz
echo "apacman installed."
elif [[ $EUID -eq 0 ]]; then
echo Do not run this script as root
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment