fedora flatpak fix
This commit is contained in:
+18
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user