Page 1 of 1

Switch to DNF5

PostPosted: Oct 1st, '23, 18:24
by xerxes2
So I have had weird segfaults with DNF lately and both DNF and RPM are outdated so it'll probably be fixed when they get updated. But just when I was sniffing around I found out that there's a new DNF incoming that will eventually replace the old one. And cauldron already got it packaged. I've been testing it now for a few hours and it seems to work just fine. You just use it as "dnf5" and almost all the old switches will work. Good work of the package maintainer to package it so early.

Added it to the wiki page. https://wiki.mageia.org/en/Using_DNF#Next-generation

Re: Switch to DNF5

PostPosted: Oct 1st, '23, 21:49
by morgano
Thank you for adding :)

Re: Switch to DNF5

PostPosted: Oct 26th, '23, 20:22
by xerxes2
morgano wrote:Thank you for adding :)

And thank you for reworking the wiki page a bit. It looks much better now. Yeah so I've been running DNF5 now for a few weeks and it seems to work just fine. It's a lot faster than the old one and got multi-threaded downloads too. Not that speed is that important anymore really as cpus are extremely fast anyway now but it doesn't hurt either.

Re: Switch to DNF5

PostPosted: Jun 3rd, '25, 01:06
by zooplah
I haven't experienced problems with DNF4 but DNF5 definitely has some advantages (the creation of aliases is definitely more powerful in DNF5, but I've noticed that DNF5 doesn't take full advantage of TOML), as well as some things that are possible in DNF4 but produce errors in DNF5. I'm surprised that DNF5 isn't available in the Mageia 9 backports repo. I've built packages for Mageia 9 (it requires a few patches to get it to build, but nothing major; mostly just adding #include directives for headers that don't seem to be implicit in GCC 12) and have uploaded the source RPMs to COPR, so I suppose that anyone can easily test it out on Mageia 9, even if it's not in an official repo. I myself primarily use DNF4 but I do have the DNF5 packages I've built installed, mainly for testing purposes at this point (I know that Fedora has already completely switched over to DNF5, so it's probably possible to completely replace DNF4 with it at this point, but I haven't done so).