-
-
Notifications
You must be signed in to change notification settings - Fork 99
Description
Introduced in Fedora 41, but this will problem will most likely propagate as other distros start using dnf5. The problem is as follows:
$ dnf -d 0 install foobar
Unknown argument "-d" for command "dnf5". Add "--help" for more information about the arguments.
The effect is that instead of installing the package, puppet just writes out a warning and dnf fails.
My suggested solution is to rewrite the module to check version before running the dnf command and adjust parameters appropriately, dnf -qq will have a similar effect as dnf -d 0
Another solution could be to check OS version and execute dnf accordingly, but this means keeping keeping the module constantly updated as more and more distros moves over to dnf5.
fedora42: $ dnf --version
dnf5 version 5.2.15.0
rhel10: $ dnf --version
4.20.0
Is anyone working on this, or should I dig into it?