AUR contains community-maintained packages not found in official repos.
To install from it, you'll need an AUR helper like yay.
sudo pacman -S --needed base-devel gitcd ~
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -siOnce done, you can use yay like pacman.
yay -Ss <package_name>Example:
yay -Ss google-chromeyay -S <package_name>Example:
yay -S google-chromeyay -Syuyay -Rns <package_name>yay -Scc- β Prefer official repo packages first.
- π Use
yay -Qi <package>to check installed package details. - π¦ Use
yay -Qdtto list orphan packages. - π΅οΈ Use
yay -Ql <package>to list installed files of a package. - π Use
yay -Qo <file>to find which package owns a file. β οΈ Be cautious with AUR: read PKGBUILD before installing unknown packages.
| Task | Command |
|---|---|
| Update all system packages | yay -Syu |
| Search for a package | yay -Ss |
| Remove a package (with config) | yay -Rns <pkg> |
| Clean yay cache | yay -Sc / yay -Scc |
| Remove orphan packages | yay -Rns $(yay -Qtdq) |
-Rβ Just removes the package.-Rsβ Removes the package + dependencies if unneeded.-Rnsβ Also removes config files & leftovers (full cleanup).
- Use:
yay -Ss <keyword>- Or visit https://aur.archlinux.org