feat: update Arch Linux script to use yay for package management and install yay if missing

This commit is contained in:
Yusuf İpek
2025-11-20 14:49:27 +03:00
parent 235238171b
commit 48e2d2f05d
+23 -2
View File
@@ -110,13 +110,34 @@ set -e
echo "Starting package installation for Arch Linux..."
# Check if yay is installed
if ! command -v yay &> /dev/null; then
echo "yay is not installed. Installing yay..."
# Install dependencies
echo "Installing dependencies..."
sudo pacman -S --needed --noconfirm git base-devel
# Clone and build yay
echo "Building yay..."
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si --noconfirm
cd ..
rm -rf yay-bin
echo "yay installed successfully!"
else
echo "yay is already installed."
fi
# Update package lists
echo "Updating package lists..."
sudo pacman -Sy --noconfirm
yay -Sy --noconfirm
# Install packages
echo "Installing packages: ${packageNames}"
sudo pacman -S --noconfirm ${packageNames}
yay -S --noconfirm ${packageNames}
# Verify installation
echo "Verifying installation..."