[CentOS] Squid +Yum = apt-cacher?

Fri May 25 14:51:36 UTC 2007
Les Mikesell <lesmikesell at gmail.com>

Matt Hyclak wrote:
> On Fri, May 25, 2007 at 08:41:26AM -0500, Les Mikesell enlightened us:
>> Lorenzo wrote:
>>>>> This used to 'just work' in Centos3 since the repos all had the same 
>>>>> name and used round robin dns to distribute the load and maybe it 
>>>>> does again in Centos5 - I thought I'd seen something about some work 
>>>>> being done.  But with Centos4 and the fedoras the mirrorlist would 
>>>>> usually give you something different every time and fill up the cache 
>>>>> with multiple copies.
>>>> Yup, that's what happens with Fedora. Too many repos, the cache hit 
>>>> rate is pretty low.
>>>>
>>> So again would be nice to "convince" someone (maybe already working with 
>>> Fedora) to make such tool (suggested name: yum-cacher; function: doing 
>>> for Fedora/CentOS/ any other RPM based distro the same thing that 
>>> apt-cacher does for debian)
>> I'd rather not have any tool-specific, distro-specific, or 
>> version-specific thing to set up.  Http caching has been well understood 
>> for ages and works with everything that doesn't go out of its way to 
>> break it.  There has to be some way to make yum work again without 
>> breaking it.
> 
> There is, use a baseurl in your config file rather than the mirrorlist.

But that's a per-box per-repo specific change, with per-distro, per-repo 
variations for the end users to figure out for themselves. And then it 
won't fail over at all if the url you pick goes away.  Aren't computers 
supposed to work for you instead of the other way around?

-- 
   Les Mikesell
     lesmikesell at gmail.com