[Yum] Can Yum install multiple versions of the same RPM?

Michael E Brown Michael_E_Brown at dell.com
Wed May 2 18:31:38 UTC 2007


On Wed, May 02, 2007 at 02:26:05PM -0400, John Rouillard wrote:
> Sadly it doesn't support most depot models where multiple versions of
> the same software are available on the host at the same time. You can
> verify from the rpm that it is being installed is you use rpm but not
> yum.

Fundamentally, if you want to install multiple versions of a single
package, the best way to do this is via:
    packageV1-1.0-i386.rpm
    packageV2-2.0-i386.rpm
    packageV3-2.0-i386.rpm

rather than:
    package-1.0-i386.rpm
    package-2.0-i386.rpm
    package-3.0-i386.rpm

Especially if you want to do this on a regular basis. This allows very
easy co-existence of the packages without resorting to any special
hacks.

Another model that works (similar to gcc/libstc++):
    package-3.0-i386.rpm  <-- latest
    compat-package_v1-1.0-i386.rpm
    compat-package_v2-2.0-i386.rpm

This allows people that always want latest to automatically get upgraded
to latest and greatest, while people can co-install all of the older
versions easily.
--
Michael



More information about the Yum mailing list