mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-21 20:15:02 +02:00
⏳ @eshanized updated the repository!!!
This commit is contained in:
42
usr/share/blackbox/scripts/get-the-keys-and-repos.sh
Normal file
42
usr/share/blackbox/scripts/get-the-keys-and-repos.sh
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
#!/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"
|
Reference in New Issue
Block a user