Tips:最近安装一个名为ffmpeg的包,但是epel和ali的源都没有这个包。所以

就google了一下,但是网上提供的方案在我实际环境中并不好使,贴在后面了

个人好使

  • code
1

常规不好使

  • yum源代码添加如下

yum install -y automake autoconf libtool gcc gcc-c++

1
2
3
4
5
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1

yum install -y ffmpeg ffmpeg-devel

  • 好使的
1
2
3
4
5
6
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum repolist
yum install -y ffmpeg
ffmpeg -version