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 yu
If you are installing two different packages at once (e.g. primary
, secondary
), where one depends on the other (secondary
requires primary
), the order is:
%pretrans
of primary
%pretrans
of secondary
%pre
of primary
primary
%post
of primary
%pre
of secondary
secondary
%post
of secondary
%posttrans
of primary
%posttrans
of secondary
When removing these packages at once, the order is:
%preun
of secondary
secondary
%postun
of secondary
%preun
of primary
primary
$postun
of primary
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 packageYour educated guess is correct - only the steps that are relevant.