remove an installed rpm during rpm -i
Greg_Swift at aotx.uscourts.gov
Greg_Swift at aotx.uscourts.gov
Tue Nov 25 14:10:18 UTC 2008
> > Did you try to use Obsolete tag ?
> >
> a couple of things about the whole thread
>
> 1. obsolete does not work when you're rpm -i'ing pkgs. Only rpm -U
>
> 2. modifying the rpmdb from a %post or %pre is an unsafe idea and prone
to
> causing things to "end badly".
>
> It depends. If Jeff tell it is possible to have an "RPM bundle"
> (e.g. an rpm that install rpm(s) itself) then perhaps
> it is not so unsafe in first place. I personally have written un rpm
> that use yum for pull update.
I think the point is not that its not do able (I've a few internal RPMs
that are wrappers around closed-source install scripts that install rpms).
I believe that the point is that its not safe for your rpmdb. Even with
how clean we got it inside our spec's we occasionally end up with a corrupt
rpmdb.
Does it work to add both Conflict and Obsoletes so that if they do a `rpm
-i`, it will fail?
-greg
More information about the Rpm-list
mailing list