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 8.6k times
2 Answers
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
-
6The `vh` arguments are optional here. Only `-U` (or `--upgrade`) and `--oldpackage` are necessary. – Dave Mooney Jul 18 '14 at 19:47
-
2`rpm -U --force [filename]` also allows downgrades – Sasha Sep 08 '15 at 17:57
-
2For kernels `rpm -i --force
` works (since you want to keep multiple versions) – Gert van den Berg Feb 09 '18 at 08:01
16
You can also try yum downgrade packagename
, depending on the version of yum on your system.
ewwhite
- 194,921
- 91
- 434
- 799
-
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
-
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