xsuchy / fedora-upgrade

Upgrade Fedora to next version using DNF upgrade without the need to reboot during the upgrade.
GNU General Public License v2.0
43 stars 16 forks source link

Prepare for DNF 5, don't depend on `dnf` #44

Closed evan-goode closed 1 year ago

evan-goode commented 1 year ago

(I'm filing issues with all the packages that currently depend on dnf.)

DNF 5 is a new package manager that will replace DNF 4 in Fedora 39+: Starting in Fedora 39, the dnf command will be provided by the dnf5 package rather than the dnf package, and dnf5 will obsolete dnf. Since fedora-upgrade currently depends on DNF 4, it should choose one of the following strategies to avoid breaking the Fedora upgrade:

At some point, this project should adopt DNF 5, but the immediate issue is removing the dependency on dnf. We are planning to replace DNF with DNF5 in Fedora Rawhide very soon, by 2023-06-01, and the fedora-upgrade package will break as long as it still depends on the dnf package.

For more information about the switch to DNF 5, see https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5.

xsuchy commented 1 year ago

I altered the requires so users do not broken deps. And built the new version in rawhide.

This tool mainly calls dnf distro-sync. I checked that dnf5 distro-sync seems to work too.

The main work will have to be done when F40 is branched because we will be upgrading from F39 to F40 using DNF5 for the first time.