[Yum-devel] remove dependency ordering problem

seth vidal skvidal at fedoraproject.org
Tue Apr 1 20:16:19 UTC 2008


On Tue, 2008-04-01 at 15:39 -0400, Jesse Keating wrote:
> On Tue, 2008-04-01 at 11:50 -0600, Robert Mecklenburg wrote:
> > However when we perform a "yum remove pkga" the order of removal is
> > not pkgc, pkgb, pkga.  Of course, our situation is more complex with
> > more packages and at least one more "layer" of requires.  In our case,
> > pkga is actually removed before some of the other packages.  Since
> > pkga contains files needed to remove our other packages (such as
> > scripts and shared libraries), the other package removes fail.
> 
> Are you making proper use of Requires(post): ?
> 
> If I understand it correctly, removal ordering and install ordering is
> all inside rpm itself, not yum.  Yum just hands rpm a transaction list,
> rpm figures out what order to do it in.  You have to give rpm hints if
> you need things for %pre and %post so that it can get the ordering
> correct.
> 

and in various versions of rpm erasure ordering was either 'odd' or 'not
working'.

-sv





More information about the Yum-devel mailing list