Re: How can I find out the relocated path within rpm spec file

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

 



On Fri, 2006-03-17 at 12:21 +0000, shiva varma wrote:
> Hi.
>   If I use rpm -ivh --prefix /root/test
> package-name.rpm to install rpm package, is it
> possible to retrieve the prefix used (/root/test) from
> within the spec file. I require this because i need to
> do some cleanup in the %post section and I need to
> find out where the package is installed since it is a
> relocateable package.

http://rpm.org/max-rpm-snapshot/s1-rpm-inside-scripts.html#S2-RPM-INSIDE-ERASE-TIME-SCRIPTS

For each Prefix: in the package

$RPM_INSTALL_PREFIX0
...
$RPM_INSTALL_PREFIXn

Paul

_______________________________________________
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