Project

General

Profile

Support #965

Install Yay on Arch Linux

Added by Daniel Curtis about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Server
Target version:
Start date:
01/26/2022
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

Yay is a great replacement for yaourt to install packages from the Arch User Repository. This is a simple guide for installing and basic usage of yay.

Prepare the Environment

  • Make sure the system is up to date:
    pacman -Syu
    
  • Install the base-devel, sudo, and wget packages:
    pacman -S base-devel git sudo
    
  • Add the sudo group:
    groupadd sudo
    
  • Edit the sudo file:
    visudo
    
    • And uncomment the line for the sudo group
      %sudo    ALL=(ALL) ALL
      
  • Create an unprivileged user:
    useradd -m -g users -s /bin/bash bob
    
  • Add the user bob to the sudo group:
    usermod -aG sudo bob
    

Install Yay

  • Switch to the unprivileged user:
    su - bob
    
  • Download and install yay:
    cd /tmp
    git clone https://aur.archlinux.org/yay.git
    cd yay
    makepkg -csi
    

Using Yay

  • Search and install:
    yay -Ss packagename
    
  • Install packages:
    yay -Ss packagename
    
  • Update system including AUR packages:
    yay -Syua
    

Resources

#1

Updated by Daniel Curtis about 2 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved
  • Description updated (diff)
#2

Updated by Daniel Curtis about 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF