From 35e7d5dd0eb7cd02e0220167fa3d14ba903dff07 Mon Sep 17 00:00:00 2001 From: sneedgroup-holder Date: Sat, 2 Nov 2024 01:41:25 +0000 Subject: [PATCH] Add install-yay.sh --- install-yay.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 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!"