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?
Asked
Active
Viewed 9.3k times
2 Answers
74
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,227
16
You can also try yum downgrade packagename, depending on the version of yum on your system.
ewwhite
- 198,150
-
3You are correct, but OP specified "on a machine without yum" so either yum is broken or missing. – Criggie May 18 '17 at 05:08
-
3At the time of this answer, "without 'yum'" was not part of the OP's question. Please see the edit history. – ewwhite Mar 23 '19 at 22:36
-
1
vharguments are optional here. Only-U(or--upgrade) and--oldpackageare necessary. – Dave Mooney Jul 18 '14 at 19:47rpm -U --force [filename]also allows downgrades – Sasha Sep 08 '15 at 17:57rpm -i --force <package url / filename>works (since you want to keep multiple versions) – Gert van den Berg Feb 09 '18 at 08:01