Simple setup script to add Chaotic AUR repository and install yay on Arch Linux systems.
If it doesn't work, please contact us at /contact
curl -sSL https://assets.i14a.dev/scripts/chaotic-aur.sh | sudo shThis will automatically install yay (AUR helper) and set up the Chaotic AUR repository. Run as root.
#!/bin/env bash
setup_chaotic() {
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' --noconfirm
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm
echo -e "\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf
pacman -Syu yay --noconfirm
}
if [ "$EUID" -ne 0 ]; then
echo "This script must be run as root. Please run as root"
exit 1
fi
setup_chaotic