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