Kind information about dnf downgrade

Hi everyone,

it is not clear to me the use of the indicated command and the use cases. I think that it is easier to uninstall a package and install a lower version if necessary in case of a bug.


dnf downgrade <package> can be quite helpful after updating <package> to a buggy version. The command replaces the installed version with the next lower one in the repository or cache. Maintaining a cache (i.e. at /var/cache/dnf/) or local repository, gives you opportunity to prove that the replaced version is faulty indeed. You can then file a bug report against the replaced version.

A case:
sudo dnf update gimp

After the update, you discover a strange behaviour in gimpsomething that is not working as expected. To be sure that it is associated with the update, perform a downgrade:

sudo dnf downgrade gimp

This assumes that you still have the old version of the package in your cache (or in a local repository containing older packages). if after the downgrade, the problem disappears, then there is a regression in the newer package. You can file a bug report against the newer one and cite your experience so that the maintainers/developers may replicate the issue.


I thank you very much for your clear explanation

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.