When comparing Linuxbrew vs yay, the Slant community recommends yay for most people. In the question“What are the best Linux package managers?” yay is ranked 8th while Linuxbrew is ranked 19th. The most important reason people chose yay is:
It's written in Go so it is fairly easy to add features or tweak this amazing tool.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Can install packages to the ~/user-home-folder
Pro Based on mega popular macOS Homebrew package manager and has a broad selection of packages to install
Pro Can install packages without root privileges
Pro Can run on Windows Subystem Layer
Pro Distro independent
Pro Easy to add features
It's written in Go so it is fairly easy to add features or tweak this amazing tool.
Pro Intuitive CLI
Yay's commands and output make sense for anyone used to the pacman package manager.
Pro Written in Go
The compiled program is snappy while the source is easy to read.
Pro Available as a precompiled binary
Both yay and yay-bin are in the AUR, the latter of which doesn't require any dependencies or compilation, making installation and updates quick and painless.
Pro Yogurt interactive mode
Write package name without keys [yay <packagename>] to enter interactive mode.
Pro Doesn't rebuild already-installed apps like Trizen
Cons
Con So slow!
Because it's not made with binaries but code, the update and the installation of a new package is extremely slow due to the compiling time.
Con Written in Go
Running a Go program requires the Go runtime. Go is also a garbage collected language, so the program isn't as responsive as it could be.