fedora flatpak fix

This commit is contained in:
2026-04-23 09:51:45 +02:00
parent d29309757b
commit 8adaf087d6
+18 -6
View File
@@ -76,13 +76,28 @@ if ! command -v curl >/dev/null 2>&1; then
fi 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)..." say_cyan "Enabling RPM Fusion repositories for Fedora $(rpm -E %fedora)..."
# Define the version variable for readability # Define the version variable for readability
FEDORA_VER=$(rpm -E %fedora) 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 \ sudo dnf install -y \
"https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${FEDORA_VER}.noarch.rpm" \ "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" "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..." say_cyan "Enabling full Flathub support..."
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo 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 # Update the system
say_gray "Updating the system - sudo dnf update" say_gray "Updating the system"
echo echo
sudo dnf update sudo dnf update -y
########################## ##########################
# 2. Fix missing console font # 2. Fix missing console font