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 Fri, Dec 10, 2004 at 08:39:40AM -0800, Hal Wine wrote:
> 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...  
> 
> Not quite true -- it's keyed by name-version-release. It's easy to have 
> multiple versions of a package installed
> 

Yes, 'tis true.

> 
> > 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's version of the hard-coded pathnames in a program.

-- 

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