Install yay on Arch
How to install git and base-devel packages
Type the following packman command to install git client if not installed your system:
$ sudo pacman -S git base-devel
How to install package-query
Next install package-query:
$ cd /tmp/ $ git clone https://aur.archlinux.org/package-query.git $ cd package-query && makepkg -si && cd /tmp/
How to compile and install yaourt
Run the following commands:
$ cd /tmp/ $ git clone https://aur.archlinux.org/yay.git $ cd yay && makepkg -si
How to use yaourt
General syntax is:
yay yay [options] yay -S pkg yay --stats yay --help
How do I search for packages?
$ yay list $ yay htop $ yay snapd