Support #965
Updated by Daniel Curtis almost 3 years ago
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. h2. Prepare the Environment * Make sure the system is up to date: <pre> pacman -Syu </pre> * Install the base-devel, sudo, and wget packages: <pre> pacman -S base-devel git sudo </pre> * Add the sudo group: <pre> groupadd sudo </pre> * Edit the sudo file: <pre> visudo </pre> #* And uncomment the line for the sudo group <pre> %sudo ALL=(ALL) ALL </pre> * Create an unprivileged user: <pre> useradd -m -g users -s /bin/bash bob </pre> * Add the user bob to the sudo group: <pre> usermod -aG sudo bob </pre> h2. Install Yay * Switch to the unprivileged user: <pre> su - bob </pre> * Download and install yay: <pre> cd /tmp </pre> git clone https://aur.archlinux.org/yay.git cd yay makepkg -csi </pre> h2. Using Yay * Search and install: <pre> yay -Ss packagename </pre> * Install packages: <pre> yay -Ss packagename </pre> * Update system including AUR packages: <pre> yay -Syua </pre> h2. Resources * https://itsfoss.com/best-aur-helpers/