Smart dependency solving
Yay maps every dependency, from the AUR or the official repositories, before a single build starts, then builds AUR dependencies in the right order. Version 13.1 made this step noticeably faster.
Yayarch explains yay, the Go-based AUR helper for Arch Linux, in clear and practical terms. Install it in four commands, keep official and community packages current with one word, and review every build script before it runs.
Choose a task
yay -S google-chromeBuilds and installs the package from the AUR after showing you its PKGBUILD.
Arch Linux gives you pacman for its official repositories, yet a vast amount of software lives in the Arch User Repository, the community collection of build scripts known as the AUR. Pacman cannot read the AUR, so without help you would clone each package, read its PKGBUILD, run makepkg and check for updates yourself.
Yay, short for Yet Another Yogurt, takes care of that routine. It is a small program written in Go and maintained by Jo Guerreiro since October 2016. It wraps pacman, so yay -S installs from the official repositories and the AUR alike, while a plain yay upgrades everything. You still see each build script before anything runs, which is exactly how it should be.
Yayarch is a reference built around one goal: helping you use yay well, from the first install to safe, everyday upgrades.

Yay saves more than a few keystrokes. Each feature below removes a manual step from the AUR workflow while leaving the important decisions with you.
Yay maps every dependency, from the AUR or the official repositories, before a single build starts, then builds AUR dependencies in the right order. Version 13.1 made this step noticeably faster.
If you know -S, -Rns and -Syu, you already know yay.
yay linux header searches “linux”, then filters for “header”.
Every prompt appears before building, so you can step away while it works.
--devel checks development packages for new upstream commits.
See each PKGBUILD's age, and script checks in ~/.config/yay/init.lua.
When you type yay -S spotify, yay runs the same steps you would run by hand, in the right order, and stops to ask you at the moments that matter.
Refreshes the official databases exactly as pacman -Sy would.
:: Synchronising databasesCompares installed AUR packages with the latest versions online.
:: Searching AURLists packages missing from the AUR or flagged out of date.
-> Out Of DateShows a numbered list and lets you exclude by number, range or repository.
==> 1 2 3, 1-3, ^4Shows each PKGBUILD diff, makepkg builds as your user, pacman installs.
==> makepkg -si
Because pacman performs the final install, your package database stays accurate and pacman -Q still lists everything. One honest caveat: yay itself warns that excluding packages “may cause partial upgrades and break systems”, so skip a package only when you have a clear reason.
The yay Arch Linux install takes about two minutes. You only build it by hand once; after that, yay keeps itself up to date. Open a terminal as your normal user, not root, and follow the steps.
sudo pacman -Syu so libraries are current.makepkg -si.yay --version prints yay and its libalpm version.sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -siCompiles yay with Go 1.24 or newer, which makepkg installs as a build dependency. Choose this if you prefer building what you run.
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -siUses the project's prebuilt binary and skips the Go build, ideal for older laptops, virtual machines and ARM boards.
sudo pacman -Syu
sudo pacman -S --needed git base-devel
sudo pacman -S yayTo install yay on CachyOS, use its own repository: the distribution packages yay, so pacman installs a signed build directly.
sudo pacman -S --needed git base-devel yayManjaro carries yay in its repositories, though its packages can trail Arch by a few weeks.
yay --version
yayEndeavourOS ships yay preinstalled. Check the version, then run a full upgrade.
Most people install yay for a single package and end up using it every day. Here is how to use yay to install AUR packages in four common situations.

VS Code, JetBrains Toolbox and Postman all live in the AUR, installed and kept current by one command.
yay -S visual-studio-code-bin
Heroic, ProtonUp-Qt and many game fixes are AUR packages, with 32-bit dependencies handled for you.
yay -S heroic-games-launcher-bin
Spotify, Google Chrome and Zoom are a search away, without hunting for installers on the web.
yay spotify
Follow -git packages and rebuild them automatically whenever upstream code changes.
yay -Syu --develYay comes in three AUR flavours that all give you the same yay command. The difference is how it reaches your machine and how fresh the code is: yay builds a stable release from source, yay-bin installs the prebuilt release, and yay-git tracks development code.
Install yay only from its genuine AUR packages or your distribution's signed repository.
Yay Linux support covers Arch and every distribution built on it. It does not run on Ubuntu, Fedora or Debian, because the AUR is designed for Arch's packaging system.
| Feature | pacman | yay | paru |
|---|---|---|---|
| Installs from | Official repos | Repos + AUR | Repos + AUR |
| Written in | C | Go | Rust |
| Shows PKGBUILD diffs | |||
| AUR comments in terminal | |||
| Scripting hooks | pacman hooks | Lua (v13+) | |
| PKGBUILD age shown | |||
| Supported by Arch |
Most yay errors look alarming yet take a single command to fix. Pick yours from the list.
Why it happens: pacman moved to a new libalpm version, and your copy of yay was built against the old one. Pacman and your packages are unaffected.
The fix: rebuild yay from source so it links against the current library.
git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -siWhy it happens: yay was started with sudo or from a root shell.
The fix: run yay as your normal user. It asks for your password only when a package is being installed, which keeps builds away from system folders.
Why it happens: the base-devel group is not installed, so makepkg lacks its standard tools.
The fix: install the build tools, then retry.
sudo pacman -S --needed base-develWhy it happens: yay has no record of that package's last upstream commit, often after switching helpers.
The fix: generate the development database once, then upgrade with development checks.
yay -Y --gendb && yay -Syu --develWhy it happens: users flagged the package, but its maintainer has not published a new PKGBUILD yet.
The fix: wait for the update, or read the package's AUR comments for a reviewed workaround. Never install an unreviewed modified build script.
Why it happens: the package checks an upstream developer's signature and the key is not in your keyring.
The fix: confirm the correct fingerprint on the project's own website or AUR page, import it with gpg, then build again. Never disable signature checks.
Yay itself is light. What it expects is a working Arch-based system and a normal user account. Large AUR builds, such as web browsers, need extra disk space and memory, but yay does not.

The honest position is this: yay is trustworthy, but the AUR is not automatically safe. Anyone can upload a build script, and in June 2026 attackers hijacked more than 1,500 orphaned packages to spread a credential stealer. The official Arch repositories were not affected. Five habits cover almost every risk.
No tool is perfect. Here is a fair assessment of where yay shines and where it asks something of you.

Verdict. If you use Arch and want the AUR without the busywork, yay is the sensible first choice. Keep reading those PKGBUILDs and it will serve you reliably for years.
Install yay nowShort, accurate answers to the questions Arch users ask most, from updating yay and installing it on CachyOS to fixing the libalpm error.
Yay, short for Yet Another Yogurt, is an AUR helper and pacman wrapper written in Go. It searches, builds and updates packages from the Arch User Repository using the same commands you already use with pacman.
No. On plain Arch, yay lives in the AUR, so the first install is done with git and makepkg. Manjaro and CachyOS package it in their own repositories, and EndeavourOS ships it preinstalled.
Run yay on its own for a full upgrade. Because yay is an AUR package, new releases are offered with your other updates. After a major pacman release, rebuild it once with makepkg.
Update the system, install base-devel and git, then run sudo pacman -S yay. CachyOS carries yay in its own repository, so no manual build is needed.
Yes, for AUR packages: yay -S package-name rebuilds just that package. For official repository packages, run a full yay upgrade instead, because Arch does not support partial upgrades.
Makepkg refuses to build packages as root. Run yay as your normal user and it will ask for your password only at the moment a package is installed.
The Arch Wiki lists yay in its comparison of AUR helpers and warns that helpers are not supported by Arch. It advises learning the manual makepkg process so you can troubleshoot problems.
Yay itself is trustworthy open-source software. The risk lies in AUR build scripts, so read every PKGBUILD diff, watch for recent maintainer changes and install yay only from genuine sources.
Both give you the same yay command. The yay package compiles from source with Go, while yay-bin installs the project's prebuilt binary and finishes much sooner.
That message appears when pacman moves to a new libalpm version. Clone the yay package from the AUR and run makepkg -si to rebuild it against the current library.
No. Yay depends on pacman and the Arch package format, so it only works on Arch Linux and Arch-based distributions such as EndeavourOS, Manjaro, CachyOS and Garuda.
Run sudo pacman -Rns yay, then delete the yay folders inside ~/.cache and ~/.config if you want a clean slate. Packages you installed with yay remain in place.