[CentOS] How to query the new style mirrorlist ?

Steven Shiau

steven at nchc.org.tw
Fri Apr 7 08:17:50 UTC 2006


Hi,
>From CentOS 4.3, I saw the yum repository setting
/etc/yum.repos.d/CentOS-Base.repo
is something like:
--------------------
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
--------------------
Is that possible I can query the result by lynx ? I have a script to get
the URL and path in old yum repository style, but broken in this. When I
use "lynx http://mirrorlist.centos.org/?release=4.3&arch=i386&repo=os",
it shows me "4.3 hasnt been released yet".
I need to get the result like the baseurl style
"http://free.nchc.org.tw/centos/$releasever/os/$basearch/"
or a list of urls.

Thanks in advance.

-- 
Steven Shiau



More information about the CentOS mailing list