Yet Another Yogurt - An AUR Helper Written in Go.
Note
Parts of this guide uses pacman
commands.
This details how to install Yay, a very necessary tool for installing AUR packages on Arch Linux based systems.
-
Install
git
and thebase-devel
package group:sudo pacman -S --needed git base-devel
-
Clone the
yay
git
repository to the home directory:git -C ~ clone https://aur.archlinux.org/yay.git
-
Enter the
yay
directory:cd ~/yay
-
Install
yay
:makepkg -si
-
Remove the
yay
directory:rm -rf ~/yay
-
For initial use post-installation, do the following:
Generate a development package database for
*-git
packages that were installed withoutyay
:yay -Y --gendb
Check for development package updates:
yay -Syu --devel
Make development package updates permanently enabled (
yay
andyay -Syu
will then always check dev packages):yay -Y --devel --save
Important
If you are running on a distribution that is unable to use pacman
or yay
(i.e. Immutable systems, non-Arch Linux systems), install and use yay
on an Arch Linux based container through Distrobox.
Note
Replace <package>
with the actual name of the package you wish to search, install, or update.
This details how to use yay
to search, install, update, or uninstall packages on Arch Linux.
-
To install a package:
yay -S <package>
Add the
--noconfirm
flag to skip any prompts for input.Add the
--needed
flag to skip the installation if the package is already installed. -
To install multiple packages, simply append the package names to the same command:
yay -S <package1> <package2> <package3>
-
To update a package:
yay -Syu <package>
-
To update all packages:
yay -Syu
-
To uninstall a package:
yay -Rns <package>
-
To uninstall orphaned packages:
sudo pacman -Rns (pacman -Qtdq)
-
To search for a package:
yay -Ss <package>