Skip to content

Latest commit

 

History

History
163 lines (106 loc) · 3.02 KB

yay.md

File metadata and controls

163 lines (106 loc) · 3.02 KB

Yay

Description

Yet Another Yogurt - An AUR Helper Written in Go.

Note

Parts of this guide uses pacman commands.

Directory

References


Installation

Description

This details how to install Yay, a very necessary tool for installing AUR packages on Arch Linux based systems.

References

Steps

  1. Install git and the base-devel package group:

    sudo pacman -S --needed git base-devel
  2. Clone the yay git repository to the home directory:

    git -C ~ clone https://aur.archlinux.org/yay.git
  3. Enter the yay directory:

    cd ~/yay
  4. Install yay:

    makepkg -si
  5. Remove the yay directory:

    rm -rf ~/yay
  6. For initial use post-installation, do the following:

    Generate a development package database for *-git packages that were installed without yay:

    yay -Y --gendb

    Check for development package updates:

    yay -Syu --devel

    Make development package updates permanently enabled (yay and yay -Syu will then always check dev packages):

    yay -Y --devel --save

Usage

Important

If you are running on a distribution that is unable to use pacman or yay (i.e. Immutable systems, non-Arch Linux systems), install and use yay on an Arch Linux based container through Distrobox.

Note

Replace <package> with the actual name of the package you wish to search, install, or update.

Description

This details how to use yay to search, install, update, or uninstall packages on Arch Linux.

Install

  1. To install a package:

    yay -S <package>

    Add the --noconfirm flag to skip any prompts for input.

    Add the --needed flag to skip the installation if the package is already installed.

  2. To install multiple packages, simply append the package names to the same command:

    yay -S <package1> <package2> <package3>

Update

  1. To update a package:

    yay -Syu <package>
  2. To update all packages:

    yay -Syu

Uninstall

  1. To uninstall a package:

    yay -Rns <package>
  2. To uninstall orphaned packages:

    sudo pacman -Rns (pacman -Qtdq)

Query

  1. To search for a package:

    yay -Ss <package>