Install yay AUR on Arch / Manjaro / EndeavourOS

Hello Arch Linux enthusiasts!.  In this guide, we’ll show you how to install and use yay – Best AUR Helper for Arch Linux to manage packages on AUR. Arch Linux is one of those operating systems that once you get used to, you just can’t go back.

For a comprehensive review of AUR package managers check below guide.

Arch Linux provides two ways from which you can install and update packages on your system:

  • From official Arch Linux repositories – using pacman package manager
  • From AUR ( Arch User Repository) – using AUR helper tools like yay

What is Arch User Repository ( AUR)

AUR is a community-driven repository for Arch users, different from ABS mentioned earlier. AUR was created with an intention of making the process of sharing community packages easier and organized. It contains package descriptions (PKGBUILDs) that allow you to compile a package from source with makepkg and then install it via pacman.

What is yay?

Yay is Arch Linux AUR helper tool written in Go. It helps you to install packages from PKGBUILDs in an automated way. yay has an AUR Tab completion with advanced dependency solving. It is based on the design of yaourtapacman, and pacaur but also realizing the following objectives:

  • Have almost no dependencies.
  • Provide an interface for pacman.
  • Have yaourt like search.
  • Minimize user input
  • Know when git packages are due for an upgrade.

Installing yay on Arch Linux / Manjaro

You can install yay on Arch Linux using a different AUR helper or by building the package from source.

Binary installation method:

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si

To build the package from PKGBUILD, use below commands:

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

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

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

See screenshot below.

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

Use the commands:

yay -Y --gendb

We will be sharing more articles on Arch Linux topics.

Your IT Journey Starts Here!

Ready to level up your IT skills? Our new eLearning platform is coming soon to help you master the latest technologies.

Be the first to know when we launch! Join our waitlist now.

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Leave a Comment

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

Related Post

Welcome to our today’s tutorial on how to search text files using regular expressions like grep, egrep, fgrep, sed, regex. […]

In this guide, we show you how to manage files and permissions on Linux. The core security feature of Linux […]

Normally when backing data in a computer locally or to the cloud, there has been a struggle to get the […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.