50

On a machine without yum, I have version 3.2 of a package installed and I have downloaded version 2.4 manually, how do I install the older version?

David Tonhofer
  • 910
  • 1
  • 9
  • 29
Harley
  • 2,177
  • 6
  • 25
  • 29

2 Answers2

72

rpm -Uvh --oldpackage [filename]

--oldpackage allows you to install older versions, -U means "upgrade", but in this case it will just replace the other version. If you use -i instead of -U you will end up with both versions installed.

Harley
  • 2,177
  • 6
  • 25
  • 29
16

You can also try yum downgrade packagename, depending on the version of yum on your system.

ewwhite
  • 194,921
  • 91
  • 434
  • 799
  • 3
    You are correct, but OP specified "on a machine without yum" so either yum is broken or missing. – Criggie May 18 '17 at 05:08
  • 3
    [At the time of this answer](https://serverfault.com/posts/274310/revisions), "without 'yum'" was not part of the OP's question. Please see the edit history. – ewwhite Mar 23 '19 at 22:36
  • 1
    Best leave answer for completeness, and your comment clarifies why. – Criggie Mar 24 '19 at 01:46