Skip to content

Instantly share code, notes, and snippets.

@ogabriel
Created June 14, 2024 12:51
Show Gist options
  • Save ogabriel/a5d8b757a6c6a24314eba0fa93a199c9 to your computer and use it in GitHub Desktop.
Save ogabriel/a5d8b757a6c6a24314eba0fa93a199c9 to your computer and use it in GitHub Desktop.
Install yay on arch based distros (bin version)
#!/usr/bin/env sh
if [ -z "$(command -v yay)" ]; then
echo "Installing yay..."
sudo pacman -S --needed --noconfirm git base-devel
cd /tmp
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment