Install yay (or yaourt) on Arch Linux

How to install yay (another great AUR helper)

Update on 2018/10/16

If you already got yaourt just type:

1
yaourt -S yay

Otherwise, you can also install by makepkg

1
2
3
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

[Deprecated]Install yaourt

1
sudo vim /etc/pacman.conf

Then, add following lines to the end.

1
2
[archlinuxcn]
Server = http://repo.archlinuxcn.org/$arch

Install the GPG key.

1
sudo pacman -S archlinuxcn-keyring

Finally, update and install yaourt.

1
sudo pacman -Sy yaourt

Done!

reference