mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-12-06 21:33:51 +01:00
42 lines
1.6 KiB
Bash
42 lines
1.6 KiB
Bash
#!/bin/bash
|
|
|
|
######################################################################################################################
|
|
|
|
sudo pacman -S wget --noconfirm --needed
|
|
|
|
echo "Getting the ArcoLinux keys from the ArcoLinux repo - report if link is broken"
|
|
sudo wget https://github.com/arcolinux/arcolinux_repo/raw/main/x86_64/arcolinux-keyring-20251209-3-any.pkg.tar.zst -O /tmp/arcolinux-keyring-20251209-3-any.pkg.tar.zst
|
|
sudo pacman -U --noconfirm --needed /tmp/arcolinux-keyring-20251209-3-any.pkg.tar.zst
|
|
|
|
echo "Getting the latest arcolinux mirrors file - report if link is broken"
|
|
sudo wget https://github.com/arcolinux/arcolinux_repo/raw/main/x86_64/arcolinux-mirrorlist-git-23.06-01-any.pkg.tar.zst -O /tmp/arcolinux-mirrorlist-git-23.06-01-any.pkg.tar.zst
|
|
sudo pacman -U --noconfirm --needed /tmp/arcolinux-mirrorlist-git-23.06-01-any.pkg.tar.zst
|
|
|
|
######################################################################################################################
|
|
|
|
if grep -q arcolinux_repo /etc/pacman.conf; then
|
|
|
|
echo "ArcoLinux repos are already in /etc/pacman.conf"
|
|
|
|
else
|
|
|
|
echo '
|
|
#[arcolinux_repo_testing]
|
|
#SigLevel = PackageRequired DatabaseNever
|
|
#Include = /etc/pacman.d/arcolinux-mirrorlist
|
|
|
|
[arcolinux_repo]
|
|
SigLevel = PackageRequired DatabaseNever
|
|
Include = /etc/pacman.d/arcolinux-mirrorlist
|
|
|
|
[arcolinux_repo_3party]
|
|
SigLevel = PackageRequired DatabaseNever
|
|
Include = /etc/pacman.d/arcolinux-mirrorlist
|
|
|
|
[arcolinux_repo_xlarge]
|
|
SigLevel = PackageRequired DatabaseNever
|
|
Include = /etc/pacman.d/arcolinux-mirrorlist' | sudo tee --append /etc/pacman.conf
|
|
|
|
fi
|
|
|
|
echo "DONE - UPDATE NOW" |