Re: remove an installed rpm during rpm -i

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

 



> > 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

_______________________________________________
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