[Rpm-maint] upgrade process

Michael Schroeder mls at suse.de
Fri Mar 20 11:21:47 UTC 2009


On Thu, Mar 19, 2009 at 05:49:21PM +0100, Stanislav Brabec wrote:
> Package smartsuite was renamed to smartmontools, but the
> script /etc/init.d/smartd remains without change. Start on installation,
> restart (once) on update, stop on removal.
> 
> It's easy top do with package-name based scripts.

That's a straightforward use case for
%postinstall/%postupdate/%preuninstall

> 2)
> [...]
> %postnew /usr/bin/gst-register
> /usr/bin/gst-register
> 
> %postup /usr/bin/gst-register
> /usr/bin/gst-register
> 
> %postrm /usr/bin/gst-register
> rm -r /var/cache/gstreamer-0.8

No no, you shouldn't do that with scriptlets at all, but with
a virtual package trigger.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}


More information about the Rpm-maint mailing list