Update-minimal option to dnf

Problem:
unable to apply errata on Fedora 41 clients

Expected outcome:
errata apply

Foreman and Proxy versions:
foreman-3.12.0-1.el8.noarch - katello-4.14.0-1.el8.noarch

Foreman and Proxy plugin versions:
foreman-proxy-3.12.0-1.el8.noarch

Distribution and version:
Rocky 8.10

Other relevant data:
When running the task:

1:
Unknown argument "update-minimal" for command "dnf5". Add "--help" for more information about the arguments.
   2:
It could be a command provided by a plugin, try: dnf5 install 'dnf5-command(update-minimal)'
   3:
Package action failed, exiting...
   4:
Exit status: 0

Is there a quick-and-dirty way to keep the “update-minimal” from being passed to dnf?

The “quick-and-dirty” way (and probably the only fast solution I can offer) is to patch the template yourself.
Fedora 41 switched to DNF5, which for whatever reason expects to get update --minimal instead of update-minimal (from what a quick google search and a look at dnf5 docs showed me).

This action gets passed to the job templates in Katello, so if you want to contribute adjustments are welcome.

1 Like

Thanks, I’ve been by-passing the problem by just updating all packages… I’d think that eventually DNF5 will make it to all the RedHat offerings, so I’m thinking that a check for Fedora > 40 and perhaps os_major > 10 (haven’t looked at 10 yet, so maybe > 9) might be the way to patch the template. Digging in… :wink:

Yeah, my understanding is that DNF5 will be in EL11. We haven’t really done anything yet to make Katello compatible, so at least it’s good to know what’s broken. :slight_smile:

I’m tempted to implement the necessary change, just scratching my head about the necessity of detecting dnf5 via the OS version, in Ansible you always have the package managers version in the facts which makes it very easy to detect.

Another change I saw when looking at the difference is, it’s not --advisory=adv-01 --advisory=adv-02 anymore but --advisories=adv-01,adv-02

1 Like

Btw as a side note for dnf-5, the subscription-manager plugin currently doesn’t exist for it, means updating repos and profile uploads always have to be run separately.
Or as dnf-4 is still installed, using this for everything.

1 Like