Fedora --install-distro-packages special treatment for ffmpeg packages
These packages listed in fedora.ini:
libavcodec-free-devel
libavfilter-free-devel
libavformat-free-devel
libavutil-free-devel
libswscale-free-devel
Can be replaced with ffmpeg-free-devel (which provides them).
Also, ffmpeg-free-devel
will conflict if someone has the version of ffmpeg
from the RPMFusion repository.
So the logic could be the following: attempt to install ffmpeg-devel
. If that package isn't available, then instead install ffmpeg-free-devel
.
A simple query to the package manager should be sufficient to see if it is available or not:
❯ dnf search ffmpeg-devel
Last metadata expiration check: 1:12:28 ago on Fri 29 Dec 2023 01:04:48 PM EST.
============================================================================ Name Exactly Matched: ffmpeg-devel =============================================================================
ffmpeg-devel.x86_64 : Development package for ffmpeg
ffmpeg-devel.i686 : Development package for ffmpeg
This would have no results if that repo is not enabled.