Move to Linux
Browse guides

Arch Linux

AUR

Find extra software for Arch Linux and install it with yay.

What is the AUR?

The Arch User Repository (AUR) is a collection of software build instructions shared by the community. It can help you get apps that aren’t in Arch’s official software sources.

These instructions live in a file called PKGBUILD. Your computer uses it to download the files and turn them into an installable package.

What is yay?

yay is a tool that handles much of that work for you. It can search for software, build AUR packages, and help keep them updated.

You don’t need the AUR for everything. Check Arch’s official packages with pacman first.

Before you install

AUR packages are made by users and aren’t checked like Arch’s official packages. Read the package’s comments and review its PKGBUILD and any extra scripts before running them. If you don’t understand what they do, ask for help before continuing.

The ArchWiki AUR guide (opens in a new tab) explains what to check.

Install yay

Make sure your Arch system is up to date before starting. Then install the tools needed to build packages.

sh
sudo pacman -S --needed git base-devel

Download yay’s build files and open the folder.

sh
git clone https://aur.archlinux.org/yay.git
cd yay

Read the PKGBUILD before continuing. Press q to leave the viewer.

sh
less PKGBUILD

Once you’ve checked the files, build and install yay.

sh
makepkg -si

Run this as your normal user. Don’t put sudo before makepkg or yay; they’ll ask for your password when needed.

Using yay

Replace package-name with the name of the software you want.

Find and install software

Search, then choose a package from the results.

sh
yay package-name

Read the prompts and review the build-file changes before agreeing to install.

Check for updates

Update Arch’s packages and check your installed AUR packages for updates.

sh
yay -Syu

For more commands, see yay’s documentation (opens in a new tab).

Last updated