How to install yay on Arch Linux

What is yay?

yay (yet another yaouglt) is a most used package manager on Arch Linux that can access to AUR (Arch Linux User’s Repository). AUR is a repository which contains numorous packages that don’t be contained in a default Arch Linux repository.

yay command is almost simmilor to the pacman command, Arch Linux default package manager, and can manage default packages simultainiously. So it is very usefull package manager.

How to install yay

Preperation

Before you install yay, you must install git and base-devel package to your system.

$ sudo pacman -S git base-devel

Download and make the package

First, you shoud make a directory in which yay source code is copied.

$ mkdir ~/Download
$ cd ~/Download

Second, you should retrive a copy of the yay source code from AUR with git command.

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

At last, you can make the package and install it.

$ makepkg -si

How to use yay command

Now you can use yay to get packages from AUR like this.

$ yay -S syslog-ng

Notice: You should NOT use yay command in administrator user. You can run yay in a normal user, and before installing a package you will be asked the password of the administrator.

Conclusion

yay is a very powerfull package manager and you can install it easily. You should use it to bring out the full power of Arch Linux. Let’ enjoy yay life!

Last Updated on August 30, 2024 by Kenn


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *