Is there any difference between `dnf distro-sync --allowerasing` and `dnf upgrade --allowerasing --allow-downgrade`

The title says it all.

Thanks

You should find the answer in Welcome to DNF5’s documentation! — dnf5 documentation
That’s a great resource when you are not sure how to do things with dnf.

2 Likes

For a normal user, there is quite a bit about installing and API at the start which needs to be skipped. For the relevant part you can also run the command

man dnf-distro-sync  
man dnf-upgrade

Which contains the same information.

The TL,DR: versionis: distro-sync upgrades and downgrades the packages so you end up with the same version as is available in the repository. The upgrade only upgrades to the latest version, but in doing so, on rare occasions, a downgrade may be required for some of the dependencies.

1 Like