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?
2 Answers
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.
-
6The
vh
arguments are optional here. Only-U
(or--upgrade
) and--oldpackage
are necessary. Jul 18, 2014 at 19:47 -
3
-
2For kernels
rpm -i --force <package url / filename>
works (since you want to keep multiple versions) Feb 9, 2018 at 8:01
You can also try yum downgrade packagename
, depending on the version of yum on your system.
-
3You are correct, but OP specified "on a machine without yum" so either yum is broken or missing.– CriggieMay 18, 2017 at 5:08
-
3At the time of this answer, "without 'yum'" was not part of the OP's question. Please see the edit history.– ewwhiteMar 23, 2019 at 22:36
-
1