Contents
sudo pacman --needed -S base-devel git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
sudo pacman --needed -S yay base-devel
--needed is so that packages in the base-devel group are not reinstalled unnecesssarily
press enter to whatever it asks you
yay searchterm
if you know the packages name you can
yay -S packagename
yay -Y --gendb
this generates the database needed for updating git/devel packages
yay -Syu --devel --timeupdate
sudo sed -i 's/^#Color/Color/' /etc/pacman.conf
yay -G packagename
yay -Sc
sudo pacman -R yay