On Mon, 2004-12-20 at 16:11 -0800, EXT-Fulwiler, Robert L wrote: > Howdy All, > > Here is my scenario: We have three different test environments setup on > one server. When an RPM package is installed in the different test > environments, it is done via directory paths. For example, the > installation paths may be /foo/tst1, /foo/tst2, etc. Is it possible to > pass an arbitrary variable to RPM during the install (-ivh) step such > that the pre and post scripts can use that info to decide which path is > the appropriate install path? I'll repeat myself a little : https://www.redhat.com/mailman/private/rpm-list/2004-March/msg00041.html Using /opt/mydirectory is doable using relocation. You need to use Prefix (note this *is not* %_prefix) as the hint to tell rpm it is locatable and ensure no path layout dependancy. http://www.rpm.org/max-rpm-snapshot/ch-rpm-reloc.html has some docs. RPM_INSTALL_PREFIX If you are using --prefix to relocate then there is RPM_INSTALL_PREFIXn (where n = 0 .. no. or prefix invocations). Paul _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list