Yay – Yet another Yogurt is an AUR Helper written in Go. It’s objective is providing an interface of pacman with minimal user input, yaourt like search and with almost no dependencies.
Yaourt has been discontinued in favour of yay. Yaourt (Yet Another User Repository Tool) is an advanced command line tool for installing packages on Arch Linux. It is a powerful wrapper for Pacman, the standard package management utility for Arch Linux with extended features and remarkable** **AUR (Arch Linux User Repository) support.
Related posts:
Features of yay
- Advanced dependency solving
- PKGBUILD downloading from ABS or AUR
- Completions for AUR packages
- Query user up-front for all input (prior to starting builds)
- Narrow search (
yay linux header
will first searchlinux
and then narrow onheader
) - Find matching package providers during search and allow selection
- Remove make dependencies at the end of the build process
Installing yay
Yay publishes releases for each version in its Github releases page here https://github.com/Jguer/yay/releases. We are going to get the latest release for our system. As of the writting of this post, the latest version is v11.0.2. To download the latest for my architecture, I use this command:
|
|
Then extract the downloaded package:
|
|
Finally, move the yay binary to /usr/local/bin/
so it can be accessed without typing fullpath:
|
|
Using Yay in Arch Linux and Manjaro
Once yay is installed, let us explore some common commands/functions we can achieve with it.
To upgrade all packages on the system:
|
|
To include development packages during the upgrade run.
|
|
As with any other AUR helpers, you can install the packages using the command.
|
|
The above command installs visual studio code.
To remove a package using yay use the command.
|
|
To clean up all unwanted dependencies on your system, issue the command.
|
|
If you want to print system statistics using yay, run.
|
|
Conclusion
In this guide we learnt how to install yay in a Manjaro/Arch Linux