https://blue-build.org/ logo
DNF Module Requires DNF5?
# questions
n
Does the DNF module require DNF5? When trying to build custom images based on centos stream 10, I get the following error:
Copy code
[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!!
a
message has been deleted
g
Yes, this module will require
dnf5
cause we use specific features of that version in the module
n
Okay, in that event I'm going to have to play around a bit. Right now there's no proper way of installing
dnf5
on centos 10, hopefully it gets added to EPEL or a COPR for that
x
AFAIK
dnf
is just a wrapper for
rpm-ostree
in most images like these, and
dnf5
is the only separate (and better) codebase
2 Views