I executed the following on xyz-3.0.rpm: $ rpm -qi --scripts ~/xyz-3.0.rpm > list

Now here's what list showed: $ cat list

postinstall scriptlet (/bin/sh): 
rm /opt/xyz/config/appkey.cfg
/opt/xyz/bin/setup

Now I see that the setup script was not added properly, and options are missing. It should have been called with a -i argument.

To fix this, my hunch was to go and search the .spec file which generates this rpm but within the spec file I did not see any setup script being called.

I believe I am looking into the right spec file but I don't see the setup script being called.

Is there a way I can extract the spec file from xyz-3.0.rpm? Or maybe modify the specfile to have setup run with -i argument?

link|improve this question
Is there an error that you're seeing? How do you know the postinstall script is missing? – Andrew M. Jan 30 at 21:12
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.