mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-27 05:49:45 +00:00
97576d2087
* First commit * Small enhancements * Update configure-dnf.sh * update * Update configure-dnf.sh * update * Update multimedia-codecs.sh * Update multimedia-codecs.sh
26 lines
964 B
Bash
26 lines
964 B
Bash
#!/bin/sh -e
|
|
|
|
. ../../common-script.sh
|
|
|
|
multimedia() {
|
|
case $PACKAGER in
|
|
dnf)
|
|
if [ -e /etc/yum.repos.d/rpmfusion-free.repo ] && [ -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]; then
|
|
printf "%b\n" "${YELLOW}Installing Multimedia Codecs...${RC}"
|
|
$ESCALATION_TOOL "$PACKAGER" swap ffmpeg-free ffmpeg --allowerasing -y
|
|
$ESCALATION_TOOL "$PACKAGER" update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin -y
|
|
$ESCALATION_TOOL "$PACKAGER" update @sound-and-video -y
|
|
printf "%b\n" "${GREEN}Multimedia Codecs Installed...${RC}"
|
|
else
|
|
printf "%b\n" "${RED}RPM Fusion repositories not found. Please set up RPM Fusion first!${RC}"
|
|
fi
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
multimedia |