Yay AUR Explained: How the Helper Works with the Arch User Repository

A clear look at the Arch User Repository and how yay searches, resolves, builds and updates AUR packages, with practical advice on trust, votes and maintenance.

Yay AUR Explained: How the Helper Works with the Arch User Repository

Yayarch hears the same question from new Arch users again and again: what exactly does yay do with the AUR, and why can't pacman do it alone? The relationship between yay and the Arch User Repository is simple once you see the moving parts, and understanding it makes you a far more confident user. This article explains what the AUR is, what yay adds on top, and how to work with community packages sensibly.

What the Arch User Repository is

The Arch User Repository is a community collection of build scripts. It is not a repository of ready-made packages in the way the official Arch repositories are. Each AUR entry contains a PKGBUILD, a small shell script describing where to download the software, how to build it and how to package it, plus a metadata file called .SRCINFO and sometimes patches or service files.

Anyone with an AUR account can submit a package. That openness is the AUR's great strength. It holds software that could never be in the official repositories, such as proprietary applications, unreleased development versions and very niche tools. It is also why the Arch Wiki is clear that AUR packages are user-produced content and that you use them at your own risk.

When a package becomes popular and well maintained, it may be adopted into the official extra repository. Until then, it lives in the AUR, and it is your machine that builds it.

The manual process yay automates

Without a helper, installing an AUR package looks like this. You find the package on the AUR website, clone its git repository, read the PKGBUILD, check whether any of its dependencies are themselves AUR packages, repeat the whole process for each of those, run makepkg to build, and finally install with pacman. Later, pacman will never tell you that an AUR package has an update, because it does not know the AUR exists. You have to check yourself.

None of this is difficult, and every Arch user should do it at least once. It becomes tedious, though, when you have twenty AUR packages and some of them depend on other AUR packages.

What yay adds

Yay automates every step above while keeping you in control of the important decisions.

Unified search

yay -Ss term searches the sync databases of your enabled repositories and the AUR's web interface in one go. Results are labelled so you can see at a glance whether a package comes from core, extra or the AUR, along with its vote count and popularity score.

Dependency resolution

Before anything is built, yay works out the full dependency tree. Repository dependencies are handed to pacman. AUR dependencies are queued to be built first, in the right order. Version 13.1 made this resolution noticeably faster.

Review before build

For each AUR package, yay can show the PKGBUILD as a diff against the version you last installed, or as the full file for a first install. This is the single most important feature from a safety point of view.

Building and installing

Yay calls makepkg to build each package as your normal user, then passes the result to pacman for installation. Because pacman does the final install, the package is tracked in its database like everything else, and pacman -Q will list it.

Updates

During yay -Syu, yay compares the installed version of each foreign package with the version currently on the AUR and offers upgrades. With the --devel option, it also checks git-based packages for new commits upstream.

Reading AUR search results like an expert

A typical result line shows the repository label, the package name and version, the number of votes and a popularity figure, followed by the description. These numbers are useful signals, not guarantees.

Votes accumulate over the lifetime of a package, so an old, well-used package naturally has many. Popularity reflects recent votes, weighted towards the present, so it shows whether people are still choosing it. A package with thousands of votes and steady popularity is usually well looked after. A package with very few votes is not necessarily bad, but it deserves a closer reading of its build script.

Yay also shows when a package has been flagged out of date or is orphaned, meaning it has no maintainer. Orphaned packages can still be fine to use, but they are exactly the ones attackers targeted in 2026, so be especially careful with them.

The -bin, -git and plain naming convention

You will often see three or more packages for the same program.

  • A plain name, such as example, usually builds from a released source archive.
  • A name ending in -bin repackages a binary published by the upstream project. It installs faster because nothing is compiled.
  • A name ending in -git builds from the latest commit in the project's repository. It gives you the newest code, and occasionally the newest bugs.

Yay treats all of them the same way. Choosing between them is a question of how much you value speed, transparency and freshness.

How yay handles AUR updates

When you run a full upgrade, yay prints messages that tell you exactly what it is doing. It synchronises the repository databases, searches the AUR for updates, checks development packages if you have enabled that option, and then lists anything unusual. Packages that have disappeared from the AUR appear under a missing heading. Packages that users have flagged appear under an out-of-date heading.

It then shows a numbered list of upgrades and asks which, if any, you want to exclude. You can type numbers, ranges or a repository name. Yay warns that excluding packages may cause partial upgrades and break systems, which is a fair caution. Exclude only when you have a specific reason, such as waiting for a known fix.

Voting and contributing back

The AUR relies on its users. If a package works well for you, a vote helps others find it. Yay can vote from the terminal with yay -Wv package, and remove a vote with yay -Wu package, provided you set your AUR username and password as environment variables. If you would rather not store credentials that way, voting on the website works just as well.

If you find a problem, the package's AUR comments are the place to report it. Problems with yay itself belong on yay's GitHub issue tracker, not on the AUR page or the Arch forums.

The trust question

Because the AUR is open, it carries risk. The 2026 incidents made this concrete. In June, a campaign that researchers named Atomic Arch hijacked more than 1,500 orphaned packages and changed their build scripts to install a credential stealer. Later waves used obfuscated code, and in October fake packages imitating yay and paru were discovered. Arch staff removed the malicious changes, and the official repositories were never affected.

Yay responded in version 13 by showing how recently each PKGBUILD changed and by adding Lua hooks, which let you script your own checks. Neither feature replaces judgement. The practical routine is simple: read every diff, be wary of packages that recently changed maintainer, and question any build script that downloads extra files from unusual addresses or decodes hidden strings.

A worked example with an AUR dependency

It helps to follow a real case from start to finish. Imagine you want a tool whose AUR package depends on a library that is also only available in the AUR.

You run yay -S followed by the package name. Yay reads the package's metadata and notices the dependency. It checks the repositories first, finds nothing, then finds the library in the AUR. It now knows it must build two packages, and in which order.

Before building, yay asks whether you want to review the build files. You view both PKGBUILDs, checking that each downloads from the expected upstream address and that the checksums are present. You confirm.

Yay installs any repository build dependencies through pacman, builds the library with makepkg, installs it, then builds and installs the tool itself. Finally, it offers to remove build-only dependencies it pulled in. The whole process needs your attention at the start and then runs unattended.

Doing the same by hand would have meant two clones, two builds and two installs in the correct order, plus remembering to check both for updates in future. That is the time yay saves, multiplied across every AUR package you use.

Removing AUR packages cleanly

Removing an AUR package works exactly like removing any other package, because pacman installed it. yay -Rns package removes the package, its configuration backup files and any dependencies that nothing else needs. After removing several packages, yay -Yc catches build dependencies left behind from earlier builds.

Removal does not touch the cached build files. If you are sure you will not reinstall the package, clearing the cache with yay -Sc reclaims that space too.

How the AUR fits beside official repositories

It is useful to picture three layers. The core and extra repositories hold packages built and signed by Arch's packagers. Optional repositories, such as multilib for 32-bit libraries, sit alongside them. The AUR sits outside all of these as a set of recipes rather than finished packages. Yay moves comfortably across all three layers, but only the first two are officially supported.

Frequently asked questions

Is the AUR part of Arch Linux?

It is run by the Arch project, but its contents are not official packages. Arch provides the platform, while users provide and maintain the build scripts.

Can pacman install AUR packages directly?

No. Pacman only understands the official sync repositories. AUR packages must be built first, either manually with makepkg or through a helper such as yay.

Does yay download packages or build scripts?

It downloads build scripts from the AUR, then makepkg downloads the actual source or binary from wherever the PKGBUILD points, usually the upstream project's own site.

How do I list only my AUR packages?

Run yay -Qm or pacman -Qm. Both list foreign packages, meaning those not found in any sync repository.

Can I limit yay to the AUR?

Yes. Adding --aur to an operation restricts it to AUR packages, so yay -Sua upgrades only AUR packages.

Conclusion

The Yay AUR partnership is easy to describe. The AUR supplies community build scripts, makepkg turns them into packages, pacman installs them, and yay joins those steps together, adding search, dependency resolution, review and updates. Treat the AUR as the open community space it is, read what you are about to build, and yay will give you access to an enormous range of software with very little effort and very few surprises.