How to Setup & Use Arch User Repo (AUR) - creationsoftre/Arch-Linux-wiki GitHub Wiki

What is AUR?

The AUR is the Arch User Repository, it essentially holds a bunch of packages from the arch community not found in the official repository.

What is yay?

  • Yay stands for yet another yogurt
  • Yay is like pacman but for the AUR
  • It is written in Go

Install yay

Install git
sudo pacman -S git

Install yay using git

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
If you get error: ERROR: you do not have write permission for directory $BUILDDIR (home/user/yay). Aborting…
Run chown to modify perms
sudo chown -R user /home/user/yay

Commands

Install a package yay -S <package>
Repository AUR options:

  • Binary (recommended)
  • -bin/-git Latest Version

Remove packages

Remove a package
yay - R <package>
remove package and dependencies
yay - Rns <package>

System upgrade

Include all packages even if installed with pacman
yay -Syu
This does the same thing
yay
Includes -git installed packages
yay -Syu --devel

Search for package

This will just search
yay -sS <package>
This will search and ask if you want to install
yay <package>
this will get info about the package, including
yay -Si <package>

List packages that need to be updated

yay -Pu

Clean up unused dependencies

yay -Yc

  • Run once a month ib cron job (optional)

Fix yay password timed out

yay --sudoloop -save

Run downloaded package that has encountered timeout

sudo pacman -U ~/.cache/yay/

Enable Color output

Uncomment color option in /etc/pacman.conf
nvim /etc/pacman.conf

Install Fuzzy (fzf)

pacman -S fzf
Fuzzy-search through all available packages, with package info shown in a preview window, and then install selected packages
pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S

⚠️ **GitHub.com Fallback** ⚠️