AUR helper for Arch Linux

Yayarch – Install, Update and Master Yay on Arch Linux

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.

  • AUR and repo packages
  • One-word upgrades
  • Review before build
yay command builder

Choose a task

yay -S google-chrome

Builds and installs the package from the AUR after showing you its PKGBUILD.

The basics

What Is Yay and Why Do Arch Users Rely on It?

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.

Laptop with a terminal and AUR parcels, illustrating what yay is
  • 13.1Current release, November 2026
  • GoProgramming language
  • GPL-3.0Open-source licence
  • 2016First submitted to the AUR
Key features

Features That Make Yay the Go-To AUR Helper

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.

Monitor and feature tokens illustrating yay features

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.

Familiar pacman syntax

If you know -S, -Rns and -Syu, you already know yay.

Narrow search

yay linux header searches “linux”, then filters for “header”.

Questions up front

Every prompt appears before building, so you can step away while it works.

Fresh -git packages

--devel checks development packages for new upstream commits.

Safety tools in v13

See each PKGBUILD's age, and script checks in ~/.config/yay/init.lua.

How it works

How Yay Works Behind the Scenes

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.

  1. 01

    Sync

    Refreshes the official databases exactly as pacman -Sy would.

    :: Synchronising databases
  2. 02

    Check the AUR

    Compares installed AUR packages with the latest versions online.

    :: Searching AUR
  3. 03

    Flag the unusual

    Lists packages missing from the AUR or flagged out of date.

    -> Out Of Date
  4. 04

    Let you choose

    Shows a numbered list and lets you exclude by number, range or repository.

    ==> 1 2 3, 1-3, ^4
  5. 05

    Review and build

    Shows each PKGBUILD diff, makepkg builds as your user, pacman installs.

    ==> makepkg -si
Rising blocks linked in sequence, showing yay's upgrade stages

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.

Installation

Yay Arch Linux Install in Four Commands

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.

  1. Update the systemRun sudo pacman -Syu so libraries are current.
  2. Install the build toolsgit and base-devel provide makepkg and the compiler.
  3. Clone the packageFetch yay's build files from the AUR.
  4. Build and installRead the PKGBUILD, then run makepkg -si.
  5. Confirmyay --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 -si

Compiles 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 -si

Uses 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 yay

To 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 yay

Manjaro carries yay in its repositories, though its packages can trail Arch by a few weeks.

yay --version
yay

EndeavourOS ships yay preinstalled. Check the version, then run a full upgrade.

Laptop, server and download token illustrating the yay installation
Use cases

Who Uses Yay, and What For

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.

Dual monitors on a developer desk
Developers

Editors and tools in one go

VS Code, JetBrains Toolbox and Postman all live in the AUR, installed and kept current by one command.

yay -S visual-studio-code-bin
Gaming tower, monitor and controller
Gamers

Launchers and tweaks

Heroic, ProtonUp-Qt and many game fixes are AUR packages, with 32-bit dependencies handled for you.

yay -S heroic-games-launcher-bin
Laptop on a tidy desk with a plant and mug
Desktop users

Everyday applications

Spotify, Google Chrome and Zoom are a search away, without hunting for installers on the web.

yay spotify
Circuit board and gears on a workbench
Tinkerers

Bleeding-edge builds

Follow -git packages and rebuild them automatically whenever upstream code changes.

yay -Syu --devel
Download

Download Yay and Choose the Right Package

Yay 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.

Software
yay (Yet Another Yogurt)
Category
AUR helper and pacman wrapper
Maintainer
Jo Guerreiro (jguer)
Latest version
13.1 (November 2026)
Licence
GPL-3.0-or-later
Dependencies
pacman > 6.1, git
Build dependency
go 1.24 or newer
Architectures
x86_64, aarch64, armv7h
Parcel with a download arrow
Compatibility

Where Yay Works, and How It Compares

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.

  • Arch Linux
  • EndeavourOS preinstalled
  • Manjaro
  • CachyOS
  • Garuda Linux
  • Arch Linux ARM
Featurepacmanyayparu
Installs fromOfficial reposRepos + AURRepos + AUR
Written inCGoRust
Shows PKGBUILD diffs
AUR comments in terminal
Scripting hookspacman hooksLua (v13+)
PKGBUILD age shown
Supported by Arch
Troubleshooting

Fixing the Most Common Yay Errors

Most yay errors look alarming yet take a single command to fix. Pick yours from the list.

error while loading shared libraries: libalpm.so

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 -si

ERROR: Running makepkg as root is not allowed

Why 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.

Cannot find the strip binary

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-devel

Yay will not offer updates for a -git package

Why 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 --devel

Flagged Out Of Date AUR Packages, yet nothing updates

Why 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.

One or more PGP signatures could not be verified

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.

Laptop, wrench and warning token for troubleshooting
System requirements

Yay System Requirements

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.

Processor, memory module and drive representing system requirements
Operating systemArch Linux or an Arch-based distribution
Package managerpacman newer than 6.1, with git installed
Build toolsThe base-devel group for makepkg
User accountA normal user with sudo, doas or run0, never root
Architecturex86_64, aarch64 or armv7h
Source buildgo 1.24 or newer, installed automatically by makepkg
Disk spaceRoom in ~/.cache for builds; several GB for large apps
NetworkInternet access to reach the AUR and source mirrors
Burgundy shield with a check mark
Safety

Using Yay Safely on the AUR

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.

  1. Install yay only from genuine sources. Fake packages posing as yay and paru appeared in October 2026.
  2. Read every PKGBUILD diff. Look for unexpected curl or wget calls and encoded strings.
  3. Check package age and maintainer. A quiet package that suddenly changed hands deserves a second look.
  4. Prefer well-used packages. Votes and recent comments mean problems get noticed quickly.
  5. Use the v13 Lua hooks. An AURPreInstall hook can stop an install before it begins.
Pros and cons

Yay Pros and Cons, Weighed Honestly

No tool is perfect. Here is a fair assessment of where yay shines and where it asks something of you.

Strengths

  • Pacman syntax, so there is almost nothing new to learn
  • Upgrades AUR and repository packages together
  • Asks every question before building
  • Actively maintained, with major releases in 2026
  • Package age and Lua hooks add real safety
  • Open source and lightweight

Limitations

  • Not supported by Arch, so help comes via GitHub
  • Cannot protect you from a build script you approve
  • Source builds need Go and a little patience
  • Needs rebuilding after major pacman releases
  • No terminal display of AUR comments
  • Runs only on Arch-based distributions
Balance scale weighing strengths against limitations

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 now
FAQs

Frequently Asked Questions About Yay

Short, accurate answers to the questions Arch users ask most, from updating yay and installing it on CachyOS to fixing the libalpm error.

Speech bubbles representing questions and answers

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.