Update v2/fedora-niri.sh
This commit is contained in:
+5
-7
@@ -89,16 +89,14 @@ add_terra_repo() {
|
|||||||
if [ ! -f /etc/yum.repos.d/terra.repo ]; then
|
if [ ! -f /etc/yum.repos.d/terra.repo ]; then
|
||||||
say_yellow "Adding Terra repository for Noctalia Shell..."
|
say_yellow "Adding Terra repository for Noctalia Shell..."
|
||||||
|
|
||||||
# 1. Download the verified repo configuration directly from Fyra Labs' project source
|
sudo curl -fsSL https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo | \
|
||||||
curl -fsSL https://github.com/terrapkg/subatomic-repos/raw/main/terra.repo | sudo tee /etc/yum.repos.d/terra.repo > /dev/null
|
sudo tee /etc/yum.repos.d/terra.repo > /dev/null
|
||||||
|
|
||||||
# 2. Force DNF to clear its expired/broken cache metadata
|
say_yellow "Clearing DNF cache..."
|
||||||
say_yellow "Clearing DNF cache to prevent checksum mismatches..."
|
|
||||||
sudo dnf clean metadata
|
sudo dnf clean metadata
|
||||||
|
|
||||||
# 3. Securely import the repository GPG key into the system keyring hands-free
|
say_yellow "Refreshing repositories..."
|
||||||
say_yellow "Importing Terra repository signing keys..."
|
sudo dnf makecache --refresh
|
||||||
sudo dnf -y --refresh check-update || true
|
|
||||||
else
|
else
|
||||||
say_gray "Terra repository already configured."
|
say_gray "Terra repository already configured."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user