Re: install same pkg multiple times with different --prefix on same host?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 08, 2004 at 05:15:17PM -0800, No Spam wrote:
> 
> is there any solution to this?  does rpm have a means by which it can be aware
> of two (non-conflicting) installations of the same package (possibly different
> versions, which is the reason i'm exploring this) on the same machine?  i'm
> guessing the answer is probably no.
> 

I am pretty sure that RPM cannot do this.  RPM packages are key
strictly by the name of the package.  You are asking for packages to
be additionally identified by additional parameters, the 'prefix' in
your case.  Given the RPM's other foibles, it probably cannot do this
either.

BTW, what command would you envision using to remove a specific
instance of your package?

    ? rpm -e package

    ? rpm -e --prefix=/opt/foo2 package

> 
> perhaps through the use of --dbpath?  but it seems like a bit of a hack to
> have to create an entirely separate rpm database just for each duplicate
> package.
> 

Yes, it would be.  Dependency resolution would also be lost unless the
additional databases were populated with data from the primary
database.  Secondary or heirarchical instances of the RPM database
would fix that problem, though.

-- 

Robert Lehr
(concatenate 'string "bozzio" "@" "the-lehrs" ".com")

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux