#22 dnf5?
Opened 3 months ago by aleasto. Modified 3 months ago

I would like for this to be able to use dnf5 for faster queries. Either by default or maybe as an option.

The APIs are almost identical, with one exception that --queryformat doesn't automatically append a newline for each result, so --qf="%{SOURCERPM}" has to become --qf="%{SOURCERPM}\n", and i'm not sure that's intentional.


This is definitely worth doing - maybe if dnf5 is detected then use that by default, but offer the user the chance to override?

A bit busy with other things now, but if you or @ngompa or @daandemeyer want to send a PR that would be great!

I don't have an issue with that either, but I'm a bit busy at the moment.

The incompatibility between dnf4 and dnf5 repoquery is tracked here: https://github.com/rpm-software-management/dnf5/issues/709

maybe if dnf5 is detected then use that by default

I'm not a big fan of this because the interface is not identical, and it randomly switching depending on which dnf is installed would surprise the user and most importantly the scripts. Maybe just pick one default and allow switching manually

Login to comment on this ticket.

Metadata