[Yum] Is there a better way??

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

 



On Fri, 2003-03-21 at 12:01, Tom Diehl wrote:
> Hi,
> I am having some problems with yum on a couple of machines (not really
> a yum problem). Occasionally one of the downloads gets corrupted and the 
> yum update fails. This is not really a big deal except it sometimes
> takes me a couple of days to notice. At that point I go in and rm the
> offending file and all is well. The other problem I am having is that
> the rh8 systems get the dreaded rpmdb corruption that causes yum to hang
> indefinitely. Again it is easy to fix but it sometimes takes a couple of
> days to notice. For the corrupt download above I have added a yum clean 
> packages to the nightly cron job. I am not sure that is the right answer
> but I have not come up with a better way. For the corrupt rpmdb I do not
> have an answer other than to look at each machine every few days. Is there
> a better way to manage this??

Icon and I were talking about this yesterday.

wrt to the corrupted headers/rpms problem - I'm going to work on making
yum do the following:
 download header, check it, retry up to 3 times to get a valid header
from the server - if it fails 3 times then exit with useful errors
 ditto with rpms - if it fails and md5sum check 3 times then its
seriously horked.

Will that help? That should ameliorate the problem - It baffles me how
often these sort of errors occur though. I don't think I'm doing
anything wrong in the code for downloading files - there just isn't that
much to do wrong.

The corrupt rpmdb, seems to be an rpm problem and I'm not sure how to
answer that. I guess I could add a routine to prune the __db files but
wow does that seem like a hack.

other ideas?

-sv




[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux