No Spam wrote:
--- Robert Lehr <bozzio@xxxxxxxxxxxxx> wrote:
On Wed, Dec 08, 2004 at 05:15:17PM -0800, No Spam wrote: 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.
Not quite true -- it's keyed by name-version-release. It's easy to have multiple versions of a package installed
BTW, what command would you envision using to remove a specific instance of your package?
? rpm -e package
rpm -e package-3.0-1
Anyway, this is all speculating as to what I might want the behavior to be, but it appears that that's just not what the behavior is.
So, the following should work (untested): 1. go grab rpmrebuild from rpmrebuild.sf.net 2. write a wrapper script for your installations that: - for each install location: - used rpmrebuild to rebuild the "real" rpm - use the filter option to allow you to mangle the spec file on the fly - append something to the release number representing the --prefix e.g. pkg-1.0-3_opt_foo1 - now install the freshly repackaged rpms using '-ivh'
RPM will think they are all different packages, and be happy. So will you.
--Hal
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list