Upgrading breaks files

Marco listaddr at gmail.com
Mon Oct 24 16:18:42 UTC 2011


2011/10/24 devzero2000 <pinto.elia at gmail.com>:

> The precise order in update of the scriptlets is
>
> Run %pre of new package
>
> Install new files
>
> Run %post of new package
>
> Run %preun of old package
>
> Delete any old files not overwritten by newer ones
>
> Run %postun of old package
>
> And postun is executed only on update (not install). The scriptlets  take an
> argument, the number of package that remains after the script complete: so
> you can know if you are in install or update for example and base your
> decision on this. Look at this for example
> http://fedoraproject.org/wiki/Packaging:ScriptletSnippets

Yes, that's precisely my problem. The %postun of the old package
undoes what the %post of the new package does earlier. Any way around
that?


More information about the Rpm-list mailing list