Skip to content

Instantly share code, notes, and snippets.

@ogabriel
Last active June 14, 2024 12:51
Show Gist options
  • Save ogabriel/6ce2d1e6d3500e84518dc7c0d2db15ae to your computer and use it in GitHub Desktop.
Save ogabriel/6ce2d1e6d3500e84518dc7c0d2db15ae to your computer and use it in GitHub Desktop.
Install yay on arch based distros
#!/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.git
cd yay
makepkg -si
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment