Install yay (or yaourt) on Arch Linux

2018/06/18

How to install yay (another great AUR helper)

Update on 2018/10/16

If you already got yaourt just type:

yaourt -S yay

Otherwise, you can also install by makepkg

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

**[Deprecated]**Install yaourt

sudo vim /etc/pacman.conf

Then, add following lines to the end.

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

Install the GPG key.

sudo pacman -S archlinuxcn-keyring

Finally, update and install yaourt.

sudo pacman -Sy yaourt

Done!

reference