Yet Another Yaourt, short of yay, is a modern AUR helper written in the GO language for managing your Arch Linux distribution packages. It makes it easier to install, update, or remove with just one command, freeing up time spent on their system for most users.
In the following tutorial, you will learn how to install Yay, which will make things much more accessible than using Pacman commands. Things like updating AUR packages are not supported, for example, so installing Yay can be essential for interacting with your Arch Linux system.
In the following tutorial, you will learn how to install git and yay AUR helper on Arch Linux using the command line terminal so you can quickly get, update and remove packages from the Arch Linux user repository.
Table of Contents
Update Arch Linux
First, update your system to ensure all existing packages are up to date using the following command.
sudo pacman -Syu
Install yay Helper
To begin the installation, you must have GIT installed to import the yay repository to install/build. From your command terminal, use the following code to begin the installation.
sudo pacman -S --needed --noconfirm base-devel git
Now clone the yay archive using the following terminal command.
git clone https://aur.archlinux.org/yay-git.git
Next, move the archive to the /OPT/ directory. This is a good location for any other archive installs, keep everything located, and traditionally the location is a commonly used area for different applications.
sudo mv yay-git /opt/
Now navigate to the yay-git directory location.
Build the package using the makepkg command.
And that is it! You have installed yay AUR helper on Arch Linux. Now, to learn a bit about how to use the basic commands of yay, please see the following tips below.
How to Use yay AUR Helper
Now that you have yay installed, there are some basic commands that you should learn that you may use pretty often. This is not a complete list but should cover most of your needs.
The first part is to visit the AUR section and find packages that may interest you using the following link.
Additionally, with these commands, you can add –noconfirm to speed up the process, similar to -y on other Linux systems such as Debian.
Print command help list
Check and upgrade standard packages
Check and upgrade development and standard packages
yay -Syu --devel --timeupdate
Install a Package with
yay AUR Helper
yay -S example_package
Remove Package with yay AUR Helper
yay -Rns example_package
Clean up left-over/unwanted dependencies
Print yay, system stats
Comments and Conclusion
With yay helper, you can easily save time updating and installing from the arch user repository with its automation package management and other bonuses such as searching, installing dependencies, and much more. Do remember, there are other wrappers available if yay does not meet your expectations.