Add install-yay.sh
This commit is contained in:
commit
35e7d5dd0e
1 changed files with 22 additions and 0 deletions
22
install-yay.sh
Normal file
22
install-yay.sh
Normal 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!"
|
Loading…
Reference in a new issue