recover from broken yum transaction

Seth Vidal skvidal at fedoraproject.org
Mon Sep 22 04:42:48 UTC 2008


On Mon, 2008-09-22 at 00:31 -0400, Michael Stone wrote:
> On Mon, Sep 22, 2008 at 12:07:45AM -0400, Seth Vidal wrote:
> >So, at no time is the system without at least 1 copy of the package. The
> >most common problem we've run into with yum is getting halfway through a
> >transaction and power or network or something fails such that the second
> >part, cleaning up the older packages, cannot occur.
> >
> >this is where yum-complete-transaction comes in. It will finish up the
> >remaining steps since it has enumerated them.
> 
> Seth,
> 
> Due to memory pressure and constraints on the XO, we regularly see some
> RPM %pre- and %post-scripts fail due to OOM. Is there anything which
> could reasonably be done to mitigate this problem for our yum-users?

Not much - if it's OOM'ing the only real option is:
 1. get more memory
 2. have it use less memory

if you want to pursue 2 that's fine - but to be very clear - everything
after:
Running RPM Transaction Test

is in rpm-land as to trimming out memory/cpu usage. There's very little
yum can do there.

-sv





More information about the devel mailing list