Unfortunately rpm has nothing like a %postuntrans script, so there's no 'final' trigger for deleted packages after the %postun. The issue with a %postuntrans is that the script can't depend on anything,
http://bugzilla.opensuse.org/show_bug.cgi?id=966057
http://bugzilla.opensuse.org/show_bug.cgi?id=966057#c2
Fabian Vogt
What you can try is to execute the action immediately, if '%postun 0' (on final delete) was called (and no trigger has been placed by now). If the 1st arg is not 0 (upgrade), the newly installed packages %posttrans will do the job.
Not perfect, but maybe better than nothing.
Definitely better than nothing and also what I did for plymouth in my home repo. Issue is that this can cause mkinitrd to run multiple times during a transaction and it also looks like it's stuck somewhere as it stays at a certain percentage for quite a while, depending on how many kernels are in /boot. -- You are receiving this mail because: You are on the CC list for the bug.