Re: Upgrading breaks files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/10/24 devzero2000 <pinto.elia@xxxxxxxxx>:

> 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?
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux