From 8adaf087d6715f1e98b4d691a803517776efad55 Mon Sep 17 00:00:00 2001 From: "yuri.kuit" Date: Thu, 23 Apr 2026 09:51:45 +0200 Subject: [PATCH] fedora flatpak fix --- v2/fedora.sh | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/v2/fedora.sh b/v2/fedora.sh index e0789e2..5d30357 100755 --- a/v2/fedora.sh +++ b/v2/fedora.sh @@ -76,13 +76,28 @@ if ! command -v curl >/dev/null 2>&1; then fi ########################## -# 1. Add repositories if missing and update system +# 1. Update and Enable Repos ########################## say_cyan "Enabling RPM Fusion repositories for Fedora $(rpm -E %fedora)..." # Define the version variable for readability FEDORA_VER=$(rpm -E %fedora) + + +say_yellow "Checking for updates and sources..." +sudo dnf check-update || true + +# Check if flatpak is installed, if not, install it +if ! command -v flatpak &> /dev/null; then + say_yellow "Flatpak not found. Installing..." + sudo dnf install -y flatpak +fi + +say_cyan "Enabling Flathub..." +# Using --if-not-exists is good practice to prevent errors on re-runs +sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + sudo dnf install -y \ "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${FEDORA_VER}.noarch.rpm" \ "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${FEDORA_VER}.noarch.rpm" @@ -90,13 +105,10 @@ sudo dnf install -y \ say_cyan "Enabling full Flathub support..." flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo -say_yellow "Checking for updates and sources..." -sudo dnf check-update || true - # Update the system -say_gray "Updating the system - sudo dnf update" +say_gray "Updating the system" echo -sudo dnf update +sudo dnf update -y ########################## # 2. Fix missing console font