Rocky Linux 9 安装 FFmpeg
- Linux
- 2024-07-08
- 549热度
- 0评论
1、安装 EPEL/EPEL Next Repository
安装 epel-release-latest 包:
[foc@rocky9 ~]$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
然后安装 epel-next-release-latest 包:
[foc@rocky9 ~]$ sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
2、启用 EPEL/EPEL Next 和 CRP 存储库
首先,启用 EPEL、EPEL-Next 和 CRB 存储库:
[foc@rocky9 ~]$ sudo dnf config-manager --enable epel,epel-next,crb
3、安装 RPM Fusion 存储库
我们将从 RPM Fusion 存储库安装 ffmpeg 及其其他依赖项。首先安装 rpmfusion-free-release-9 包:
[foc@rocky9 ~]$ sudo dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
然后安装 rpmfusion-nonfree-release-9 包:
[foc@rocky9 ~]$ sudo dnf install -y https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-9.noarch.rpm
在最后一种情况下,repolist 应如下所示:
[foc@rocky9 ~]$ dnf repolist
repo id repo name
appstream Rocky Linux 9 - AppStream
baseos Rocky Linux 9 - BaseOS
crb Rocky Linux 9 - CRB
epel Extra Packages for Enterprise Linux 9 - x86_64
epel-next Extra Packages for Enterprise Linux 9 - Next - x86_64
extras Rocky Linux 9 - Extras
rpmfusion-free-updates RPM Fusion for EL 9 - Free - Updates
rpmfusion-nonfree-updates RPM Fusion for EL 9 - Nonfree - Updates
并开始FFmpeg包安装:
[foc@rocky9 ~]$ sudo dnf -y install ffmpeg
通过从我们之前添加的存储库下载软件包来完成安装。我们查看安装好的ffmpeg包:
[foc@rocky9 ~]$ rpm -qa ffmpeg
ffmpeg-5.1.1-2.el9.x86_64