# Ensure the yay AUR helper is present (build yay-bin from the AUR if not). if command -v yay >/dev/null; then info "yay already installed" return 0 2>/dev/null || exit 0 fi sudo pacman -S --needed --noconfirm git base-devel tmp="$(mktemp -d)" git clone https://aur.archlinux.org/yay-bin.git "$tmp/yay-bin" ( cd "$tmp/yay-bin" && makepkg -si --noconfirm ) rm -rf "$tmp"