2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
This error means that there is no ffmpeg package in the default repository of your CentOS system. The default repository of CentOS usually does not include ffmpeg because of some licensing issues. However, you can install ffmpeg by adding a third-party repository.
Using EPEL and RPM Fusion repositories
# 安装 EPEL 仓库
sudo yum install epel-release
# 安装 RPM Fusion 仓库
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
# 更新包列表
sudo yum update
# 安装 ffmpeg
sudo yum install ffmpeg ffmpeg-devel
#上面安装完成没有完整安装,按照提醒运行 才完整安装完成
yum load-transaction /tmp/yum_save_tx.2024-07-11.00-07.DqO5NY.yumtx
mistake:
1) There may be no package for direct installation:
sudo yum install ffmpeg
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: mirrors.aliyun.com
epel: epel.01link.hk
extras: mirrors.ustc.edu.cn
updates: mirrors.aliyun.com
No package ffmpeg available.
Error: Nothing to do
(base) [root@localhost ~]# yum search ffmpeg
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: mirrors.aliyun.com
epel: epel.01link.hk
extras: mirrors.ustc.edu.cn
updates: mirrors.aliyun.com
====================================== N/S matched: ffmpeg =======================================
nv-codec-headers.noarch : FFmpeg version of Nvidia Codec SDK headers
Name and summary matches only, use “search all” for everything.