I want to install an older version of package <x>, and when I use dnf it only shows the current version of the package <x>.

Is there any way to install an older versions using dnf ?

3 Answers 3


You can install using a specific name-version as described in the man page:

dnf install tito-0.5.6-1.fc22

Install package with specific version. If the package is already installed it will automatically try to downgrade or upgrade to specific version.

To view all versions of a package in your enabled repositories, use:

dnf --showduplicates list <package>

Yes. You can install older version of package using dnf downgrade package-name[-version] if you already installed new one. But the old version still needs to be available on mirrors.

If the package is not available from mirrors, you can always download it manually from koji and then use dnf to downgrade such as dnf downgrade path/to/downloaded.file.rpm. But with this technique, you might need to resolve dependencies on your own.

  • Also keep in mind, that installing packages manually has the disadvantage of not getting any updates (say security fixes) for that package, provided there are any.
    – Thorian93
    Oct 30, 2019 at 10:25
  • This is not installing packages manually, but just manually downloading them. Anytime you run dnf update you will get the updates including security fixes.
    – Jakuje
    Oct 30, 2019 at 11:49
  • Are you sure about that? I am genuinely curious as I always thought installing an .rpm directly leaves me responsible for installing updated versions of it. Unless the .rpm itself installs its own repository. Can you give a reference for your statement?
    – Thorian93
    Oct 30, 2019 at 14:26
  • 2
    It works that way if you install either a package that is not packaged in your system (from somewhere else) or if you install some newer version than is provided by your system. This particular use case installs an older RPM, from koji (official build system), which means it is most probably included in Fedora and older version so any future update updates it.
    – Jakuje
    Oct 30, 2019 at 14:39
  • 1
    You can also install older version of a package from koji with dnf install path/to/downloaded.file.rpm.
    – ks1322
    Jan 9, 2020 at 15:06

You can perform a simple downgrade by:

sudo dnf downgrade <package-name>

For instance:

sudo dnf downgrade podman

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.