Skip to content

Module doesn't work when system uses dnf5. #360

@ekranium

Description

@ekranium

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions