0
votes
1answer
106 views

Where are RPM postinstall scripts located?

I have found a bug in an RPM that I have been provided. rpm -qp --scripts foo.rpm > /tmp/badscript cat /tmp/badscript postinstall scriptlet (using /bin/sh): ... if [ 'some bug' == true ].... I ...
2
votes
2answers
422 views

Turn a bash and php script into a distributable rpm

I'm semi unix knowledgeable and I want to be able to call down an rpm from my server, run it with something like rpm -i , and have access to the script anywhere. The script is a combination awk and ...
0
votes
1answer
807 views

Shell script to merge properties file (sed/awk/comm/diff) for rpm upgrade

We're developing a java product that's installed via rpm. We have a set of config files that a user can edit. These config files are java properties files in the form: com.acme.pkg1.setting=something ...
3
votes
3answers
365 views

How to “rpm -i” a package only when an older version does not exist?

I wish to install some RPM packages from a shell script. I want to ensure that each package is indeed installed, but I do not want to update a package that would already have an older version ...