・EPELリポジトリのPowerTools(CRB)を有効にします

[root@alma]# dnf -y config-manager --set-enabled crb

・RPM Fusionリポジトリを追加します

[root@alma]# dnf -y install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm
[root@alma]# dnf -y install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm

・FFmpegをインストールします

[root@alma]# dnf -y install --enablerepo=epel ffmpeg ffmpeg-devel

・インストールされたバージョンを確認します

[root@alma]# rpm -qi ffmpeg

Name: ffmpeg
Version: 5.1.6
Release: 2.el9
Architecture: x86_64
Install Date: 2025年06月01日 18時39分16秒
Group: Unspecified
Size: 2295814
License: GPLv3+
Signature: RSA/SHA256, 2024年11月23日 20時00分55秒, Key ID 7403ea33296458f3
Source RPM: ffmpeg-5.1.6-2.el9.src.rpm
Build Date: 2024年11月21日 13時49分17秒
Build Host: buildvm-07.virt.rpmfusion.net
Packager: RPM Fusion
Vendor: RPM Fusion
URL: https://ffmpeg.org/
Bug URL: https://bugz.rpmfusion.org/ffmpeg
Summary: Digital VCR and streaming server
Description :
FFmpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.

インストールされていてバージョンが 5.1.6 だと言うことが確認できました

・ CRB の無効について

もし今後、dnf でのインストール時に「このシステムは、エンタイトルメントサーバーに登録されていません。subscription-manager で登録できます。」とエラーメッセージが表示されたら subscription-manager.conf を無効化します

これにより subscription-manager が無効化され、該当のメッセージが表示されなくなります

[root@alma]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum/pluginconf.d/subscription-manager.conf