commit 35e7d5dd0eb7cd02e0220167fa3d14ba903dff07 Author: sneedgroup-holder Date: Sat Nov 2 01:41:25 2024 +0000 Add install-yay.sh diff --git a/install-yay.sh b/install-yay.sh new file mode 100644 index 0000000..98ad204 --- /dev/null +++ b/install-yay.sh @@ -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!"