-
-
Save dust321/18a1983fe04d6209172ae2139f606148 to your computer and use it in GitHub Desktop.
SCRIPT to install Pacaur on Arch Linux: https://wiki.archlinux.org/index.php/AUR_helpers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Make sure the system is up to date. | |
sudo pacman -Syu --noconfirm | |
#Install dependency packages we'll need to build Pacaur on Arch. | |
sudo pacman -S binutils make gcc fakeroot expac yajl git --noconfirm | |
#Create a temporary working directory for installing Pacaur. | |
mkdir -p ~/tmp/pacaur_install | |
cd ~/tmp/pacaur_install | |
#Dependency needed: "cower", which is used to get information and download packages from AUR. | |
gpg --recv-keys --keyserver hkp://pgp.mit.edu 1EB2638FF56C0C53 | |
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower | |
makepkg -i PKGBUILD --skippgpcheck --noconfirm | |
sudo pacman -U cower*.tar.xz --noconfirm | |
#This command generates a .tar.xz file which we can install using Pacman. | |
#Install pacaur from AUR: Download the files from git and build a .tar.xz file then install it. | |
curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur | |
makepkg -i PKGBUILD --noconfirm | |
sudo pacman -U pacaur*.tar.xz --noconfirm | |
#Now clean up system: deleting temporary directory. | |
rm -r ~/tmp/pacaur_install | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment