Insert a %post into existing rpm?

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

 



Hi all,

I have a binary commercial rpm (Intel Compiler) that I would like to put 
a %post script into.

The reason is that the rpm currently comes with an install script that 
installs the (relocatable) rpm and then does some trivial modifications to 
some of the files that got installed.  (It effectively replaces some tokens 
with RPM_INSTALL_PREFIX in a few files.).  I'd like to stick those changes 
straight into a %post script and repackage the rpm to simplify new installs 
and upgrades.

Is this possible/easy to do with rpm?  If not then I could try converting to 
deb with alien, putting the post script in and converting back to rpm, but I 
don't know if that would wreck RPM_INSTALL_PREFIX, plus it's not elegant.

Thanks,
Daniel.


---------------------------------------------------------------------
Dr. Daniel Grimwood                   Room : 303.201
Nanochemistry Research Institute      Email: reaper@xxxxxxxx
Curtin University of Technology       Phone: +61 8 9266 3780
P.O. Box U 1987, Perth                Phone: +61 8 6436 8920
Western Australia, 6845 Australia     Fax  : +61 8 9266 4699

_______________________________________________
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