Skip to content

How to Install Yay AUR Helper in Arch Linux and Manjaro

To build the package from PKGBUILD, use below commands:

sudo pacman -S git
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
#or
sudo pacman -S yay

This will install go on your system and build yay package from downloaded repo files.

Using yay on Arch Linux / Manjaro

When yay has been installed, it should be ready for use. Note that you don’t need sudo privileges to use.yay. Most yay flags are pacman standard ones.  See examples below for basic usage of yay.

Example 1: Install package using yay

Use the option -S to install a package from AUR using yay.

$ yay -S package

You can also use yay to search both the AUR and official repositories with -Ss option.

yay -Ss package_name

Example 2: Remove package using yay

To remove a package, use -Rns options:

$ yay -Rns package

Example 3: Launch a package selection menu

Use:

$ yay <Search Term>

Example 4: Upgrade installed packages using yay

To upgrade all installed packages, use the options :

$ yay -Syu

To include development packages, use:

$ yay -Syu --devel --timeupdate

Example 5: Cleans unneeded dependencies using yay

Use the options to remove all unneeded dependencies on your system

$ yay -Yc

Example 6: Prints system statistics using yay

To print system stats, use -Ps

$ yay -Ps

Example 7: Generates development package DB used for devel updates

$ yay -Y --gendb

Finally, to upgrade all the packages, use this command.

yay -Sua
Published inUncategorized

Be First to Comment

Leave a Reply

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