Is this a critical security issue?
Describe the Bug
Error: Execution of '/usr/bin/dnf -y --best --allowerasing install ffmpeg' returned 2: Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
The argument is available for commands: builddep, group upgrade, group install, swap, system-upgrade download, reinstall, downgrade, debuginfo-install, distro-sync, upgrade, install. (It has to be placed after the command.)
Error: /Stage[main]/Desktop_fedora::Common_packages/Package[ffmpeg]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -y --best --allowerasing install ffmpeg' returned 2: Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
After a bit of testing I noticed:
# /usr/bin/dnf --allowerasing install ffmpeg
Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
The argument is available for commands: builddep, group upgrade, group install, swap, system-upgrade download, reinstall, downgrade, debuginfo-install, distro-sync, upgrade, install. (It has to be placed after the command.)
# /usr/bin/dnf install --allowerasing ffmpeg
Updating and loading repositories:
Repositories loaded.
Package "ffmpeg-7.1.1-3.fc41.x86_64" is already installed.
So the ordering of the arguments is wrong:
The recipe that triggered the error is:
package{ ['ffmpeg', 'libavcodec-freeworld']:
ensure => installed,
install_options => ['--best', '--allowerasing'],
}
I'll have a look at this problem, perhaps I can come up with a PR.
Environment
Version openvox-agent-8.14.0
Platform Fedora 41