I'm working on a bug in our rpm scriptlets which is probably originating from order in which our scriptlets are executed during package install/removal/upgrade. We are using yum on Redhat Enterprise.
Obviously I first need a good understanding of the order of the rpm scriptlets - and interestingly enough I have not found a good summary of this anywhere.
From what I gather this is the scriptlet ordering for upgrades:
%pretrans
of new package%pre
of new package prein
%post
of new package postin
%preun
of old package%postun
of old package%posttrans
of new packageHowever it doesn't list the scriptlet orderings for installing a new package not previously on the system (i.e. not an upgrade) and for removing one? From the above ordering I am able to guess how these orderings might look, but I'd like to get some educated opinion on this as well...
Package order for installing a single package for the first time:
%pretrans
of new package%pre
of new package%post
of new package%posttrans
of new packagePackage order for removing a single package:
%preun
of old package%postun
of old package