DEV Community


Installing yay on Arch Linux

mattdark profile image Mario García ・1 min read

Yay is an AUR helper that you can use as a replacement for yaourt (deprecated). It's not available in the Arch Linux repositories. So If you recently installed Arch, you can follow the instructions in the GitHub repository.

On Arch based distributions like Manjaro, yay is available through the official repositories. For installation, just run the following command in the Linux terminal:

$ sudo pacman -S yay


First of all, you need to clone the PKGBUILD and run makepkg script for building the package.


Git is a dependency of yay and installations from AUR are made through a fakeroot environment, so you need to install both packages. On a new Arch installation, Git and fakeroot are not installed by default, and you also need git to clone the PKGBUILD from AUR.

For using makepkg, its dependencies need to be installed. You can install the base-devel package group which includes binutills, make, gcc, fakeroot or install them individually.


$ sudo pacman -S git


$ sudo pacman -S base-devel


binutils, make, gcc, fakeroot:

$ sudo pacman -S binutils make gcc fakeroot

Install yay

$ git clone
$ cd yay
$ makepkg -si

Yay is installed and you can get packages directly from AUR using this helper.


Editor guide
bidetaggle profile image

Not anymore, I'm doing a fresh install and sudo pacman -S yay says error: target not found

The only way is to git clone nowaday

mattdark profile image
Mario García Author

Thank you so much for sharing