Stablemirror yum plugin updated for F7 & F8

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

 



Stablemirror 0.4 now works with yum 3.2 in F7 and F8t3 and rawhide.

For my users, well, I'd been concentrating too hard to be able to take the
few days needed to install F7 and fix the simple issues Stablemirror had
with the new yum.  (Uptime 99 days, connected to the server I've been
working on.)  At least Stablemirror seems ready for the new Fedora on time
this time.  The jump in version number only reflects inconsistency on my
part, not new features.

---
Stablemirror is a yum plugin to choose a stable, working, up-to-date mirror
each time.  There were many complaints on this list in FC5 timeframe about
difficulty in using yum to update, with yum not being able to find a
working mirror.  This plugin addresses those complaints, and provides sane
Ctl-C handling.

<http://georgeanelson.com/stablemirror.htm>

Yum normally uses a randomly chosen mirror, different each time run.  If
all mirrors were always up-to-date, this would work well.  However, when a
repository is updated, its mirrors gradually come up-to-date over the next
day or so, as some mirrors update often, most update daily, some less
often, and some never update.  This means that when yum is run, it may use
a mirror that is more, or less up-to-date than last time.  With the dynamic
mirrorlist improvements, there are few broken mirrors, but the mirror may
still be hours out of date.

When an out-of-date mirror is used, yum may delete many packages and add
only a few, and a package that was to be updated may no longer be present.
When yum fails over to another mirror, that mirror may be at a different
date, and nothing will work with it.  If yum is run, and run again within
its half-hour time window, it can get into a situation where no mirrors
match, while downloading dozens of megabytes of mis-matched data.

Stablemirror makes yum use its mirrors in ths same order each time, with a
different order for each machine.  This alone fixes most of the issues.
Stablemirrors makes sure to check the date of a mirror before using it.
The first mirror must be at least as up-to-date as the last time run; and
any subsequent mirrors used on failures must be at the same date as the
first mirror.  This is done by downloading the tiny repomd.xml file, so
little bandwidth is wasted, compared to downloading the large primary.xml
file.

Stablemirror makes Ctl-C do something useful, at least during downloads
(yum still eats Ctl-C at other times; I hope to fix that), presenting the
choice to Quit, Continue, or Avoid or Reject the current mirror.  If you
are stuck waiting for a slow mirror, you can press Ctl-C, and Avoid that
mirror in the future, or Reject it for all time.  The list of stable
mirrors in /var/cache/yum/stablemirrors is easily edited if you wish.
Cleaning the yum cache will remove the file, which will then be regenerated
next time.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux