安装EPEL Release,因为安装需要使用其他的repo源,所以需要EPEL支持
yum install -y epel-release
sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
yum repolist
安装Nux-Dextop源
sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum repolist
yum安装ffmpeg
yum install -y ffmpeg
ffmpeg -version
为了方便大家实现一键安装,大家可以制作一个bash文件,一键运行即可,大家可以在/tmp目录下
cd /tmp
vi install-ffmpeg.sh
然后把下面的代码都复制到这个文件中
然后设定文件可执行:
chmod +x install-ffmpeg.sh
然后执行
./install-ffmpeg.sh
############the codes
yum install -y vim
yum install -y epel-release
sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
yum repolist
sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum repolist
yum update -y
yum install -y ffmpeg
ffmpeg -version
#########end of the code
网友评论