[Yum] Request for comment -- repository-level redirects

Ryan Tomayko rtomayko at gmail.com
Wed Feb 2 15:24:07 UTC 2005


On Feb 2, 2005, at 6:23 AM, Eric S. Raymond wrote:
> I think there is a simple added feature that would make life a great
> deal less complicated for users: repository-level redirects.  That is, 
> it
> should be possible for a a repository to say "if I don't have the
> package you want and it matches a specified regexp, I'll chase this
> specified list of URLS to build a set of other repos to try".

That's an interesting thought.

IIRC, the urlgrabber code has support for HTTP redirects so some of 
this may be possible to implement on the server-side with just a little 
mod_rewrite magic..

RewriteRule ^/fedora/3/extras/(.*) http://otherrepo.org/$1 [L,R]

I also remember reading a simple method for setting up a round-robin 
load-balancing scheme using mod_rewrite.

This probably isn't as tightly integrated into the depsolving code as 
you'd imagined but it strikes me as a very simple and elegant way of 
making a single host look like a central repository.

Ryan




More information about the Yum mailing list