I'm new to creating RPMs.
I have put together a Solaris pkgstream format PKG before and base my
question(s) on that experience.
Under the pkgstream format, you have a checkinstall script that runs
as nobody. If it fails [non-zero exit] the package will not be
installed. If the preinstall script for a solaris pkg fails with non-
zero exit status, the package will be registered with the host's
package database.
Three Qs:
1. Does RPM package have the same behavior -- non-zero exit in the
%pre or %post will cause the package to be registered with the rpm
package database?
2. when does the RPM package get registered as installed in relation
to the %pre or %post portions of install time scripts?
3. when does the RPM package get de-registered after successful [exit
0] of %preun or %postun?
I have red thru chapters 10 and 13 and the Appendix E of Maximum RPM,
but didn't find discussion of these install/erase-time scripts and
exit statii.
Thanks in advance,
Paul