Fetch a variable value from the target server in RPM

0

I want to read a variable value from the target server in the %install script. When I try to package the script, it searches the file where I am packaging and fails to find it. Is there any option to read the files on target server without such failures.

explorer

Posted 2011-10-20T08:05:08.780

Reputation: 15

Answers

1

Actions that need to be performed on the target machine instead of the build machine should be done in the %pre or %post scriplets, depending on whether they should be performed before or after installation.

For more information on these scriptlets, see this section of Maximum RPM.

Patches

Posted 2011-10-20T08:05:08.780

Reputation: 14 078