-1

I have install sample.rpm in /opt. I want samplw2.rpm find the relocation path of sample.rpm ad install itself in same place. is there any command or macro in spec file which check it befor installation or not?

1 Answers1

0

I'm pretty sure this isn't possible; the file locations are fixed. The easiest solution would be to put them in a known location, and then set up a symlink in your %post, e.g. linking /opt/sample2 to /usr/local/sample2 where the latter is where the RPM puts the files.

Aaron D. Marasco
  • 6,506
  • 3
  • 26
  • 39