DNF Module Requires DNF5?

Does the DNF module require DNF5?

When trying to build custom images based on centos stream 10, I get the following error:

[06:27:53 g.i/n/centos-testing:latest] => #43 0.093 ============================== Start 'dnf' Module ==============================
[06:27:54 g.i/n/centos-testing:latest] => #43 0.127 Error:   × ERROR: Main dependency 'dnf5' is not installed. Install 'dnf5' before
[06:27:54 g.i/n/centos-testing:latest] => #43 0.128   │ using this module to solve this error.
[06:27:54 g.i/n/centos-testing:latest] => #43 0.128      ╭─[/tmp/modules/dnf/dnf.nu:760:33]
[06:27:54 g.i/n/centos-testing:latest] => #43 0.128  759 │     | default [] replace
[06:27:54 g.i/n/centos-testing:latest] => #43 0.128  760 │   let has_dnf5 = ^rpm -q dnf5 | complete
[06:27:54 g.i/n/centos-testing:latest] => #43 0.128      ·                                 ────┬───
[06:27:54 g.i/n/centos-testing:latest] => #43 0.128      ·                                     ╰── Checks for dnf5
[06:27:54 g.i/n/centos-testing:latest] => #43 0.128  761 │   let should_cleanup = $config.repos
[06:27:54 g.i/n/centos-testing:latest] => #43 0.129      ╰────
[06:27:54 g.i/n/centos-testing:latest] => #43 0.129 
[06:27:54 g.i/n/centos-testing:latest] => #43 0.129 
[06:27:54 g.i/n/centos-testing:latest] => #43 0.132 ============================= Failed 'dnf' Module =============================


I get that I could base my image off of centos 9 or fedora, and add the COPR to my containerfile, but unfortunately I can't do that with centos 10 or almalinux 10 either.

I checked out the Bluefin:LTS and GDX repo, over there it looks like they're just using regular DNF commands in their build scripts.

Let me know how I should be doing this, thank you!!
Solution
Yes, this module will require dnf5 cause we use specific features of that version in the module
Was this page helpful?