Add install-yay.sh

This commit is contained in:
The Ghost of FOSS' Past 2024-11-02 01:41:25 +00:00
commit 35e7d5dd0e

22
install-yay.sh Normal file
View file

@ -0,0 +1,22 @@
#!/bin/bash
# Update system and install prerequisites
echo "Updating system and installing prerequisites..."
sudo pacman -Syu --noconfirm base-devel git
# Clone the yay repository
echo "Cloning the yay repository..."
git clone https://aur.archlinux.org/yay.git
# Navigate to the yay directory
cd yay || { echo "Failed to change directory to yay."; exit 1; }
# Build and install yay
echo "Building and installing yay..."
makepkg -si --noconfirm
# Clean up
cd ..
rm -rf yay
echo "yay installation completed!"