Added RPM Fusion installation script

Script to install RPM Fusion on Fedora
This commit is contained in:
stormseal 2024-08-23 13:52:26 +02:00 committed by GitHub
parent 1417ed73b2
commit 81b53da48c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,26 @@
#!/bin/sh -e
. "$(dirname "$0")/../../common-script.sh"
# https://rpmfusion.org/Configuration
installRPMFusion() {
case $PACKAGER in
dnf)
if [[ ! -e "/etc/yum.repos.d/rpmfusion-free.repo" ]]; then
echo "Installing RPM Fusion..."
sudo "$PACKAGER" install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo "$PACKAGER" config-manager --enable fedora-cisco-openh264
echo "RPM Fusion installed"
else
echo "RPM Fusion already installed"
fi
;;
*)
echo "Unsupported distribution: $DTYPE"
;;
esac
}
checkEnv
installRPMFusion