Using mirrorlists

Anders F Björklund afb at algonet.se
Wed Aug 26 05:30:30 PDT 2009


Edward Diener wrote:

>> Smart uses separate mirrors, so you add them with "smart mirror"  
>> after the channel has been added with "smart channel".
> This implies that in Smart one must currently manually add all the  
> mirrors on a mirrorlist against the baseurl. That is much work.

Depending on how many mirrors you want to add, I guess. (and how you  
do it)
Just a few should be OK, since it's generated for your current  
location...

>> Support for integration with yum mirrorlist (including metalink)  
>> is pending, see https://bugs.launchpad.net/smart/+bug/247351
> I hope this is added soon so that one need only add an entire  
> mirrorlist URL.
>>
>> It's actually a problem that Yum doesn't use the baseurl, and even  
>> comments it out in the .repo definition (!), since Smart uses the  
>> baseurl for naming and identifying the repo files.
> If Yum can figure it out, it seems that Smart should be able to also.

Yum uses the name of the repo for naming files, instead of the baseurl.
So baseurl is "optional" in Yum, while it's still "mandatory" in Smart.

>> * This only applies when using the yumchannelsync plugin, and not  
>> cheating by looking at commented lines. It does not apply if you  
>> set the channel baseurl and mirror list yourself, though. Note  
>> that "$basearch" only works with the plugin, for smart .channel or  
>> otherwise you need to say "i386" or "x86_64" instead.
> I would not mind manually filling in for $basearch ( or  
> $releasever ) when adding the mirrorlist to Smart, sinc that is  
> relatively easy. It's manually adding all the mirrors on a  
> mirrorlist that is time consuming.

It's all handled for you, by the yumchannelsync plugin, actually...
One could write a small shell script to add all the current mirrors ?

But Fedora doesn't *want* to do that, meanwhile:
https://bugzilla.redhat.com/show_bug.cgi?id=375111

--anders




More information about the Smart mailing list