How to Install and Use yay on Arch Linux
Yay is a package manager for Arch-based Linux distributions, designed to improve upon the functionality of the default package manager called Pacman. With yay, users can quickly search for and install packages from the Arch user repositories (AUR) as well as Pacman repositories. This article will describe the steps to install and use the yay package manager on Arch Linux.
Installation
Yay is not available in Pacman repositories by default, so we need to install it through AUR. Here are the steps to install yay:
- Start up your terminal and run the following command:
$ git clone https://aur.archlinux.org/yay-git.git
- Navigate to the cloned directory:
$ cd yay-git
- Build and install yay using the makepkg command:
$ makepkg -si
After running the above command, the yay package manager should now be installed on your system.
Usage
To use yay, the syntax is the same as for Pacman:
– To search for packages:
$ yay -Ss package-name
– To install a package:
$ yay -S package-name
– To remove a package:
$ yay -R package-name
– To update packages:
$ yay -Syu
– To remove unused packages:
$ yay -Sc