YAY#

1. Install the required packages#

sudo pacman -S --needed base-devel git

Switch to no-root user and go to user’directory

2. Clone yay git#

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

3. Install yay#

makepkg -si