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

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



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


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