Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .