RPM runs %post, yum does not ...
Klaus Steden
klaus.steden at thomson.net
Fri Nov 4 15:12:42 UTC 2005
> > Call off the dogs.
> >
> > It seems that scriptlets run in a confusing order ...
> >
> > %pre (new package)
> > %post (new package)
> > %preun (old package)
> > %postun (old package)
> >
> > ... which meant that my stupid RPMs were stepping on each other.
> >
> > It's times like these that I miss vendor documentation.
>
> You need to apply $1 logic in your scriptlets.
>
> In %post, if $1 = 1, then create the symlink. If $1 -gt 1, only create
> the symlink if it doesn't exist (i.e. version changes). In %preun, if
> $1 = 1, remove your symlink. Something like that.
>
Yeah, that's what I ended up doing. Seems okay now with the $1 stubs ... but a
whole pile of my RPMs now need rebuilding and reinstalling. Bah.
Thanks for the tip, Brian
Klaus
More information about the Kickstart-list
mailing list