-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux yay Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to yay AUR helper on Linux, covering Arch Linux, CachyOS, and other distributions including installation, usage, and AUR package management.
Arch/CachyOS:
# Install git and base-devel
sudo pacman -S git base-devel
# Clone yay
git clone https://aur.archlinux.org/yay.git
cd yay
# Build and install
makepkg -siCheck yay:
# Check version
yay --version
# Check help
yay --helpSearch AUR:
# Search packages
yay package-name
# Search with details
yay -Ss package-nameInstall from AUR:
# Install package
yay -S package-name
# Install with confirmation
yay -S package-name --noconfirmUpdate system:
# Update all packages
yay -Syu
# Update AUR packages only
yay -SuaUninstall:
# Remove package
yay -R package-name
# Remove with dependencies
yay -Rs package-nameEdit config:
# Edit config
vim ~/.config/yay/config.jsonConfiguration:
{
"aururl": "https://aur.archlinux.org",
"buildDir": "$HOME/.cache/yay",
"editor": "vim",
"editorflags": "",
"makepkgbin": "makepkg",
"redownload": "no",
"rebuild": "no"
}Check installation:
# Check yay
which yay
yay --version
# Reinstall if needed
cd ~/yay
makepkg -siFix dependencies:
# Install base-devel
sudo pacman -S base-devel
# Clean build cache
yay -ScThis guide covered yay installation, AUR package management, and configuration for Arch Linux, CachyOS, and other distributions.
- paru Guide - paru AUR helper
- Package Management - Package management
- yay: https://github.com/Jguer/yay
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.