forked from rapyd-cloud/rapyd-vz-support
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrapyd-ffmpeg-installer.sh
31 lines (20 loc) · 958 Bytes
/
rapyd-ffmpeg-installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# must be run as root - su user
######################################################################################################################
# ffmpeg
if grep -a 'AlmaLinux' /etc/system-release ; then
# work out what we need to do here for AlmaLinux
cd ~
echo "Installing ffmpeg for AlamLinux"
sudo dnf install epel-release -y
sudo dnf config-manager --set-enabled crb -y
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm -y
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm -y
sudo dnf install ffmpeg ffmpeg-devel -y
else
cd ~
echo "Installing ffmpeg for Centos"
sudo yum install epel-release -y
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm -y
sudo yum install ffmpeg ffmpeg-devel -y
fi