mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 10:36:07 +00:00
feat: update Arch Linux script to use yay for package management and install yay if missing
This commit is contained in:
@@ -110,13 +110,34 @@ set -e
|
|||||||
|
|
||||||
echo "Starting package installation for Arch Linux..."
|
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
|
# Update package lists
|
||||||
echo "Updating package lists..."
|
echo "Updating package lists..."
|
||||||
sudo pacman -Sy --noconfirm
|
yay -Sy --noconfirm
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
echo "Installing packages: ${packageNames}"
|
echo "Installing packages: ${packageNames}"
|
||||||
sudo pacman -S --noconfirm ${packageNames}
|
yay -S --noconfirm ${packageNames}
|
||||||
|
|
||||||
# Verify installation
|
# Verify installation
|
||||||
echo "Verifying installation..."
|
echo "Verifying installation..."
|
||||||
|
|||||||
Reference in New Issue
Block a user