Support #965
Install Yay on Arch Linux
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
- And uncomment the line for the sudo group
- 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¶
Updated by Daniel Curtis almost 3 years ago
- % Done changed from 0 to 100
- Status changed from New to Resolved
- Description updated (diff)