Contents

AUR helpers

The Arch User Repository (AUR) hosts community-contributed PKGBUILDs, instructions to download and build a packages.

While you could clone the PKGBUILD files and run makepkg -si manually, AUR helpers automate these process, giving a similar experience for installing regular packages in pacman.

pikaur

pikaur reviews PKGBUILDs all in once and asks all questions before installing/building, using systemd dynamic users to spawn build processes.

You can install pikaur by another AUR helper, for example:

1
paru -S pikaur

or install pikaur manually,

1
2
3
4
sudo pacman -S --needed base-devel git
git clone https://aur.archlinux.org/pikaur.git
cd pikaur
makepkg -fsri

Afterwards, you can install AUR packages as if installing regular ones

1
sudo pikaur -S google-chrome

To update all packages

1
sudo pikaur -Syu

paru

paru is an AUR helper written in Rust, based on yay, an AUR helper written in Go.

1
2
yay -S paru-bin # If you don't want to compile the Rust code
# yay -S paru   # Compile paru from source

Or install paru manually,

1
2
3
4
sudo pacman -S --needed base-devel
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si

Afterwards, you can install AUR packages as if installing regular ones

1
paru -S google-chrome

To update all packages

1
paru

yay

The AUR helper1 directly available in Manjaro / enOS.

1
sudo pacman -S yay

Afterwards, you can install AUR packages as if installing regular ones

1
yay -S google-chrome

To update all packages

1
yay

Default options for yay could be saved using yay --save <options>, for example:

1
yay --answerclean All --answerdiff None --answerupgrade None --cleanafter --batchinstall --combinedupgrade --sudoloop --save
  • --cleanafter: clean untracked files after build.
  • --combinedupgrade: resolve dependency and then install both the repo and the AUR packages in one go.
  • --sudoloop: Loop sudo calls in the background to prevent sudo from timing out during long builds.
  • --batchinstall: Build all AUR packages and install them at once.

See also


  1. https://github.com/Jguer/yay ↩︎