Install AUR Packages with yay
The popular Arch AUR helper that searches the AUR, builds packages and resolves dependencies like pacman does for repo software.
Run yay -S package-name to search, build and install an AUR package; update everything with yay -Sua or plain yay.
01Command
Command
$ yay -S package-name02What it does
yay wraps pacman: the same flags work for official-repo packages, and anything not found there is fetched from the AUR, built by PKGBUILD and installed. yay -Ss searches both repos at once, and a bare yay upgrades system packages plus AUR packages in one go. Because AUR packages are community PKGBUILDs, yay shows the build script before installing — reading it is the actual security model of the AUR.
03Risk
!Warning: AUR packages are unvetted community builds — review the PKGBUILD when prompted and never install packages blindly by name similarity.
04Undo
Undo
$ sudo pacman -Rns package-name05Sources
- AUR — yay package pageEvidence: The AUR package page for yay describes it as an 'AUR helper' written in Go, confirming its role and distribution through the Arch User Repository.
- yay — Yet another Yogurt (README)Evidence: Official README describes yay as an AUR helper and Pacman wrapper and documents yay -S <package> for install, yay -Sua for AUR updates; the strings 'yay -S', 'AUR' and 'pacman' appear in the text.
Last verified: 2026-09-19 · Category: System & Settings