https://wiki.archlinux.org/api.php?action=feedcontributions&user=Ideal&feedformat=atomArchWiki - User contributions [en]2024-03-29T09:46:19ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=User:Ideal&diff=390896User:Ideal2015-08-12T06:27:16Z<p>Ideal: /* Shang Yuanchun */</p>
<hr />
<div>== Shang Yuanchun ==<br />
<br />
I live in Zhejiang, China. You can visit my blog: [http://mirror.bjtu.edu.cn/ideal/]</div>Idealhttps://wiki.archlinux.org/index.php?title=User:Ideal&diff=390895User:Ideal2015-08-12T06:25:53Z<p>Ideal: Created page with "== Shang Yuanchun == ---- I live in Zhejiang, China. You can visit my blog: [http://mirror.bjtu.edu.cn/ideal/]"</p>
<hr />
<div>== Shang Yuanchun ==<br />
<br />
----<br />
<br />
I live in Zhejiang, China. You can visit my blog: [http://mirror.bjtu.edu.cn/ideal/]</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=390894Mirrors2015-08-12T06:21:47Z<p>Ideal: /* China */ change bjtu mirror address</p>
<hr />
<div>[[Category:About Arch]]<br />
[[Category:Package management]]<br />
[[ar:Mirrors]]<br />
[[es:Mirrors]]<br />
[[fr:Miroirs]]<br />
[[it:Mirrors]]<br />
[[ja:ミラー]]<br />
[[ru:Mirrors]]<br />
[[zh-CN:Mirrors]]<br />
{{Related articles start}}<br />
{{Related|Mirroring}}<br />
{{Related|pacman}}<br />
{{Related|reflector}}<br />
{{Related articles end}}<br />
<br />
This page is a guide to selecting and configuring your mirrors, and a listing of current available mirrors.<br />
<br />
== Enabling a specific mirror ==<br />
<br />
To enable mirrors, edit {{ic|/etc/pacman.d/mirrorlist}} and locate your geographic region. Uncomment mirrors you would like to use.<br />
<br />
Example:<br />
<br />
# Any<br />
# Server = <nowiki>ftp://mirrors.kernel.org/archlinux/$repo/os/$arch</nowiki><br />
'''Server = <nowiki>http://mirrors.kernel.org/archlinux/$repo/os/$arch</nowiki>'''<br />
<br />
See [[#Mirror status]] and [[#List by speed]] for tools that help choosing mirrors.<br />
<br />
{{Tip|<br />
* Uncomment 5 favorite mirrors and place them at the top of the mirrorlist file. That way it's easy to find them and move them around if the first mirror on the list has problems. It also makes merging mirrorlist updates easier.<br />
* HTTP mirrors are faster than FTP, because of something called [[Wikipedia:HTTP persistent connection|persistent HTTP connection]]: with FTP, ''pacman'' has to establish a new connection to server each time it requests to download next package, resulting in a brief pause.}}<br />
<br />
It is also possible to specify mirrors in {{ic|/etc/pacman.conf}}. For the ''[core]'' repository, the default setup is:<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
To use the ''HostEurope'' mirror as a default mirror, add it before the {{ic|Include}} line:<br />
[core]<br />
'''Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/$arch</nowiki>'''<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
pacman will now try to connect to this mirror first. Proceed to do the same for ''[testing]'', ''[extra]'', and ''[community]'', if applicable.<br />
<br />
{{Note|If mirrors have been stated directly in {{ic|pacman.conf}}, remember to use the same mirror for all repositories. Otherwise packages that are incompatible to each other may be installed, like linux from ''[core]'' and an older kernel module from ''[extra]''.}}<br />
<br />
=== Force pacman to refresh the package lists ===<br />
<br />
After creating/editing {{ic|/etc/pacman.d/mirrorlist}}, (manually or by using {{ic|rankmirrors}}) issue the following command:<br />
# pacman -Syyu<br />
<br />
{{Tip|Passing two {{ic|--refresh}} or {{ic|-y}} flags forces pacman to refresh all package lists even if they are considered to be up to date. Issuing {{ic|pacman -Syyu}} ''whenever changing to a new mirror'' is good practice and will avoid possible issues.}}<br />
<br />
== Mirror status ==<br />
<br />
Check the status of the Arch mirrors and how updated they are by visiting https://www.archlinux.org/mirrors/status/.<br />
<br />
You can generate an up to date mirrorlist [https://www.archlinux.org/mirrorlist/ here], automate the process with a [[#Script to download from Mirrorlist Generator|script]], or install [[Reflector]], a utility that generates a mirrorlist using Mirrorcheck's list; you can also manually check how up-to-date a mirror is by:<br />
#picking a server and browsing to "extra/os/";<br />
#accessing https://www.archlinux.org/ in another browser tab or window; and<br />
#comparing the last-modified date of the {{ic|i686}} directory on the mirror to the ''[extra]'' date on the homepage, in the ''Package Repositories'' box to the right.<br />
<br />
== Sorting mirrors ==<br />
<br />
When downloading packages pacman uses the mirrors in the order they are in {{ic|/etc/pacman.d/mirrorlist}}. If not using {{Pkg|reflector}}, which has the ability to sort mirrors by both how updated they are and their speed, follow this demonstration of manual mirror sorting.<br />
<br />
{{Note|This does not apply to [[Improve pacman performance#Using_powerpill-light|powerpill-light]], which connects to many servers simultaneously to increase the overall download speed. The speed of individual connections becomes less relevant, and powerpill-light can be configured to require minimum speeds per connection.}}<br />
<br />
=== List by speed ===<br />
<br />
Take full advantage of using the fastest local mirror, which can be determined via the included Bash script, {{ic|/usr/bin/rankmirrors}}.<br />
<br />
Back up the existing {{ic|/etc/pacman.d/mirrorlist}}:<br />
<br />
# cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup<br />
<br />
Edit {{ic|/etc/pacman.d/mirrorlist.backup}} and uncomment mirrors for testing with {{ic|rankmirrors}}.<br />
<br />
Optionally run the following {{ic|sed}} line to uncomment every mirror:<br />
<br />
# sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist.backup<br />
<br />
Finally, rank the mirrors. Operand {{ic|-n 6}} means only output the 6 fastest mirrors:<br />
<br />
# rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist<br />
<br />
Run {{ic|rankmirrors -h}} for a list of all the available options.<br />
<br />
For the new {{ic|rankmirrors}} 1.5+ simply run<br />
<br />
# rankmirrors -g<br />
<br />
===Combined listing by speed and status===<br />
It is not a good idea to just use the fastest mirrors, since the fastest mirrors might be out of date. The preferred way would be to use [[#List by speed]], then sorting those 6 fastest mirrors by their [[#Mirror status]].<br />
<br />
Simply visit either one or both [[#Mirror status]] links and sort them by the ones that are more up to date. Move the more up to date mirrors to the top of {{ic|/etc/pacman.d/mirrorlist}} and if the mirrors are way out of date simply do not use those; repeat the process leaving out the outdated mirrors. So this ends up with a total of 6 mirrors that are sorted by speed and status, leaving out outdated mirrors.<br />
<br />
When having mirror issues the above should be repeated. Or repeat once in a while even if not having mirror problems, to keep {{ic|/etc/pacman.d/mirrorlist}} up to date.<br />
<br />
=== Script to download from Mirrorlist Generator ===<br />
<br />
The [https://www.archlinux.org/mirrorlist/ Pacman Mirrorlist Generator] ranks mirrors based on geography, availability, and tiering. A script is available that can backup the previous mirrorlist then install a Mirrorlist Generator version. To install it use the AUR package {{AUR|armrr-git}} or download it with {{ic|curl -O https://raw.githubusercontent.com/Gen2ly/armrr/master/armrr}}. Run {{ic|armrr [*country code]}} or just {{ic|armrr}} for a country code prompt. Type {{ic|armrr -h,--help}} for more details.<br />
<br />
=== Using Reflector ===<br />
<br />
Alternatively, you can use [[Reflector]] to automatically retrieve the latest mirrorlist from the [https://www.archlinux.org/mirrors/status/ MirrorStatus] page, filter the most up-to-date mirrors, sort them by speed and overwrite the file {{ic|/etc/pacman.d/mirrorlist}}.<br />
<br />
=== Choosing a local mirror ===<br />
<br />
The simple way is to edit the mirrorlist file by placing a local mirror at the top of the list. pacman will then use this mirror for preference.<br />
<br />
Alternatively {{ic|/etc/pacman.conf}} can be edited by placing a local mirror before the line sourcing the mirrorlist file, i.e. where it says "add your preferred servers here". It is safer if you use the same server for each repository.<br />
<br />
=== List mirrors only for a specific country ===<br />
<br />
Can be useful to automate update of the mirror list only for a specific countries instead of making a speed test each time. Assumed that {{ic|mirrorlist.pacnew}} exist, the file creates after installation of the {{Pkg|pacman-mirrorlist}} update.<br />
<br />
{{bc|<nowiki>Cnt="China";<br />
awk -v GG=$Cnt '{if(match($0,GG) != "0")AA="1";if(AA == "1"){if( length($2) != "0" )print substr($0,2) ;else AA="0"} }' \<br />
/etc/pacman.d/mirrorlist.pacnew</nowiki>}}<br />
<br />
== Official mirrors ==<br />
<br />
The official Arch Linux mirror list is available from the {{pkg|pacman-mirrorlist}} package. To get an even more up-to-date list of mirrors, use the [https://www.archlinux.org/mirrorlist/ Pacman Mirror List Generator] page on the main site.<br />
<br />
In the unlikely scenario that you are without any configured mirrors and {{ic|pacman-mirrorlist}} is not installed, run the following command:<br />
# wget -O /etc/pacman.d/mirrorlist <nowiki>https://www.archlinux.org/mirrorlist/all/</nowiki><br />
<br />
Be sure to uncomment a preferred mirror as described above, then:<br />
# pacman -Syu pacman-mirrorlist<br />
<br />
If you want your mirror to be added to the official list, file a feature request. In the meantime, add it to the [[#Unofficial mirrors]] list at the end of this page.<br />
<br />
If you get an error stating that the {{ic|$arch}} variable is used but not defined, add the following to your {{ic|/etc/pacman.conf}}:<br />
Architecture = x86_64<br />
<br />
{{Note|You can also use the values {{ic|auto}} and {{ic|i686}} for the {{ic|Architecture}} variable.}}<br />
<br />
=== IPv6-ready mirrors ===<br />
<br />
The [https://www.archlinux.org/mirrorlist/?country=all&protocol=http&ip_version=6 pacman mirror list generator] can also be used to find a list of current IPv6 mirrors.<br />
<br />
== Unofficial mirrors ==<br />
<br />
These mirrors are ''not'' listed in {{ic|/etc/pacman.d/mirrorlist}}.<br />
<br />
=== Global ===<br />
<br />
* http://sourceforge.net/projects/archlinux/files/ - ''ISO files only; Does not have any releases since 2006. Use it only if for getting older ISOs.''<br />
<br />
=== Tor Network ===<br />
These run as Tor hidden services and require a [[Tor]] client as well as a properly setup pacman to use.<br />
<br />
*http://cz2jqg7pj2hqanw7.onion/archlinux<br />
*ftp://mirror:mirror@cz2jqg7pj2hqanw7.onion/archlinux<br />
*http://rstpevyo7zx47bld.onion/archlinux<br />
<br />
=== Austria ===<br />
<br />
*http://gd.tuwien.ac.at/opsys/linux/archlinux/ - ''Vienna University of Technology''<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/<br />
<br />
=== Belarus ===<br />
<br />
*http://ftp.byfly.by/pub/archlinux/<br />
*ftp://ftp.byfly.by/pub/archlinux/<br />
<br />
=== Bulgaria ===<br />
<br />
*http://mirror.telepoint.bg/archlinux/<br />
*ftp://mirror.telepoint.bg/archlinux/<br />
<br />
=== China ===<br />
<br />
'''Telecom'''<br />
*http://mirror.bit.edu.cn/archlinux/ - ''Beijing Institute of Technology''<br />
*http://mirror.bjtu.edu.cn/archlinux/ - ''Beijing Jiaotong University''<br />
*rsync://mirror.bjtu.edu.cn/archlinux/<br />
*http://mirrors.aliyun.com/archlinux/ - ''Alibaba''<br />
<br />
'''Unicom'''<br />
*http://mirrors.sohu.com/archlinux/<br />
*http://mirrors.yun-idc.com/archlinux/<br />
<br />
'''Cernet'''<br />
*http://ftp.sjtu.edu.cn/archlinux/ - ''Shanghai Jiaotong University''<br />
*http://mirrors.4.tuna.tsinghua.edu.cn/archlinux/ ''(ipv4 only)''<br />
*http://mirrors.6.tuna.tsinghua.edu.cn/archlinux/ ''(ipv6 only)''<br />
*http://mirror.lzu.edu.cn/archlinux/ - ''Lanzhou University''<br />
<br />
=== France ===<br />
<br />
*http://delta.archlinux.fr/ - ''With Delta package support. Needs xdelta3 package from extra to run.''<br />
*http://mirror.soa1.org/archlinux<br />
*ftp://mirror:mirror@mirror.soa1.org/archlinux<br />
<br />
=== Germany ===<br />
<br />
*http://ftp.uni-erlangen.de/mirrors/archlinux/<br />
*ftp://ftp.uni-erlangen.de/mirrors/archlinux/<br />
*http://ftp.u-tx.net/archlinux/<br />
*ftp://ftp.u-tx.net/archlinux/<br />
*http://mirror.michael-eckert.net/archlinux/<br />
*http://linux.rz.rub.de/archlinux/<br />
<br />
=== Hong Kong ===<br />
<br />
*http://hk.mirrors.linaxe.net/archlinux/<br />
<br />
=== India ===<br />
<br />
*http://ftp.iitm.ac.in/archlinux/<br />
*ftp://ftp.iitm.ac.in/archlinux/<br />
<br />
=== Indonesia ===<br />
<br />
*http://mirror.kavalinux.com/archlinux/ - ''only from Indonesia''<br />
*http://kambing.ui.ac.id/archlinux/<br />
*http://repo.ukdw.ac.id/archlinux/<br />
<br />
=== Iran ===<br />
<br />
*http://mirror.yazd.ac.ir/arch/<br />
<br />
=== Italy ===<br />
<br />
*http://mi.mirror.garr.it/mirrors/archlinux/<br />
<br />
=== Japan ===<br />
<br />
*http://ftp.nara.wide.ad.jp/pub/Linux/archlinux/ - ''NAra Institute of Science and Technology''<br />
*http://ftp.kddilabs.jp/Linux/packages/archlinux/<br />
*http://srv2.ftp.ne.jp/Linux/packages/archlinux/<br />
<br />
=== Kazakhstan ===<br />
<br />
*http://archlinux.kz/<br />
*http://mirror.neolabs.kz/archlinux/<br />
*http://mirror-kt.neolabs.kz/archlinux/<br />
<br />
=== Malaysia ===<br />
<br />
*http://mirror.oscc.org.my/archlinux/<br />
*http://mirrors.inetutils.net/archlinux/ - ''ISO and Core''<br />
<br />
=== New Zealand ===<br />
<br />
*http://mirror.ihug.co.nz/archlinux/<br />
*http://mirror.ece.auckland.ac.nz/archlinux/ ''NZ only''<br />
<br />
=== Poland ===<br />
<br />
*ftp://ftp.icm.edu.pl/pub/Linux/dist/archlinux/ - ICM UW<br />
*http://ftp.icm.edu.pl/pub/Linux/dist/archlinux/ - ICM UW<br />
*rsync://ftp.icm.edu.pl/pub/Linux/dist/archlinux/ - ICM UW<br />
<br />
=== Russia ===<br />
<br />
*http://hatred.homelinux.net/archlinux/ - ''Vladivostok, without iso, with <sub>[http://hatred.homelinux.net/wiki/proekty:3spy:start 3SPY]</sub> project repos and [http://hatred.homelinux.net/archlinux/mingw32/os/i686 '''mingw32'''] repo''<br />
*http://mirrors.krasinfo.ru/archlinux/ - ''Krasnoyarsk, Classica-Service Ltd''<br />
*http://mirror.yandex.ru/archlinux/ - ''Moscow, [http://www.yandex.ru/ Yandex] LLC''<br />
<br />
=== Singapore ===<br />
<br />
*http://mirror.nus.edu.sg/archlinux/<br />
<br />
=== South Africa ===<br />
<br />
*http://ftp.leg.uct.ac.za/pub/linux/arch/ - ''University of Cape Town''<br />
*ftp://ftp.leg.uct.ac.za/pub/linux/arch/<br />
*http://mirror.ufs.ac.za/archlinux/ - ''University of the Free State''<br />
*ftp://mirror.ufs.ac.za/os/linux/distros/archlinux/<br />
*http://ftp.wa.co.za/pub/archlinux/ - ''Web Africa Networks''<br />
*ftp://ftp.wa.co.za/pub/archlinux/<br />
*http://archlinux.mirror.ac.za - ''TENET - Tertiary Education and Research Network of South Africa''<br />
*ftp://archlinux.mirror.ac.za<br />
<br />
=== South Korea ===<br />
<br />
*http://mirror.star4u.org/archlinux/<br />
*http://ftp2.lecl.net/pub/archlinux<br />
<br />
=== United States ===<br />
<br />
* http://archlinux.linuxfreedom.com - ''Contains numerous ISO images but does not contain the ISO dated 2011.08.19''<br />
* http://mirror.clarkson.edu/archlinux/<br />
* http://mirror.pointysoftware.net/archlinux/<br />
* http://il.mirrors.linaxe.net/archlinux/ - ''Server location - Chicago, IL''<br />
<br />
=== Viet Nam ===<br />
<br />
'''FPT TELECOM'''<br />
*http://mirror-fpt-telecom.fpt.net/archlinux/<br />
<br />
== See also ==<br />
<br />
* [http://wiki.gotux.net/code/bash/mirup MirUp] &ndash; pacman mirrorlist downloader/checker {{Dead link|2015|04|02}}</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=362793Mirrors (简体中文)2015-02-27T04:22:59Z<p>Ideal: remove bjtu from unofficial mirrors</p>
<hr />
<div>[[Category:About Arch (简体中文)]]<br />
[[Category:Package management (简体中文)]]<br />
[[ar:Mirrors]]<br />
[[en:Mirrors]]<br />
[[es:Mirrors]]<br />
[[fr:Miroirs]]<br />
[[it:Mirrors]]<br />
[[ja:Mirrors]]<br />
[[ru:Mirrors]]<br />
{{Related articles start (简体中文)}}<br />
{{Related|Mirroring}}<br />
{{Related2|Pacman (简体中文)|pacman}}<br />
{{Related|reflector}}<br />
{{Related articles end}}<br />
<br />
本页面说明如何选择和配置镜像,以及列出可用的镜像。<br />
<br />
== 启用您喜爱的镜像 ==<br />
<br />
想要启用镜像,打开 {{ic|/etc/pacman.d/mirrorlist}} 并定位到你的地理区域。对您想使用的镜像取消注释。<br />
{{注意 | ftp.archlinux.org [https://www.archlinux.org/news/302/ 限速 50KB/s]}} 例如:<br />
<br />
# Any<br />
# Server = <nowiki>ftp://mirrors.kernel.org/archlinux/$repo/os/$arch</nowiki><br />
'''Server = <nowiki>http://mirrors.kernel.org/archlinux/$repo/os/$arch</nowiki>'''<br />
<br />
参见 [[#镜像状态]] 和 [[#按速度排序]] 查看帮助选择镜像的工具。<br />
<br />
{{小贴士|取消5个你最喜欢的镜像的注释,把他们放在 mirrorlist 文件最上方。这样你就很容易找到它们并且如果第一个镜像出问题可以很容易切换。这也让合并 mirrorlist 更新更容易。}}<br />
<br />
也可以在 {{ic|/etc/pacman.conf}} 中指定镜像。对于 ''[core]'' 仓库,默认设置是:<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
想要使用 ''HostEurope'' 镜像作为默认镜像,把它添加在 {{Ic|Include}} 行之前:<br />
[core]<br />
'''Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/$arch</nowiki>'''<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
pacman 会首先尝试链接这个镜像。如果需要的话,可以继续修改''[testing]'', ''[extra]'', 和 ''[community]''部分。<br />
<br />
{{注意|如果镜像直接在 {{ic|pacman.conf}} 中声明,记得在所有的仓库使用同样的镜像。否则不相容的包就可能被安装。如 ''[core]'' 中的 linux 和 ''[extra]'' 中的旧的内核模块不相容。}}<br />
<br />
==镜像状态==<br />
可以通过访问如下网址检查镜像的状态:<br />
* https://www.archlinux.org/mirrors/status/<br />
* http://www.archlinux.de/?page=MirrorStatus<br />
<br />
从[https://www.archlinux.org/mirrorlist/ 这里]可以自动生成最新的镜像列表,安装[[Reflector]]这个工具也可以自动检查和生成镜像列表。<br />
<br />
==镜像排序==<br />
===按速度排序===<br />
更快的源可以显著的提升pacman的性能,和arch的整体操作体验。可以使用 {{ic|rankmirrors}} 将镜像列表按速度排列。但是{{ic|rankmirrors}}不能测试这些源的速度。<br />
<br />
{{ic|cd}}到{{ic|/etc/pacman.d/}}目录:<br />
{{bc|# cd /etc/pacman.d}}<br />
<br />
备份已经存在的{{ic|/etc/pacman.d/mirrorlist}}:<br />
{{bc|# cp mirrorlist mirrorlist.backup}}<br />
<br />
编辑{{ic|/etc/pacman.d/mirrorlist.backup}},取消要测速镜像前的注释。<br />
<br />
让rankmirrors带上参数{{ic|-n}}对这个备份文件{{ic|mirrorlist.backup}}执行操作,然后把输出重定向以方便生成一个新的/etc/pacman.d/mirrorlist源列表:<br />
{{bc|# rankmirrors -n 6 mirrorlist.backup > mirrorlist}}<br />
{{注意|'''-n 6''':将生成6个最接近的源,运行{{Ic|rankmirrors -h}}可查看所有可用选项。}}<br />
<br />
'''强制 pacman 刷新软件包列表''':<br />
# pacman -Syy<br />
<br />
{{Tip|传入两次{{Ic|--refresh}}或{{Ic|-y}}将强制更新所有软件包列表,即使系统认为它们已经是最新。'''每次修改镜像之后都应该使用{{Ic|pacman -Syy}}'''。}}<br />
<br />
===按速度和状态排序===<br />
仅是使用最快的镜像服务器并不是一件好事,因为它们可能是过时的。我们更推荐先[[#按速度排序]],然后在选出的镜像中按[[#镜像状态]]排序。<br />
<br />
只要简单地访问它们的[[#镜像状态]]连接,然后将它们按照尽量新的顺序排序。将越新的镜像排到{{ic|/etc/pacman.d/mirrorlist}}的越上面。如果镜像真的太过时了,别用它们(把它们注释掉,然后再[[#按速度排序]]),重复这么做,排除过时的镜像。最后将有6个又快又新的镜像。<br />
<br />
当出现镜像问题是,应该重复上面的步骤。或者一段时间就重复一次以保持{{ic|/etc/pacman.d/mirrorlist}}最新,即使没有镜像问题。<br />
<br />
===自动使用Pacman Mirrorlist Generator的脚本===<br />
你可以使用下面的脚本来更新你的镜像列表。该脚本基于[https://www.archlinux.org/mirrorlist/ Pacman Mirrorlist Generator]给出的顺序。如果你不在美国,你可以更改国家变量。<br />
<br />
{{hc|updatemirrors.sh|2=<nowiki>#!/bin/sh<br />
<br />
[ "$UID" != 0 ] && su=sudo<br />
<br />
country='us'<br />
url="https://www.archlinux.org/mirrorlist/?country=$country&protocol=ftp&protocol=http&ip_version=4&use_mirror_status=on"<br />
<br />
tmpfile=$(mktemp --suffix=-mirrorlist)<br />
<br />
# 获得最新的镜像列表,并保存到 tmpfile<br />
wget -qO- "$url" | sed 's/^#Server/Server/g' > "$tmpfile"<br />
<br />
# 备份并替换现有的镜像列表<br />
{ echo "Backing up the original mirrorlist..."<br />
$su mv -i /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig; } &&<br />
{ echo "Rotating the new list into place..."<br />
$su mv -i "$tmpfile" /etc/pacman.d/mirrorlist; }</nowiki>}}<br />
<br />
{{Note|你需要复制上面的文本,放到一文件中,然后对该文件运行{{Ic|chmod +x}}。如果你现在不是以Root的身份登录,当需要替换mirrorlist的时候,这个脚本将会调用sudo}}<br />
<br />
===使用 Reflector===<br />
<br />
[[Reflector]]工具可以从[https://www.archlinux.org/mirrors/status/ 镜像状态]页面自动获取最新的镜像列表,过滤掉未及时同步的镜像,然后按照速度排序覆盖{{ic|/etc/pacman.d/mirrorlist}}。<br />
<br />
==官方镜像==<br />
官方镜像可以通过软件包 {{pkg|pacman-mirrorlist}} 获得。最新的镜像可以通过[https://www.archlinux.org/mirrorlist/ Pacman 镜像列表生成器]查询。<br />
<br />
如果没有配置任何镜像,也没有安装 {{Ic|pacman-mirrorlist}},请运行如下命令:<br />
# wget -O /etc/pacman.d/mirrorlist <nowiki>https://www.archlinux.org/mirrorlist/all/</nowiki><br />
<br />
取消选中镜像前的注释然后:<br />
# pacman -Syy<br />
# pacman -S --force pacman-mirrorlist<br />
<br />
如果要将自己的镜像加入官方列表,请提出申请并将其加入下面的 [[#非官方镜像]] 列表。<br />
<br />
如果碰到 {{ic|$arch}} 变量未定义的问题,请在 {{ic|/etc/pacman.conf}} 中加入:<br />
Architecture = auto<br />
<br />
=== 支持 IPv6 的镜像 ===<br />
[https://www.archlinux.org/mirrorlist/?country=all&protocol=http&ip_version=6 pacman 镜像列表生成工具] 可以用来查找当前的 IPv6 镜像。<br />
<br />
==非官方镜像==<br />
镜像'''没有'''加入{{ic|/etc/pacman.d/mirrorlist}}.<br />
<br />
===全球===<br />
* http://sourceforge.net/projects/archlinux/files/ - ''Does not have recent ISO releases. Use it only if for getting older ISOs.''<br />
<br />
===保加利亚===<br />
*http://mirror.telepoint.bg/archlinux/ <br />
*ftp://mirror.telepoint.bg/archlinux/<br />
<br />
===中国===<br />
<br />
'''电信'''<br />
*http://mirror.bit.edu.cn/archlinux/ - ''北京理工大学''<br />
*http://mirrors.aliyun.com/archlinux/ - ''阿里巴巴''<br />
<br />
'''联通'''<br />
*http://mirrors.sohu.com/archlinux/<br />
*http://mirrors.yun-idc.com/archlinux/<br />
<br />
'''教育网'''<br />
*http://ftp.sjtu.edu.cn/archlinux/ - ''上海交通大学y''<br />
*http://mirrors.tuna.tsinghua.edu.cn/archlinux/ - ''清华大学''<br />
*http://mirrors.4.tuna.tsinghua.edu.cn/archlinux/ ''(ipv4 only)''<br />
*http://mirrors.6.tuna.tsinghua.edu.cn/archlinux/ ''(ipv6 only)''<br />
*http://mirror.lzu.edu.cn/archlinux/ - ''兰州大学''<br />
<br />
===德国===<br />
*http://ftp.uni-erlangen.de/mirrors/archlinux/<br />
*ftp://ftp.uni-erlangen.de/mirrors/archlinux/<br />
*http://ftp.u-tx.net/archlinux/<br />
*ftp://ftp.u-tx.net/archlinux/<br />
<br />
===印度尼西亚===<br />
*http://mirror.kavalinux.com/archlinux/ - ''only from Indonesia''<br />
*http://kambing.ui.ac.id/archlinux/<br />
*http://repo.ukdw.ac.id/archlinux/<br />
<br />
===立陶宛===<br />
*http://edacval.homelinux.org/mirrors/archlinux/ - ''Only from LT, without ISO''<br />
<br />
===马来西亚===<br />
*http://mirror.oscc.org.my/archlinux/<br />
*http://mirrors.inetutils.net/archlinux/ - ''ISO and Core''<br />
<br />
===新西兰===<br />
*http://mirror.ihug.co.nz/archlinux/<br />
*http://mirror.ece.auckland.ac.nz/archlinux/ ''NZ only''<br />
<br />
===俄罗斯===<br />
*http://hatred.homelinux.net/archlinux/ - ''Vladivostok, without iso, with <sub>[http://hatred.homelinux.net/wiki/proekty:3spy:start 3SPY]</sub> project repos and [http://hatred.homelinux.net/archlinux/mingw32/os/i686 '''mingw32'''] repo''<br />
<br />
===南非===<br />
*http://ftp.sun.ac.za/ftp/pub/mirrors/archlinux/ - ''Stellenbosch University''<br />
*ftp://ftp.sun.ac.za/pub/mirrors/archlinux/<br />
*http://ftp.leg.uct.ac.za/pub/linux/arch/ - ''University of Cape Town''<br />
*ftp://ftp.leg.uct.ac.za/pub/linux/arch/<br />
<br />
===美国===<br />
* http://archlinux.linuxfreedom.com - ''Contains numerous ISO images but does not contain the ISO dated 2011.08.19''<br />
* http://mirror.pointysoftware.net/archlinux/<br />
<br />
==疑难解答==<br />
{{Translateme (简体中文)}}<br />
===Out-of-sync mirrors: corrupted packages/file not found===<br />
<!-- Here or [[pacman]]? Seems like a mirror issue more than pacman... --><br />
Issues regarding out-of-sync mirrors pointed out in [https://www.archlinux.org/news/482/ this news post] may have already been sorted out for most users, but in the event that problems of this nature present themselves again, simply try to see if the packages are present in the [testing] repository.<br />
<br />
After having synced with {{Ic|pacman -Sy}}, use this command:<br />
# pacman -Ud $(pacman -Sup | tail -n +2 | sed -e 's,/\(core\|extra\)/,/testing/,' \<br />
-e 's,/\(community\)/,/\1-testing/,')<br />
<br />
Doing so could help in any occasion where packages in the mirror have not been synced to [core] or [extra], and are still residing in [testing]. It is perfectly safe to install from [testing] in this case since the packages are being matched by version and release numbers.<br />
<br />
In any event, it is best to switch mirrors and sync with {{Ic|pacman -Syy}} than resorting to an alternate repository. However, all or some of the mirrors may at times be out-of-sync to some degree.<br />
<br />
===使用所有镜像===<br />
To emulate {{Ic|pacman -Su}}'s behavior of going through the entire mirror list, use this script:<br />
{{hc|~/bin/pacup|<nowiki><br />
#!/bin/bash<br />
<br />
# Pacman will not exit on the first error. Comment the line below to<br />
# try from [testing] directly.<br />
pacman -Su "$@" && exit<br />
<br />
while read -r pkg; do<br />
if pacman -Ud "$pkg"; then<br />
continue<br />
else<br />
while read -r mirror; do<br />
pacman -Ud $(sed "s,.*\(/\(community-\)*testing/os/\(i686\|x86_64\)/\),$mirror\1," <<<"$pkg") &&<br />
break<br />
done < <(sed -ne 's,^ *Server *= *\|/$repo/os/\(i686\|x86_64\).*,,gp' \<br />
</etc/pacman.d/mirrorlist | tail -n +2 )<br />
fi<br />
done < <(pacman -Sup | tail -n +2 | sed -e 's,/\(core\|extra\)/,/testing/,' \<br />
-e 's,/\(community\)/,/\1-testing/,')<br />
</nowiki>}}<br />
<br />
== 参见 ==<br />
* [[http://wiki.gotux.net/code:bash:mirup MirUp]] -- pacman mirrorlist downloader/checker</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=103421Mirrors (简体中文)2010-04-15T10:25:55Z<p>Ideal: /* 中国镜像 */</p>
<hr />
<div>[[Category:软件包管理|jx]]<br />
[[Category:HOWTOs (简体中文)|jx]]<br />
[[Category:简体中文]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|:Mirrors}}<br />
{{i18n_entry|简体中文|:Arch镜像 (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
<br />
== 启用您喜爱的镜像 ==<br />
<br />
pacman默认的core仓库配置如下:<br />
<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
如果你想使用一个欧洲镜像作为默认镜像,只需将它添加到<tt>Include</tt>行前:<br />
<br />
[core]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/i686</nowiki><br />
Include = /etc/pacman.d/mirrorlist<br />
<br><br />
'''edit:''' The release of pacman 3.1 introduced the /etc/pacman.d/mirrorlist with the variable $repo, no need to maintain separate list for each repository.<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', ''community'' and ''unstable''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''core'' and another (older) kernel module from ''extra'').'''<br />
<br />
== 官方镜像 ==<br />
<br />
This is a list of all known Arch Linux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know of a mirror that is not listed, please add it. Mirrors which are no longer updated or have been unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load [http://www.archlinux.org/ archlinux.org] in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
[http://users.archlinux.de/~gerbra/mirrorcheck.html This website] provides updates on the current status of the Arch mirrors and how up to date they are.<br />
<br />
'''Attention: Do not add new mirrors to the list below. If you want your mirror to be added to official list - file a feature request. In the meantime add it to the "Unofficial mirrors" list at the end of this page.'''<br />
<br />
=== 澳大利亚 ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/linux/archlinux/ http]</sub> <sub>[rsync://mirror.pacific.net.au/linux/archlinux/]</sub><br />
*ftp://mirror.aarnet.edu.au/pub/archlinux/ <sub>[http://mirror.aarnet.edu.au/pub/archlinux/ http]</sub> <sub>[rsync://mirror.aarnet.au/pub/archlinux/]</sub><br />
<br />
=== 奥地利 ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== 比利时 ===<br />
*ftp://ftp.belnet.be/mirror/archlinux.org/ <sub>[http://ftp.belnet.be/mirror/archlinux.org/ http]</sub><br />
<br />
=== 巴西 ===<br />
*ftp://archlinux.c3sl.ufpr.br/archlinux/ <sub>[http://archlinux.c3sl.ufpr.br/ http]</sub><br />
*ftp://ftp.las.ic.unicamp.br/pub/archlinux <sub>[http://www.las.ic.unicamp.br/pub/archlinux http]</sub> <sub>[rsync://rsync.las.ic.unicamp.br/archlinux rsync]</sub><br />
<br />
=== 加拿大 ===<br />
*ftp://mirror.csclub.uwaterloo.ca/archlinux/ <sub>[http://mirror.csclub.uwaterloo.ca/archlinux/ http]</sub> <sub>[rsync://mirror.csclub.uwaterloo.ca/archlinux/ rsync]</sub><br />
<br />
=== 捷克 ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== 爱沙尼亚 ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== 法国 ===<br />
*ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
*ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
*ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir2.archlinuxfr.org/archlinux rsync]</sub><br />
*http://mir.archlinux.fr/<br />
*ftp://ftp.free.fr/mirrors/ftp.archlinux.org/<br />
*ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/<br />
=== 德国 ===<br />
*ftp://ftp5.gwdg.de/pub/linux/archlinux/ <sub>[http://ftp5.gwdg.de/pub/linux/archlinux/ http]</sub> <sub>[rsync://ftp5.gwdg.de/pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/archlinux/ http]</sub><br />
*ftp://ftp.archlinuxppc.org/i686/<br />
*ftp://ftp.uni-kl.de/pub/linux/archlinux/ <sub>[http://ftp.uni-kl.de/pub/linux/archlinux/ http]</sub> <sub>[rsync: ftp.uni-kl.de::pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.uni-bayreuth.de/pub/linux/archlinux <sub>[http://ftp.uni-bayreuth.de/linux/archlinux http]</sub> <sub>[rsync://rsync.uni-bayreuth.de/archlinux/ rsync]</sub><br />
<br />
=== 英国 ===<br />
*http://www.mirrorservice.org/sites/ftp.archlinux.org/<br />
*ftp://mirrors.uk2.net/pub/archlinux/ <sub>[http://archlinux.mirrors.uk2.net/ http]</sub><br />
<br />
=== 希腊 ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== 匈牙利 ===<br />
*ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/<br />
<br />
=== 爱尔兰 ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== 以色列 ===<br />
*http://mirror.isoc.org.il/pub/archlinux/<br />
<br />
=== 意大利 ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== 荷兰 ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub><br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub><br />
<br />
=== 挪威 ===<br />
*http://arch.likbilen.com/ (rsync 可用)<br />
<br />
=== 波兰 ===<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
*ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ [http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ http]<br />
*http://unix.net.pl/archlinux.org/<br />
<br />
=== 葡萄牙 ===<br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
<br />
=== 罗马尼亚 ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== 俄罗斯 ===<br />
*ftp://mirror.yandex.ru/archlinux/ <sub>[http://mirror.yandex.ru/archlinux/ http]</sub> (rsync 可用)<br />
*http://archlinux.freeside.ru/<br />
<br />
=== 瑞典 ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/ http]</sub><br />
<br />
=== 瑞士 ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== 土耳其 ===<br />
*http://server.elsistech.com/archlinux/<br />
<br />
=== 乌克兰 ===<br />
*ftp://hell.org.ua/archlinux/ (rsync 可用)<br />
*ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ <sub>[http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ http]</sub><br />
<br />
=== 美国 ===<br />
*ftp://ftp.archlinux.org/<br />
*ftp://locke.suu.edu/linux/dist/archlinux/<br />
*http://archlinux.unixheads.org/<br />
*ftp://mirrors.easynews.com/linux/archlinux/ <sub>[http://mirrors.easynews.com/linux/archlinux/ http]</sub><br />
*ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/ [http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/ http]<br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub> (rsync 可用)<br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub><br />
*http://holmes.umflint.edu/archlinux/<br />
*http://mirror.neotuli.net/<br />
*ftp://mirror.rit.edu/archlinux/ <sub>[http://mirror.rit.edu/archlinux/ http]</sub> <sub>[rsync://mirror.rit.edu/archlinux/ rsync]</sub><br />
* http://schlunix.org/archlinux/<br />
* http://mirror.umoss.org/archlinux/ <sub>[rsync://mirror.umoss.org/archlinux/ rsync]</sub><br />
<br />
=== 越南 ===<br />
*ftp://ftp.indochinalinux.com/archlinux/ (DNS 经常出问题,IP 是 202.78.230.5)<br />
<br />
== 中国镜像 ==<br />
# 电信<br />
#* http://mirrors.163.com/archlinux/ (隔天更新,速度很快)<br />
<br />
# 网通<br />
#* ftp://xde.gooth.cn/<br />
#* http://mirrors.sohu.com/archlinux/<br />
<br />
# 台湾<br />
#* ftp://ftp.tku.edu.tw/Linux/ArchLinux/<br />
#* http://ftp.tku.edu.tw/Linux/ArchLinux/<br />
#* ftp://ftp.mirror.tw/pub/ArchLinux/<br />
#* http://ftp.mirror.tw/pub/ArchLinux/<br />
<br />
# 教育网<br />
#* http://ftp.sjtu.edu.cn/pub/mirror2/www.archlinux.org/<br />
#* http://[2001:da8:200:900e:0:5efe:a66f:4482]/archlinux/www.archlinux.org/<br />
#* http://program.net9.org/archlinux/www.archlinux.org/<br />
#* http://mirror.bjtu.edu.cn/archlinux<br />
#* http://mirror6.bjtu.edu.cn/archlinux (IPv6, 北京交通大学)<br />
<br />
== 非官方镜像 ==<br />
'''These mirrors are not listed in <code>/etc/pacman.d/mirrorlist</code>.'''<br />
<br />
# 全球<br />
*http://prdownloads.sourceforge.net/archlinux/ ( Doesn't have recent ISO releases. Use it only if for some reason you want to use an older ISO. )<br />
<br />
# 澳大利亚<br />
*ftp://mirror.internode.on.net/pub/archlinux/<br />
<sub>[http://mirror.internode.on.net/pub/archlinux/ http]</sub><br />
<br />
# 马来西亚<br />
*http://oss.mmu.edu.my/distro/arch (ISOs only)<br />
*http://mirror.oscc.org.my/archlinux/<br />
<br />
# 挪威<br />
*ftp://jane.tihlde.org/pub/archlinux/<br />
<sub>[http://jane.tihlde.org/pub/archlinux/ http] </sub><br />
*http://power.klette.us/mirror/<br />
# 波兰<br />
*ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/<br />
[http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ http] - up-to-date, but no Core repository<br />
<br />
# 美国<br />
*ftp://ftp.osuosl.org/pub/archlinux/<br />
<sub>[http://ftp.osuosl.org/pub/archlinux/ http]</sub> (i686 only - ''current'' and ''extra'') - outdated<br />
*http://mirror.umoss.org/archlinux/<br />
<br />
#中国<br />
*http://mirrors.sohu.com/archlinux/<br />
<br />
== IPv6 镜像 ==<br />
*http://power.klette.us/mirror/ (挪威)<br />
*niue.belnet.be (比利时)<br />
*ftp.estpak.ee (爱沙尼亚)<br />
*patroklos.noc.ntua.gr (希腊)<br />
*ftp.heanet.ie (爱尔兰)<br />
*ftp.nluug.nl (荷兰)<br />
*ftp.surfnet.nl (荷兰)<br />
*ftp.sixnix.net/ftp6.sixnix.net (芬兰) - dead<br />
<br />
== Rsync 镜像 ==<br />
* 中国<br />
# rsync://archlinux.gooth.cn/archlinux<br />
<br />
* 美国<br />
# rsync://mirror.umoss.org/archlinux/ (全镜像,对学术机构不限流量)<br />
# rsync://mirror.rit.edu/archlinux/<br />
# rsync://mirror.umoss.org/archlinux/<br />
<br />
澳大利亚 <br />
# rsync://mirror.pacific.net.au/linux/archlinux/<br />
# rsync://mirror.aarnet.au/pub/archlinux/<br />
# rsync://mirror.internode.on.net/pub/archlinux/<br />
* 巴西<br />
# rsync://rsync.las.ic.unicamp.br/archlinux/<br />
* 加拿大<br />
# rsync://mirror.csclub.uwaterloo.ca/archlinux/<br />
* 法国<br />
# rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/<br />
# rsync://mir1.archlinuxfr.org/archlinux<br />
# rsync://mir2.archlinuxfr.org/archlinux<br />
* 德国<br />
# rsync://ftp5.gwdg.de/pub/linux/archlinux/<br />
# rsync: ftp.uni-kl.de::pub/linux/archlinux/<br />
# rsync://rsync.uni-bayreuth.de/archlinux/<br />
* 俄罗斯<br />
rsync://mirror.yandex.ru/archlinux/<br />
* 乌克兰<br />
# rsync://hell.org.ua/archlinux/<br />
* 挪威<br />
# rsync://jane.tihlde.org/pub/archlinux/</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=103420Mirrors (简体中文)2010-04-15T10:25:24Z<p>Ideal: /* 中国镜像 */</p>
<hr />
<div>[[Category:软件包管理|jx]]<br />
[[Category:HOWTOs (简体中文)|jx]]<br />
[[Category:简体中文]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|:Mirrors}}<br />
{{i18n_entry|简体中文|:Arch镜像 (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
<br />
== 启用您喜爱的镜像 ==<br />
<br />
pacman默认的core仓库配置如下:<br />
<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
如果你想使用一个欧洲镜像作为默认镜像,只需将它添加到<tt>Include</tt>行前:<br />
<br />
[core]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/i686</nowiki><br />
Include = /etc/pacman.d/mirrorlist<br />
<br><br />
'''edit:''' The release of pacman 3.1 introduced the /etc/pacman.d/mirrorlist with the variable $repo, no need to maintain separate list for each repository.<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', ''community'' and ''unstable''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''core'' and another (older) kernel module from ''extra'').'''<br />
<br />
== 官方镜像 ==<br />
<br />
This is a list of all known Arch Linux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know of a mirror that is not listed, please add it. Mirrors which are no longer updated or have been unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load [http://www.archlinux.org/ archlinux.org] in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
[http://users.archlinux.de/~gerbra/mirrorcheck.html This website] provides updates on the current status of the Arch mirrors and how up to date they are.<br />
<br />
'''Attention: Do not add new mirrors to the list below. If you want your mirror to be added to official list - file a feature request. In the meantime add it to the "Unofficial mirrors" list at the end of this page.'''<br />
<br />
=== 澳大利亚 ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/linux/archlinux/ http]</sub> <sub>[rsync://mirror.pacific.net.au/linux/archlinux/]</sub><br />
*ftp://mirror.aarnet.edu.au/pub/archlinux/ <sub>[http://mirror.aarnet.edu.au/pub/archlinux/ http]</sub> <sub>[rsync://mirror.aarnet.au/pub/archlinux/]</sub><br />
<br />
=== 奥地利 ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== 比利时 ===<br />
*ftp://ftp.belnet.be/mirror/archlinux.org/ <sub>[http://ftp.belnet.be/mirror/archlinux.org/ http]</sub><br />
<br />
=== 巴西 ===<br />
*ftp://archlinux.c3sl.ufpr.br/archlinux/ <sub>[http://archlinux.c3sl.ufpr.br/ http]</sub><br />
*ftp://ftp.las.ic.unicamp.br/pub/archlinux <sub>[http://www.las.ic.unicamp.br/pub/archlinux http]</sub> <sub>[rsync://rsync.las.ic.unicamp.br/archlinux rsync]</sub><br />
<br />
=== 加拿大 ===<br />
*ftp://mirror.csclub.uwaterloo.ca/archlinux/ <sub>[http://mirror.csclub.uwaterloo.ca/archlinux/ http]</sub> <sub>[rsync://mirror.csclub.uwaterloo.ca/archlinux/ rsync]</sub><br />
<br />
=== 捷克 ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== 爱沙尼亚 ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== 法国 ===<br />
*ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
*ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
*ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir2.archlinuxfr.org/archlinux rsync]</sub><br />
*http://mir.archlinux.fr/<br />
*ftp://ftp.free.fr/mirrors/ftp.archlinux.org/<br />
*ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/<br />
=== 德国 ===<br />
*ftp://ftp5.gwdg.de/pub/linux/archlinux/ <sub>[http://ftp5.gwdg.de/pub/linux/archlinux/ http]</sub> <sub>[rsync://ftp5.gwdg.de/pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/archlinux/ http]</sub><br />
*ftp://ftp.archlinuxppc.org/i686/<br />
*ftp://ftp.uni-kl.de/pub/linux/archlinux/ <sub>[http://ftp.uni-kl.de/pub/linux/archlinux/ http]</sub> <sub>[rsync: ftp.uni-kl.de::pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.uni-bayreuth.de/pub/linux/archlinux <sub>[http://ftp.uni-bayreuth.de/linux/archlinux http]</sub> <sub>[rsync://rsync.uni-bayreuth.de/archlinux/ rsync]</sub><br />
<br />
=== 英国 ===<br />
*http://www.mirrorservice.org/sites/ftp.archlinux.org/<br />
*ftp://mirrors.uk2.net/pub/archlinux/ <sub>[http://archlinux.mirrors.uk2.net/ http]</sub><br />
<br />
=== 希腊 ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== 匈牙利 ===<br />
*ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/<br />
<br />
=== 爱尔兰 ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== 以色列 ===<br />
*http://mirror.isoc.org.il/pub/archlinux/<br />
<br />
=== 意大利 ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== 荷兰 ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub><br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub><br />
<br />
=== 挪威 ===<br />
*http://arch.likbilen.com/ (rsync 可用)<br />
<br />
=== 波兰 ===<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
*ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ [http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ http]<br />
*http://unix.net.pl/archlinux.org/<br />
<br />
=== 葡萄牙 ===<br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
<br />
=== 罗马尼亚 ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== 俄罗斯 ===<br />
*ftp://mirror.yandex.ru/archlinux/ <sub>[http://mirror.yandex.ru/archlinux/ http]</sub> (rsync 可用)<br />
*http://archlinux.freeside.ru/<br />
<br />
=== 瑞典 ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/ http]</sub><br />
<br />
=== 瑞士 ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== 土耳其 ===<br />
*http://server.elsistech.com/archlinux/<br />
<br />
=== 乌克兰 ===<br />
*ftp://hell.org.ua/archlinux/ (rsync 可用)<br />
*ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ <sub>[http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ http]</sub><br />
<br />
=== 美国 ===<br />
*ftp://ftp.archlinux.org/<br />
*ftp://locke.suu.edu/linux/dist/archlinux/<br />
*http://archlinux.unixheads.org/<br />
*ftp://mirrors.easynews.com/linux/archlinux/ <sub>[http://mirrors.easynews.com/linux/archlinux/ http]</sub><br />
*ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/ [http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/ http]<br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub> (rsync 可用)<br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub><br />
*http://holmes.umflint.edu/archlinux/<br />
*http://mirror.neotuli.net/<br />
*ftp://mirror.rit.edu/archlinux/ <sub>[http://mirror.rit.edu/archlinux/ http]</sub> <sub>[rsync://mirror.rit.edu/archlinux/ rsync]</sub><br />
* http://schlunix.org/archlinux/<br />
* http://mirror.umoss.org/archlinux/ <sub>[rsync://mirror.umoss.org/archlinux/ rsync]</sub><br />
<br />
=== 越南 ===<br />
*ftp://ftp.indochinalinux.com/archlinux/ (DNS 经常出问题,IP 是 202.78.230.5)<br />
<br />
== 中国镜像 ==<br />
# 电信<br />
#* http://mirrors.163.com/archlinux/ (隔天更新,速度很快)<br />
<br />
# 网通<br />
#* ftp://xde.gooth.cn/<br />
#* http://mirrors.sohu.com/archlinux/<br />
<br />
# 台湾<br />
#* ftp://ftp.tku.edu.tw/Linux/ArchLinux/<br />
#* http://ftp.tku.edu.tw/Linux/ArchLinux/<br />
#* ftp://ftp.mirror.tw/pub/ArchLinux/<br />
#* http://ftp.mirror.tw/pub/ArchLinux/<br />
# 教育网<br />
#* http://ftp.sjtu.edu.cn/pub/mirror2/www.archlinux.org/<br />
#* http://[2001:da8:200:900e:0:5efe:a66f:4482]/archlinux/www.archlinux.org/<br />
#* http://program.net9.org/archlinux/www.archlinux.org/<br />
#* http://mirror.bjtu.edu.cn/archlinux<br />
#* http://mirror6.bjtu.edu.cn/archlinux (IPv6, 北京交通大学)<br />
<br />
== 非官方镜像 ==<br />
'''These mirrors are not listed in <code>/etc/pacman.d/mirrorlist</code>.'''<br />
<br />
# 全球<br />
*http://prdownloads.sourceforge.net/archlinux/ ( Doesn't have recent ISO releases. Use it only if for some reason you want to use an older ISO. )<br />
<br />
# 澳大利亚<br />
*ftp://mirror.internode.on.net/pub/archlinux/<br />
<sub>[http://mirror.internode.on.net/pub/archlinux/ http]</sub><br />
<br />
# 马来西亚<br />
*http://oss.mmu.edu.my/distro/arch (ISOs only)<br />
*http://mirror.oscc.org.my/archlinux/<br />
<br />
# 挪威<br />
*ftp://jane.tihlde.org/pub/archlinux/<br />
<sub>[http://jane.tihlde.org/pub/archlinux/ http] </sub><br />
*http://power.klette.us/mirror/<br />
# 波兰<br />
*ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/<br />
[http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ http] - up-to-date, but no Core repository<br />
<br />
# 美国<br />
*ftp://ftp.osuosl.org/pub/archlinux/<br />
<sub>[http://ftp.osuosl.org/pub/archlinux/ http]</sub> (i686 only - ''current'' and ''extra'') - outdated<br />
*http://mirror.umoss.org/archlinux/<br />
<br />
#中国<br />
*http://mirrors.sohu.com/archlinux/<br />
<br />
== IPv6 镜像 ==<br />
*http://power.klette.us/mirror/ (挪威)<br />
*niue.belnet.be (比利时)<br />
*ftp.estpak.ee (爱沙尼亚)<br />
*patroklos.noc.ntua.gr (希腊)<br />
*ftp.heanet.ie (爱尔兰)<br />
*ftp.nluug.nl (荷兰)<br />
*ftp.surfnet.nl (荷兰)<br />
*ftp.sixnix.net/ftp6.sixnix.net (芬兰) - dead<br />
<br />
== Rsync 镜像 ==<br />
* 中国<br />
# rsync://archlinux.gooth.cn/archlinux<br />
<br />
* 美国<br />
# rsync://mirror.umoss.org/archlinux/ (全镜像,对学术机构不限流量)<br />
# rsync://mirror.rit.edu/archlinux/<br />
# rsync://mirror.umoss.org/archlinux/<br />
<br />
澳大利亚 <br />
# rsync://mirror.pacific.net.au/linux/archlinux/<br />
# rsync://mirror.aarnet.au/pub/archlinux/<br />
# rsync://mirror.internode.on.net/pub/archlinux/<br />
* 巴西<br />
# rsync://rsync.las.ic.unicamp.br/archlinux/<br />
* 加拿大<br />
# rsync://mirror.csclub.uwaterloo.ca/archlinux/<br />
* 法国<br />
# rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/<br />
# rsync://mir1.archlinuxfr.org/archlinux<br />
# rsync://mir2.archlinuxfr.org/archlinux<br />
* 德国<br />
# rsync://ftp5.gwdg.de/pub/linux/archlinux/<br />
# rsync: ftp.uni-kl.de::pub/linux/archlinux/<br />
# rsync://rsync.uni-bayreuth.de/archlinux/<br />
* 俄罗斯<br />
rsync://mirror.yandex.ru/archlinux/<br />
* 乌克兰<br />
# rsync://hell.org.ua/archlinux/<br />
* 挪威<br />
# rsync://jane.tihlde.org/pub/archlinux/</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=98941Mirrors2010-03-04T06:19:22Z<p>Ideal: /* China */</p>
<hr />
<div>[[Category:About Arch (English)]] [[Category:Package management (English)]] [[Category:HOWTOs (English)]]<br />
{{i18n|Mirrors}}<br />
{{Article summary start|Summary}}<br />
{{Article summary text|Updating and managing package mirrors}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|pacman}}<br />
{{Article summary wiki|reflector}}<br />
{{Article summary end}}<br />
<br />
==Enabling a specific mirror==<br />
The preferred method is to uncomment the mirror in question in {{filename|/etc/pacman.d/mirrorlist}}:<br />
# Any<br />
# Server = <nowiki>ftp://mirrors.kernel.org/archlinux/$repo/os/i686</nowiki><br />
'''Server = <nowiki>http://mirrors.kernel.org/archlinux/$repo/os/i686</nowiki>'''<br />
<br />
See [[#Mirror status]] and [[#List by speed]] for tools that help choosing mirrors.<br />
<br />
{{Tip|Uncomment 5 favorite mirrors and place them at the top of the mirrorlist file. That way it's easy to find them and move them around if the first mirror on the list has problems. It also makes merging mirrorlist updates easier.}}<br />
<br />
It is also possible to specify mirrors in {{Filename|/etc/pacman.conf}}. For the ''[core]'' repository, the default setup is:<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
To use the ''HostEurope'' mirror as a default mirror, add it before the {{codeline|Include}} line:<br />
[core]<br />
'''Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/i686</nowiki>'''<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
pacman will now try to connect to this mirror first. Proceed to do the same for ''[testing]'', ''[extra]'', and ''[community]'', if applicable.<br />
<br />
{{Note|If mirrors have been stated directly in {{filename|pacman.conf}}, remember to use the same mirror for all repositories. Otherwise packages that are incompatible to each other may be installed, like kernel26 from ''[core]'' and an older kernel module from ''[extra]''.}}<br />
<br />
==Mirror status==<br />
Check the status of the Arch mirrors and how updated they are by visiting: [http://users.archlinux.de/~gerbra/mirrorcheck.html Mirrorcheck] and/or [http://www.archlinux.de/?page=MirrorStatus Mirror status].<br />
<br />
Optionally install {{package Official|reflector}}, an utility that generates a mirrorlist using Mirrorcheck's list. reflector is available in the community repo.<br />
<br />
# pacman -S reflector<br />
<br />
Or manually check how up-to-date a mirror is by:<br />
#picking a server and browsing to "extra/os/";<br />
#accesing http://www.archlinux.org/ in another browser tab or window; and<br />
#comparing the last-modified date of the {{filename|i686}} directory on the mirror to the ''[extra]'' date on the homepage, in the ''Package Repositories'' box to the right.<br />
<br />
{{Note|Many sites also provide HTTP service, but keep in mind that pacman relies on FTP to determine if a repository is updated. With HTTP it fetches the repository database each time {{codeline|pacman -Sy}} is ran, even if it didn't change since the last run.}}<br />
<br />
==Sorting mirrors==<br />
If not using reflector, which has the ability to sort mirrors by both how updated they are and their speed, follow this demonstration of manual mirror sorting.<br />
<br />
===List by speed===<br />
Don't forget to take full advantage of using the local fastest mirror, which can be determined via the included python script, {{filename|/usr/bin/rankmirrors}}. Taking this in mind, use pacman to install {{package Official|python}} if not already present:<br />
# pacman -S python <br />
<br />
Use {{codeline|cd}} to switch to the {{filename|/etc/pacman.d}} directory:<br />
# cd /etc/pacman.d<br />
<br />
Backup the existing {{Filename|/etc/pacman.d/mirrorlist}}:<br />
# cp mirrorlist mirrorlist.backup<br />
<br />
Edit {{filename|mirrorlist.backup}} and uncomment mirrors for testing with rankmirrors:<br />
# nano mirrorlist.backup<br />
<br />
Optionally run the following {{codeline|sed}} line to uncomment every mirror:<br />
# sed '/^#\S/ s|#||' -i mirrorlist.backup<br />
<br />
Finally, rank the mirrors. Operand {{codeline|-n 6}} means only output the 6 fastest mirrors: <br />
# rankmirrors -n 6 mirrorlist.backup > mirrorlist<br />
<br />
'''Force pacman to refresh the package lists'''<br><br />
After creating/editing {{Filename|/etc/pacman.d/mirrorlist}}, (manually or by using {{codeline|rankmirrors}}) issue the following command:<br />
# pacman -Syy<br />
<br />
{{Tip|Passing two {{codeline|--refresh}} or {{codeline|-y}} flags forces pacman to refresh all package lists even if they are considered to be up to date. Issuing {{codeline|pacman -Syy}} ''whenever changing to a new mirror'' is good practice and will avoid possible issues.}}<br />
<br />
===Combined listing by speed and status===<br />
It is not a good idea to just use the fastest mirrors, since the fastest mirrors might be out of date. The preferred way would be to use [[#List by speed]], then sorting those 6 fastest mirrors by their [[#Mirror status]]. <br />
<br />
Simply visit either one or both [[#Mirror status]] links and sort them by the ones that are more up to date. Move the more up to date mirrors to the top of {{Filename|/etc/pacman.d/mirrorlist}} and if the mirrors are way out of date simply don't use those; repeat the process leaving out the outdated mirrors. So this ends up with a total of 6 mirrors that are sorted by speed and status, leaving out outdated mirrors. <br />
<br />
When having mirror issues the above should be repeated. Or repeat once in a while even if not having mirror problems, to keep {{Filename|/etc/pacman.d/mirrorlist}} up to date.<br />
<br />
==Official mirrors==<br />
{{Note|1=This list is ''outdated''; it is based on pacman-mirrorlist-20091206 and the latest release is [http://www.archlinux.org/packages/?q=pacman-mirrorlist 20100131].}}<br />
<br />
'''Attention:''' Do ''not'' add new mirrors to the list below. If you want your mirror to be added to official list, file a feature request and wait for approval before listing it here. In the meantime add it to the [[#Unofficial mirrors]] list at the end of this page.<br />
<br />
===Global===<br />
*ftp://mirrors.kernel.org/archlinux/$repo/os/i686<br />
*http://mirrors.kernel.org/archlinux/$repo/os/i686<br />
<br />
===Australia===<br />
*ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686<br />
*http://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686<br />
*ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/i686<br />
*http://ftp.iinet.net.au/pub/archlinux/$repo/os/i686<br />
*ftp://mirror.internode.on.net/pub/archlinux/$repo/os/i686<br />
*http://mirror.internode.on.net/pub/archlinux/$repo/os/i686<br />
*ftp://ftp.netspace.net.au/pub/archlinux/$repo/os/i686<br />
*http://ftp.netspace.net.au/pub/archlinux/$repo/os/i686<br />
*ftp://mirror.optus.net/archlinux/$repo/os/i686<br />
*http://mirror.optus.net/archlinux/$repo/os/i686<br />
*ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686<br />
*http://mirror.pacific.net.au/linux/archlinux/$repo/os/i686<br />
<br />
===Austria===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/i686<br />
*http://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/i686<br />
<br />
===Belgium===<br />
*ftp://ftp.belnet.be/packages/archlinux/$repo/os/i686<br />
*http://ftp.belnet.be/mirror/archlinux.org/$repo/os/i686<br />
*ftp://archlinux.mirror.kangaroot.net/pub/archlinux/$repo/os/i686<br />
*http://archlinux.mirror.kangaroot.net/$repo/os/i686<br />
<br />
===Brazil===<br />
*ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/i686<br />
*http://archlinux.c3sl.ufpr.br/$repo/os/i686<br />
*ftp://ftp.las.ic.unicamp.br/pub/archlinux/$repo/os/i686<br />
*http://www.las.ic.unicamp.br/pub/archlinux/$repo/os/i686<br />
*http://pet.inf.ufsc.br/mirrors/archlinux/$repo/os/i686<br />
<br />
===Bulgaria===<br />
*http://archlinux.igor.onlinedirect.bg/$repo/os/i686<br />
<br />
===Canada===<br />
*ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/i686<br />
*http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/i686<br />
*ftp://mirrors.portafixe.com/archlinux/$repo/os/i686<br />
*http://mirrors.portafixe.com/archlinux/$repo/os/i686<br />
*http://mirror.twilightlair.net/arch/$repo/os/i686<br />
<br />
===Chile===<br />
*ftp://mirror.archlinux.cl/$repo/os/i686<br />
<br />
===China===<br />
*http://mirrors.163.com/archlinux/$repo/os/i686<br />
*ftp://mirror.lupaworld.com/archlinux/$repo/os/i686<br />
*http://mirror.lupaworld.com/archlinux/$repo/os/i686<br />
*http://mirror.bjtu.edu.cn/archlinux/$repo/os/i686<br />
*http://mirror6.bjtu.edu.cn/archlinux/$repo/os/i686<br />
<br />
===Czech Republic===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/i686<br />
*http://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/i686<br />
<br />
===Denmark===<br />
*ftp://mirrors.dotsrc.org/archlinux/$repo/os/i686<br />
*http://mirrors.dotsrc.org/archlinux/$repo/os/i686<br />
*ftp://ftp.klid.dk/archlinux/$repo/os/i686<br />
<br />
===Estonia===<br />
*ftp://ftp.estpak.ee/pub/archlinux/$repo/os/i686<br />
*http://ftp.estpak.ee/pub/archlinux/$repo/os/i686<br />
<br />
===Finland===<br />
*ftp://mirror.archlinux.fi/archlinux/$repo/os/i686<br />
*http://mirror.archlinux.fi/archlinux/$repo/os/i686<br />
<br />
===France===<br />
*http://mir.archlinux.fr/$repo/os/i686<br />
*http://mir1.archlinux.fr/archlinux/$repo/os/i686<br />
*ftp://mir1.archlinux.fr/archlinux/$repo/os/i686<br />
*ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/i686<br />
*http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.free.fr/mirrors/ftp.archlinux.org/$repo/os/i686<br />
*ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/i686<br />
<br />
===Germany===<br />
*http://archlinux.limun.org/$repo/os/i686<br />
*ftp://www.archlinuxppc.org/i686/$repo/os/i686<br />
*ftp://mirror.giantix-server.de/archlinux/$repo/os/i686<br />
*http://mirror.giantix-server.de/archlinux/$repo/os/i686<br />
*ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/i686<br />
*http://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/i686<br />
*http://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/i686<br />
*ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/i686<br />
*http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/i686<br />
*ftp://mirrors2.portafixe.com/archlinux/$repo/os/i686<br />
*http://mirrors2.portafixe.com/archlinux/$repo/os/i686<br />
*ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/i686<br />
*http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/i686<br />
*ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/i686<br />
*http://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.uni-bayreuth.de/pub/linux/archlinux/$repo/os/i686<br />
*http://ftp.uni-bayreuth.de/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/i686<br />
*http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.wh-stuttgart.net/archlinux/$repo/os/i686<br />
<br />
===Great Britain===<br />
*ftp://mirror.lividpenguin.com/pub/archlinux/$repo/os/i686<br />
*http://mirror.lividpenguin.com/pub/archlinux/$repo/os/i686<br />
*http://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/i686<br />
*ftp://mirrors.uk2.net/pub/archlinux/$repo/os/i686<br />
*http://archlinux.mirrors.uk2.net/$repo/os/i686<br />
<br />
===Greece===<br />
*ftp://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/i686<br />
*http://ftp.cc.uoc.gr/mirrors/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686<br />
*http://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.otenet.gr/pub/linux/archlinux/$repo/os/i686<br />
*http://ftp.otenet.gr/linux/archlinux/$repo/os/i686<br />
<br />
===Hungary===<br />
*ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/i686<br />
<br />
===India===<br />
*ftp://mirror.cse.iitk.ac.in/archlinux/$repo/os/i686<br />
*http://mirror.cse.iitk.ac.in/archlinux/$repo/os/i686<br />
<br />
===Indonesia===<br />
*ftp://archlinux.cbn.net.id/pub/archlinux/$repo/os/i686<br />
*http://archlinux.cbn.net.id/$repo/os/i686<br />
*ftp://mirror.unej.ac.id/archlinux/$repo/os/i686<br />
*http://mirror.unej.ac.id/archlinux/$repo/os/i686<br />
<br />
===Ireland===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/i686<br />
*http://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/i686<br />
<br />
===Israel===<br />
*http://mirror.isoc.org.il/pub/archlinux/$repo/os/i686<br />
<br />
===Italy===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/$repo/os/i686<br />
*http://mi.mirror.garr.it/mirrors/archlinux/$repo/os/i686<br />
<br />
===Japan===<br />
*ftp://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/$repo/os/i686<br />
*http://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/$repo/os/i686<br />
<br />
===Kazakhstan===<br />
*ftp://archlinux.linuxforum.kz/$repo/os/i686<br />
*http://archlinux.linuxforum.kz/$repo/os/i686<br />
<br />
===Latvia===<br />
*http://archlinux.goodsoft.lv/$repo/os/i686<br />
<br />
===Lithuania===<br />
*ftp://atviras.lt/archmirror/$repo/os/i686<br />
*http://atviras.lt/archmirror/$repo/os/i686<br />
<br />
===Netherlands===<br />
*ftp://mirror.leaseweb.com/archlinux/$repo/os/i686<br />
*http://mirror.leaseweb.com/archlinux/$repo/os/i686<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/$repo/os/i686<br />
*http://ftp.nluug.nl/pub/metalab/distributions/archlinux/$repo/os/i686<br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/$repo/os/i686<br />
*http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/$repo/os/i686<br />
<br />
===New Caledonia===<br />
*ftp://archlinux.nautile.nc/archlinux/$repo/os/i686<br />
*http://archlinux.nautile.nc/archlinux/$repo/os/i686<br />
<br />
===Norway===<br />
*ftp://mirror.archlinux.no/$repo/os/i686<br />
*http://mirror.archlinux.no/$repo/os/i686<br />
<br />
===Poland===<br />
*ftp://mirror.icis.pcz.pl/archlinux/$repo/os/i686<br />
*ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/i686<br />
*http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/i686<br />
*ftp://ftp.pwsz.elblag.pl/pub/linux/distributions/archlinux/$repo/os/i686<br />
*http://ftp.pwsz.elblag.pl/pub/linux/distributions/archlinux/$repo/os/i686<br />
*ftp://ftp.tpnet.pl/pub/linux/archlinux/$repo/os/i686<br />
*http://unix.net.pl/archlinux.org/$repo/os/i686<br />
<br />
===Portugal===<br />
*ftp://cesium.di.uminho.pt/pub/archlinux/$repo/os/i686<br />
*http://cesium.di.uminho.pt/pub/archlinux/$repo/os/i686<br />
*http://darkstar.ist.utl.pt/archlinux/$repo/os/i686<br />
*ftp://ftp.nux.ipb.pt/pub/dists/archlinux/$repo/os/i686<br />
*http://ftp.nux.ipb.pt/pub/dists/archlinux/$repo/os/i686<br />
*ftp://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/i686<br />
*http://ftp.rnl.ist.utl.pt/pub/archlinux/$repo/os/i686<br />
<br />
===Romania===<br />
*http://mirror.archlinux.ro/archlinux/$repo/os/i686<br />
*ftp://ftp.roedu.net/mirrors/archlinux.org/$repo/os/i686<br />
*http://ftp.roedu.net/mirrors/archlinux.org/$repo/os/i686<br />
<br />
===Russia===<br />
*http://archlinux.freeside.ru/$repo/os/i686<br />
*ftp://mirror.svk.su/archlinux/$repo/os/i686<br />
*http://mirror.svk.su/archlinux/$repo/os/i686<br />
*ftp://mirror.yandex.ru/archlinux/$repo/os/i686<br />
*http://mirror.yandex.ru/archlinux/$repo/os/i686<br />
<br />
===Spain===<br />
*ftp://ftp.rediris.es/mirror/archlinux/$repo/os/i686<br />
*http://sunsite.rediris.es/mirror/archlinux/$repo/os/i686<br />
<br />
===Sweden===<br />
*ftp://ftp.df.lth.se/pub/archlinux/$repo/os/i686<br />
*http://ftp.df.lth.se/pub/archlinux/$repo/os/i686<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/i686<br />
*http://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.gigabit.nu/$repo/os/i686<br />
*http://ftp.gigabit.nu/$repo/os/i686<br />
*ftp://ftp.port80.se/archlinux/$repo/os/i686<br />
*http://ftp.port80.se/archlinux/$repo/os/i686<br />
<br />
===Switzerland===<br />
*ftp://archlinux.puzzle.ch/$repo/os/i686<br />
*http://archlinux.puzzle.ch/$repo/os/i686<br />
<br />
===Taiwan===<br />
*ftp://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/i686<br />
*http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/i686<br />
*ftp://ftp.mirror.tw/pub/ArchLinux/$repo/os/i686<br />
*http://ftp.mirror.tw/pub/ArchLinux/$repo/os/i686<br />
<br />
===Turkey===<br />
*ftp://ftp.linux.org.tr/archlinux/$repo/os/i686<br />
<br />
===Ukraine===<br />
*ftp://archlinux.hell.org.ua/archlinux/$repo/os/i686<br />
*http://archlinux.hell.org.ua/archlinux/$repo/os/i686<br />
*ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/i686<br />
*http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/i686<br />
<br />
===United States===<br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686<br />
*http://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686<br />
*ftp://mirrors.easynews.com/linux/archlinux/$repo/os/i686<br />
*http://mirrors.easynews.com/linux/archlinux/$repo/os/i686<br />
*ftp://ftp.archlinux.org/$repo/os/i686<br />
*http://mirrors.gigenet.com/archlinux/$repo/os/i686<br />
*ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/i686<br />
*http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/i686<br />
*ftp://mirrors.hosef.org/archlinux/$repo/os/i686<br />
*http://mirrors.hosef.org/archlinux/$repo/os/i686<br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686<br />
*http://distro.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686<br />
*http://archlinux.linuxfreedom.com/$repo/os/i686<br />
*ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/i686<br />
*http://lug.mtu.edu/archlinux/ftpfull/$repo/os/i686<br />
*ftp://mirrors.xmission.com/archlinux/$repo/os/i686<br />
*http://mirrors.xmission.com/archlinux/$repo/os/i686<br />
*ftp://mirror.rit.edu/archlinux/$repo/os/i686<br />
*http://mirror.rit.edu/archlinux/$repo/os/i686<br />
*http://schlunix.org/archlinux/$repo/os/i686<br />
*http://archlinux.umflint.edu/$repo/os/i686<br />
*http://mirror.umoss.org/archlinux/$repo/os/i686<br />
<br />
===Vietnam===<br />
*ftp://202.78.230.5/archlinux/$repo/os/i686<br />
*ftp://ftp.indochinalinux.com/archlinux/$repo/os/i686<br />
*ftp://mirror-fpt-telecom.fpt.net/archlinux/$repo/os/i686<br />
*http://mirror-fpt-telecom.fpt.net/archlinux/$repo/os/i686<br />
<br />
==Unofficial mirrors==<br />
These mirrors are ''not'' listed in {{Filename|/etc/pacman.d/mirrorlist}}.<br />
<br />
===Global===<br />
*http://prdownloads.sourceforge.net/archlinux/ - ''Doesn't have recent ISO releases. Use it only if for getting older ISOs.''<br />
<br />
===Belarus===<br />
*ftp://mirror.datacenter.by/pub/archlinux/ <sub>[http://mirror.datacenter.by/pub/archlinux/ http]</sub> <sub>rsync://mirror.datacenter.by/arch/</sub><br />
*ftp://ftp.byfly.by/pub/archlinux/ <sub>[http://ftp.byfly.by/pub/archlinux/ http]</sub> <sub>rsync://ftp.byfly.by/ftp/pub/archlinux/</sub><br />
*http://linux.solo.by/archlinux/<br />
<br />
===Bulgaria===<br />
*http://archlinux.igor.onlinedirect.bg/ - <sub>[http://archlinux.igor.onlinedirect.bg http]</sub><br />
*ftp://archlinux.igor.onlinedirect.bg/linux/archlinux/ - <sub>[http://archlinux.igor.onlinedirect.bg http]</sub><br />
<br />
===China===<br />
*http://mirrors.lcuc.org.cn/archlinux/<br />
*http://mirror.lupaworld.com/archlinux/<br />
*http://public.gooth.cn/archlinux/ - ''Only includes i686''<br />
*http://mirrors.163.com/archlinux/<br />
*http://mirror.bjtu.edu.cn/archlinux/<br />
*http://mirrors.sohu.com/archlinux/<br />
<br />
===Germany===<br />
*ftp://ftp.uni-erlangen.de/mirrors/archlinux/ - <sub>[http://ftp.uni-erlangen.de/mirrors/archlinux/ http]</sub><br />
<br />
===Great Britain===<br />
*ftp://mirror.lividpenguin.com/pub/archlinux/ - <sub>[http://mirror.lividpenguin.com/pub/archlinux/ http]</sub><br />
<br />
===Malaysia===<br />
*http://oss.mmu.edu.my/pub/distro/arch - ''ISOs only''<br />
*http://mirror.oscc.org.my/archlinux/<br />
<br />
===New Zealand===<br />
*http://mirror.ihug.co.nz/archlinux/<br />
<br />
===Norway===<br />
*http://power.klette.us/mirror/<br />
<br />
===Poland===<br />
*ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ - <sub>[http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ http]</sub> - ''Up-to-date, but no [core] repository''<br />
<br />
===Russia===<br />
*http://hatred.homelinux.net/archlinux/ - ''Vladivostok, without iso, with <sub>[http://hatred.homelinux.net/wiki/proekty:3spy:start 3SPY]</sub> project repos''<br />
<br />
===South Africa===<br />
*http://archlinux.mirror.ac.za/ - ''TENET Mirror''<br />
*ftp://archlinux.mirror.ac.za/<br />
*http://ftp.sun.ac.za/ftp/pub/mirrors/archlinux/ - ''Stellenbosch University''<br />
*ftp://ftp.sun.ac.za/pub/mirrors/archlinux/<br />
*http://ftp.leg.uct.ac.za/pub/linux/arch/ - ''University of Cape Town''<br />
*ftp://ftp.leg.uct.ac.za/pub/linux/arch/<br />
<br />
===Spain===<br />
*ftp://ftp.udc.es/mirror/archlinux/ - <sub>[http://ftp.udc.es/mirror/archlinux/ http]</sub> <sub>rsync://ftp.udc.es/mirror/archlinux/</sub><br />
<br />
===United States===<br />
*http://archlinux.linuxfreedom.com - ''Contains all of the ISO images''<br />
*ftp://mirrors.acm.jhu.edu/arch/ - <sub>[http://mirrors.acm.jhu.edu/arch http]</sub> <sub>rsync://mirrors.acm.jhu.edu/arch/</sub><br />
*ftp://ftp.osuosl.org/pub/archlinux/ - <sub>[http://ftp.osuosl.org/pub/archlinux/ http]</sub><br />
<br />
==IPv6-ready mirrors==<br />
*http://power.klette.us/mirror/ (Norway)<br />
*http://arch.iskrembilen.com/ (Norway, rsync available)<br />
*niue.belnet.be (Belgium)<br />
*ftp.estpak.ee (Estonia)<br />
*patroklos.noc.ntua.gr (Greece)<br />
*ftp.heanet.ie (Ireland)<br />
*ftp.nluug.nl (Netherlands)<br />
*ftp.surfnet.nl (Netherlands)<br />
*ftp.sixnix.net/ftp6.sixnix.net (Finland) - dead<br />
*http://mirror6.bjtu.edu.cn/archlinux (China)<br />
<br />
==Troubleshooting==<br />
<br />
===Out-of-sync mirrors: corrupted packages/file not found===<br />
<!-- Here or [[pacman]]? Seems like a mirror issue more than pacman... --><br />
Issues regarding out-of-sync mirrors pointed out in [http://www.archlinux.org/news/482/ this news post] may have already been sorted out for most users, but in the event that problems of this nature present themselves again, simply try to see if the packages are present in the [testing] repository.<br />
<br />
After having synced with {{Codeline|pacman -Sy}}, use this command:<br />
# pacman -Ud $(pacman -Sup | tail -n +2 | sed -e 's,/\(core\|extra\)/,/testing/,' \<br />
-e 's,/\(community\)/,/\1-testing/,')<br />
<br />
Doing so could help in any occasion were packages in the mirror haven't been synced to [core/extra], and are still residing in [testing]. It is perfectly safe to install from [testing] in this case since the packages are being matched by version and release numbers.<br />
<br />
In any event, it is best to switch mirrors and sync with {{Codeline|pacman -Syy}} than resorting to an alternate repository. However, all or some of the mirrors may at times be out-of-sync to some degree.<br />
<br />
====Using all mirrors====<br />
To emulate {{Codeline|pacman -Su'}}s behavior of going through the entire mirror list, use this script:<br />
{{File|name=~/bin/pacup|content=<br />
<nowiki><br />
#!/bin/bash<br />
<br />
# Pacman will not exit on the first error. Comment the line below to<br />
# try from [testing] directly.<br />
pacman -Su "$@" && exit<br />
<br />
while read -r pkg; do<br />
if pacman -Ud "$pkg"; then<br />
continue<br />
else<br />
while read -r mirror; do<br />
pacman -Ud $(sed "s,.*\(/\(community-\)*testing/os/\(i686\|x86_64\)/\),$mirror\1," <<<"$pkg") &&<br />
break<br />
done < <(sed -ne 's,^ *Server *= *\|/$repo/os/\(i686\|x86_64\).*,,gp' \<br />
</etc/pacman.d/mirrorlist | tail -n +2 )<br />
fi<br />
done < <(pacman -Sup | tail -n +2 | sed -e 's,/\(core\|extra\)/,/testing/,' \<br />
-e 's,/\(community\)/,/\1-testing/,')<br />
</nowiki><br />
}}</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=87962Mirrors2009-12-17T10:42:46Z<p>Ideal: /* IPv6-ready mirrors */</p>
<hr />
<div>[[Category: About Arch (English)]]<br />
[[Category:Package management (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|:Mirrors}}<br />
{{i18n_entry|简体中文|:Arch镜像 (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
== Enabling your favorite mirror ==<br />
<br />
The default pacman configuration ({{Filename|/etc/pacman.conf}}) for ''core'' looks like this:<br />
<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
If you want to use the HostEurope mirror as your default mirror, just add it before the <tt>Include</tt> line:<br />
<br />
[core]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/i686</nowiki><br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
{{Note| The release of pacman 3.1 introduced the {{Filename|/etc/pacman.d/mirrorlist}} with the variable $repo, no need to maintain separate list for each repository.}}<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', and ''community'''.<br />
<br />
{{Warning| Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''core'' and another (older) kernel module from ''extra'').}}<br />
<br />
== Mirror list ==<br />
<br />
This is a list of all known Arch Linux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://repos.archlinux.org/viewvc.cgi/pacman-mirrorlist/trunk/ files in {{Filename|/etc/pacman.d/}}. If you know of a mirror that is not listed, please add it. Mirrors which are no longer updated or have been unavailable for a long time can be deleted.<br />
<br />
==Mirror status==<br />
<br />
You can check the status of the Arch mirrors and how up to date they are, by visiting: http://users.archlinux.de/~gerbra/mirrorcheck.html and/or http://www.archlinux.de/?page=MirrorStatus<br />
<br />
Or<br />
<br />
Check just how up-to-date your chosen mirror is by:<br />
# pick a server and browse to "extra/os/"<br />
# load http://www.archlinux.org/ in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br />
{{Note| Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run 'pacman -Sy', even if it didn't change since the last run.}}<br />
<br />
== Sort your mirrors by their speed ==<br />
Don't forget to take full advantage of using the fastest mirror for ''you'' which you can determine via the included python script, {{filename|/usr/bin/rankmirrors}}. First, use pacman to install python if you haven't already done so:<br />
# pacman -S python <br />
'''cd''' to the /etc/pacman.d/ directory:<br />
# cd /etc/pacman.d<br />
Backup your existing {{Filename|/etc/pacman.d/mirrorlist}}:<br />
# cp mirrorlist mirrorlist.backup<br />
<br />
Edit{{filename| mirrorlist.backup}} and uncomment mirrors you want to test with rankmirrors:<br />
# nano mirrorlist.backup<br />
<br />
Run the following {{codeline|sed}} line to uncomment every mirror:<br />
# sed '/^#\S/ s|#||' -i mirrorlist.backup<br />
<br />
Finally, rank the mirrors. Operand {{codeline|-n 6}} means only output the 6 fastest mirrors: <br />
# rankmirrors -n 6 mirrorlist.backup > mirrorlist<br />
<br />
'''Force pacman to refresh the package lists'''<br />
<br />
After creating/editing your {{Filename|/etc/pacman.d/mirrorlist}}, (manually or by using /usr/bin/rankmirrors) issue the following command:<br />
# pacman -Syy<br />
{{Tip| Passing two --refresh or -y flags forces pacman to refresh all package lists even if they are considered to be up to date. Issuing pacman -Syy ''whenever a mirror is changed'', is good practice and will avoid possible headaches.}}<br />
<br />
===Combining Sort your mirrors by their speed with Mirror status===<br />
It is not a good idea to just use the fastest mirror(s), since the fastest mirror(s) might be out of date. The preferred way would be, to use [[Mirrors#Sort your mirrors by their speed]]. Then sorting those 6 fastest mirrors, by their [[Mirror#Mirror status]]. <br />
<br />
Simply visit either one or both [[Mirrors#Mirror status]] links and sort them by the ones that are more up to date. Move the more up to date mirror(s) to the top of {{Filename|/etc/pacman.d/mirrorlist}} and if the mirror(s) are way out of date simply don't use those; repeat the process leaving out the outdated mirror(s). So you end up with a total of 6 mirrors that are sorted by speed and status, leaving out outdated mirrors. <br />
<br />
When having mirror issues the above should be repeated. Or repeat once in a while even if you don't have mirror issues, too keep {{Filename|/etc/pacman.d/mirrorlist}} up to date.<br />
<br />
== Official mirrors ==<br />
'''Attention: Do not add new mirrors to the list below. If you want your mirror to be added to official list - file a feature request. In the meantime add it to the "Unofficial mirrors" list at the end of this page.'''<br />
<br />
=== Australia ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/linux/archlinux/ http]</sub> <sub>[rsync://mirror.pacific.net.au/linux/archlinux/]</sub><br />
*ftp://mirror.aarnet.edu.au/pub/archlinux/ <sub>[http://mirror.aarnet.edu.au/pub/archlinux/ http]</sub> <sub>[rsync://mirror.aarnet.au/pub/archlinux/]</sub><br />
*ftp://ftp.iinet.net.au/pub/archlinux/ <sub>[http://ftp.iinet.net.au/pub/archlinux/ http]</sub> <sub>[rsync://ftp.iinet.net.au/archlinux/]</sub><br />
*http://mirror.internode.on.net/pub/archlinux/ <sub>[rsync://mirror.internode.on.net/pub/archlinux/]</sub><br />
<br />
=== Austria ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== Belgium ===<br />
*ftp://ftp.belnet.be/mirror/archlinux.org/ <sub>[http://ftp.belnet.be/mirror/archlinux.org/ http]</sub><br />
*ftp://archlinux.mirror.kangaroot.net/pub/archlinux/ <sub>[http://archlinux.mirror.kangaroot.net/ http]</sub> <sub>[rsync://archlinux.mirror.kangaroot.net::archlinux]</sub><br />
=== Brazil ===<br />
*ftp://archlinux.c3sl.ufpr.br/archlinux/ <sub>[http://archlinux.c3sl.ufpr.br/ http]</sub> <sub>[rsync://archlinux.c3sl.ufpr.br/archlinux rsync]</sub><br />
*ftp://ftp.las.ic.unicamp.br/pub/archlinux <sub>[http://www.las.ic.unicamp.br/pub/archlinux http]</sub> <sub>[rsync://rsync.las.ic.unicamp.br/pub/archlinux rsync]</sub><br />
*http://pet.inf.ufsc.br/mirrors/archlinux/<br />
<br />
=== Canada ===<br />
*http://mirror.twilightlair.net/arch/ <sub>[rsync://mirror.twilightlair.net/arch/ rsync]</sub><br />
*ftp://mirror.csclub.uwaterloo.ca/archlinux/ <sub>[http://mirror.csclub.uwaterloo.ca/archlinux/ http]</sub> <sub>[rsync://mirror.csclub.uwaterloo.ca/archlinux/ rsync]</sub><br />
*ftp://mirrors.portafixe.com/archlinux/ <sub>[http://mirrors.portafixe.com/archlinux/ http]</sub><br />
<br />
=== Czech Republic ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== Denmark ===<br />
*ftp://ftp.klid.dk/archlinux/<br />
<br />
=== Estonia ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== France ===<br />
*ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
*ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir2.archlinuxfr.org/archlinux rsync]</sub><br />
*ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
*http://mir.archlinux.fr/<br />
*ftp://ftp.free.fr/mirrors/ftp.archlinux.org/<br />
*ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/<br />
<br />
=== Germany ===<br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp5.gwdg.de/pub/linux/archlinux/ <sub>[http://ftp5.gwdg.de/pub/linux/archlinux/ http]</sub> <sub>[rsync://ftp5.gwdg.de/pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.uni-bayreuth.de/pub/linux/archlinux <sub>[http://ftp.uni-bayreuth.de/linux/archlinux http]</sub> <sub>[rsync://rsync.uni-bayreuth.de/archlinux/ rsync]</sub><br />
*ftp://ftp.archlinuxppc.org/i686/<br />
*ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/archlinux/ http]</sub><br />
*ftp://ftp.uni-kl.de/pub/linux/archlinux/ <sub>[http://ftp.uni-kl.de/pub/linux/archlinux/ http]</sub> <sub>[rsync: ftp.uni-kl.de::pub/linux/archlinux/ rsync]</sub><br />
*http://mirrors.igprolin-online.org/pub/archlinux<br />
*ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/ <sub>[http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/ http]</sub> <sub>[rsync://ftp-stud.hs-esslingen.de/archlinux/ rsync]</sub><br />
<br />
*ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/<br />
*http://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/<br />
<br />
=== Great Britain ===<br />
*http://www.mirrorservice.org/sites/ftp.archlinux.org/<br />
*ftp://mirrors.uk2.net/pub/archlinux/ <sub>[http://archlinux.mirrors.uk2.net/ http]</sub><br />
*http://mirror.lividpenguin.com/pub/archlinux/ <sub>[ftp://mirror.lividpenguin.com/pub/archlinux/ ftp]</sub><br />
<br />
=== Greece ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== Hungary ===<br />
*ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/<br />
<br />
=== Ireland ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== Indonesia ===<br />
*ftp://archlinux.cbn.net.id/pub/archlinux/ <sub>[http://archlinux.cbn.net.id/ http]</sub><br />
<br />
=== Israel ===<br />
*http://mirror.isoc.org.il/pub/archlinux/<br />
<br />
=== Italy ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== Japan ===<br />
*http://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/ <sub>[ftp://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/ ftp]</sub><br />
<br />
=== Latvia ===<br />
* http://archlinux.goodsoft.lv/<br />
<br />
=== Lithuania ===<br />
*ftp://atviras.lt/archmirror/ <sub>[http://atviras.lt/archmirror/ http]</sub><br />
<br />
=== Netherlands ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub><br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub><br />
<br />
=== Norway ===<br />
*http://mirror.archlinux.no/ <sub>[ftp://mirror.archlinux.no/ ftp]</sub>(rsync available)<br />
<br />
=== Poland ===<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
*ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ [http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ http]<br />
*http://unix.net.pl/archlinux.org/<br />
<br />
=== Portugal ===<br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
*ftp://darkstar.ist.utl.pt/pub/archlinux/ <sub>[http://darkstar.ist.utl.pt/archlinux/ http]</sub><br />
*ftp://ftp.nux.ipb.pt/pub/dists/archlinux/ <sub>[http://ftp.nux.ipb.pt/pub/dists/archlinux/ http]</sub><br />
<br />
=== Romania ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
*http://mirror.archlinux.ro/archlinux <sub>[http://mirror.archlinux.ro/archlinux http] </sub><br />
<br />
=== Russia ===<br />
*ftp://mirror.yandex.ru/archlinux/ <sub>[http://mirror.yandex.ru/archlinux/ http]</sub> (rsync available)<br />
*http://archlinux.freeside.ru/ - outdated (last updated at 26 March 2009)<br />
<br />
=== Sweden ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/ http]</sub><br />
<br />
=== Switzerland ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== Taiwan ===<br />
* ftp://cle.linux.org.tw/pub/ArchLinux/ (no ''testing'', no new isos)<br />
<br />
=== Turkey ===<br />
*ftp://ftp.linux.org.tr/archlinux/ <sub>[http://ftp.linux.org.tr/archlinux/ http]</sub><br />
*http://server.elsistech.com/archlinux/<br />
<br />
=== Ukraine ===<br />
*ftp://archlinux.hell.org.ua/archlinux/ <sub>[http://archlinux.hell.org.ua/archlinux http]</sub>(rsync available)<br />
*ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ <sub>[http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ http]</sub><br />
<br />
=== United States ===<br />
*ftp://ftp.archlinux.org/<br />
*ftp://locke.suu.edu/linux/dist/archlinux/<br />
*http://archlinux.unixheads.org/<br />
*ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/ [http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/ http]<br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub> (rsync available)<br />
*ftp://mirrors.easynews.com/linux/archlinux/ <sub>[http://mirrors.easynews.com/linux/archlinux/ http]</sub><br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub><br />
*http://archlinux.umflint.edu/<br />
*http://mirror.neotuli.net/<br />
*ftp://mirror.rit.edu/archlinux/ <sub>[http://mirror.rit.edu/archlinux/ http]</sub> <sub>[rsync://mirror.rit.edu/archlinux/ rsync]</sub><br />
* http://schlunix.org/archlinux/<br />
* http://mirror.umoss.org/archlinux/ <sub>[rsync://mirror.umoss.org/archlinux/ rsync]</sub><br />
* http://mirror.archlinux.com.ve/<br />
* http://mirrors.gigenet.com/archlinux/<br />
<br />
=== Venezuela ===<br />
* http://mirror2.archlinux.com.ve/<br />
<br />
=== Vietnam ===<br />
*ftp://ftp.indochinalinux.com/archlinux/ (frequent DNS problems, IP is 202.78.230.5)<br />
<br />
== Unofficial mirrors ==<br />
'''These mirrors are not listed in {{Filename|/etc/pacman.d/mirrorlist}}.'''<br />
<br />
=== Global ===<br />
* http://prdownloads.sourceforge.net/archlinux/ ( Doesn't have recent ISO releases. Use it only if for some reason you want to use an older ISO. )<br />
<br />
=== Australia ===<br />
*http://mirror.optus.com.au/pub/archlinux/ <sub>[http://mirror.optus.com.au/pub/archlinux/ http]</sub> <sub>[rsync://mirror.optus.com.au/pub/archlinux/]</sub><br />
<br />
=== Bulgaria ===<br />
* http://archlinux.igor.onlinedirect.bg/ <sub>[http://archlinux.igor.onlinedirect.bg http]</sub><br />
* ftp://archlinux.igor.onlinedirect.bg/linux/archlinux/ <sub>[http://archlinux.igor.onlinedirect.bg http]</sub><br />
<br />
=== China ===<br />
* http://mirrors.lcuc.org.cn/archlinux/<br />
* http://mirror.lupaworld.com/archlinux/<br />
* http://public.gooth.cn/archlinux/ (only include i686)<br />
* http://mirrors.163.com/archlinux/<br />
* http://mirror.bjtu.edu.cn/archlinux/<br />
* http://mirrors.sohu.com/archlinux/<br />
<br />
=== Germany ===<br />
* http://arch.uplinkzero.com/<br />
* ftp://ftp.uni-erlangen.de/mirrors/archlinux/ <sub>[http://ftp.uni-erlangen.de/mirrors/archlinux/ http]</sub><br />
<br />
=== Great Britain ===<br />
* ftp://mirror.lividpenguin.com/pub/archlinux/ <sub>[http://mirror.lividpenguin.com/pub/archlinux/ http]</sub><br />
<br />
=== Lithuania ===<br />
* ftp://atviras.lt/archmirror/ <sub>[http://atviras.lt/archmirror/ http]</sub><br />
<br />
=== Malaysia ===<br />
* http://oss.mmu.edu.my/pub/distro/arch (ISOs only)<br />
* http://mirror.oscc.org.my/archlinux/<br />
<br />
=== New Caledonia ===<br />
* ftp://archlinux.nautile.nc/archlinux/ <sub>[http://archlinux.nautile.nc/archlinux/ http]</sub> <sub>[rsync://archlinux.nautile.nc/archlinux/ rsync]</sub> (no ISO image)<br />
<br />
=== New Zealand ===<br />
* http://mirror.ihug.co.nz/archlinux/<br />
<br />
=== Norway ===<br />
* http://power.klette.us/mirror/<br />
<br />
=== Poland ===<br />
* ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ [http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ http] - up-to-date, but no Core repository<br />
<br />
=== South Africa ===<br />
<br />
* http://archlinux.mirror.ac.za/ TENET Mirror<br />
* ftp://archlinux.mirror.ac.za/<br />
* http://ftp.sun.ac.za/ftp/pub/mirrors/archlinux/ Stellenbosch University<br />
* ftp://ftp.sun.ac.za/pub/mirrors/archlinux/<br />
* http://ftp.leg.uct.ac.za/pub/linux/arch/ University of Cape Town<br />
* ftp://ftp.leg.uct.ac.za/pub/linux/arch/<br />
<br />
=== Spain ===<br />
*ftp://ftp.udc.es/mirror/archlinux/ <sub>[http://ftp.udc.es/mirror/archlinux/ http]</sub> <sub>[rsync://ftp.udc.es/mirror/archlinux/ rsync]</sub><br />
<br />
=== United States ===<br />
* http://archlinux.linuxfreedom.com Contains all the ISO images<br />
* ftp://mirrors.acm.jhu.edu/arch/ <sub>[http://mirrors.acm.jhu.edu/arch http]</sub> <sub>[rsync://mirrors.acm.jhu.edu/arch rsync]</sub><br />
* ftp://ftp.osuosl.org/pub/archlinux/ <sub>[http://ftp.osuosl.org/pub/archlinux/ http]</sub> (i686 only - ''current'' and ''extra'') - outdated<br />
<br />
== IPv6-ready mirrors ==<br />
*http://power.klette.us/mirror/ (Norway)<br />
*http://arch.iskrembilen.com/ (Norway, rsync available)<br />
*niue.belnet.be (Belgium)<br />
*ftp.estpak.ee (Estonia)<br />
*patroklos.noc.ntua.gr (Greece)<br />
*ftp.heanet.ie (Ireland)<br />
*ftp.nluug.nl (Netherlands)<br />
*ftp.surfnet.nl (Netherlands)<br />
*ftp.sixnix.net/ftp6.sixnix.net (Finland) - dead<br />
*http://mirror6.bjtu.edu.cn/archlinux (China)</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=68805Mirrors (简体中文)2009-05-16T02:18:10Z<p>Ideal: /* 中国镜像 */</p>
<hr />
<div>[[Category:软件包管理|jx]]<br />
[[Category:HOWTOs (简体中文)|jx]]<br />
[[Category:简体中文]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|:Mirrors}}<br />
{{i18n_entry|简体中文|:Arch镜像 (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
<br />
== 启用您喜爱的镜像 ==<br />
<br />
pacman默认的core仓库配置如下:<br />
<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
如果你想使用一个欧洲镜像作为默认镜像,只需将它添加到<tt>Include</tt>行前:<br />
<br />
[core]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/i686</nowiki><br />
Include = /etc/pacman.d/mirrorlist<br />
<br><br />
'''edit:''' The release of pacman 3.1 introduced the /etc/pacman.d/mirrorlist with the variable $repo, no need to maintain separate list for each repository.<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', ''community'' and ''unstable''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''core'' and another (older) kernel module from ''extra'').'''<br />
<br />
== 官方镜像 ==<br />
<br />
This is a list of all known Arch Linux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know of a mirror that is not listed, please add it. Mirrors which are no longer updated or have been unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load [http://www.archlinux.org/ archlinux.org] in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
[http://users.archlinux.de/~gerbra/mirrorcheck.html This website] provides updates on the current status of the Arch mirrors and how up to date they are.<br />
<br />
'''Attention: Do not add new mirrors to the list below. If you want your mirror to be added to official list - file a feature request. In the meantime add it to the "Unofficial mirrors" list at the end of this page.'''<br />
<br />
=== 澳大利亚 ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/linux/archlinux/ http]</sub> <sub>[rsync://mirror.pacific.net.au/linux/archlinux/]</sub><br />
*ftp://mirror.aarnet.edu.au/pub/archlinux/ <sub>[http://mirror.aarnet.edu.au/pub/archlinux/ http]</sub> <sub>[rsync://mirror.aarnet.au/pub/archlinux/]</sub><br />
<br />
=== 奥地利 ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== 比利时 ===<br />
*ftp://ftp.belnet.be/mirror/archlinux.org/ <sub>[http://ftp.belnet.be/mirror/archlinux.org/ http]</sub><br />
<br />
=== 巴西 ===<br />
*ftp://archlinux.c3sl.ufpr.br/archlinux/ <sub>[http://archlinux.c3sl.ufpr.br/ http]</sub><br />
*ftp://ftp.las.ic.unicamp.br/pub/archlinux <sub>[http://www.las.ic.unicamp.br/pub/archlinux http]</sub> <sub>[rsync://rsync.las.ic.unicamp.br/archlinux rsync]</sub><br />
<br />
=== 加拿大 ===<br />
*ftp://mirror.csclub.uwaterloo.ca/archlinux/ <sub>[http://mirror.csclub.uwaterloo.ca/archlinux/ http]</sub> <sub>[rsync://mirror.csclub.uwaterloo.ca/archlinux/ rsync]</sub><br />
<br />
=== 捷克 ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== 爱沙尼亚 ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== 法国 ===<br />
*ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
*ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
*ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir2.archlinuxfr.org/archlinux rsync]</sub><br />
*http://mir.archlinux.fr/<br />
*ftp://ftp.free.fr/mirrors/ftp.archlinux.org/<br />
*ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/<br />
=== 德国 ===<br />
*ftp://ftp5.gwdg.de/pub/linux/archlinux/ <sub>[http://ftp5.gwdg.de/pub/linux/archlinux/ http]</sub> <sub>[rsync://ftp5.gwdg.de/pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/archlinux/ http]</sub><br />
*ftp://ftp.archlinuxppc.org/i686/<br />
*ftp://ftp.uni-kl.de/pub/linux/archlinux/ <sub>[http://ftp.uni-kl.de/pub/linux/archlinux/ http]</sub> <sub>[rsync: ftp.uni-kl.de::pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.uni-bayreuth.de/pub/linux/archlinux <sub>[http://ftp.uni-bayreuth.de/linux/archlinux http]</sub> <sub>[rsync://rsync.uni-bayreuth.de/archlinux/ rsync]</sub><br />
<br />
=== 英国 ===<br />
*http://www.mirrorservice.org/sites/ftp.archlinux.org/<br />
*ftp://mirrors.uk2.net/pub/archlinux/ <sub>[http://archlinux.mirrors.uk2.net/ http]</sub><br />
<br />
=== 希腊 ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== 匈牙利 ===<br />
*ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/<br />
<br />
=== 爱尔兰 ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== 以色列 ===<br />
*http://mirror.isoc.org.il/pub/archlinux/<br />
<br />
=== 意大利 ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== 荷兰 ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub><br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub><br />
<br />
=== 挪威 ===<br />
*http://arch.likbilen.com/ (rsync 可用)<br />
<br />
=== 波兰 ===<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
*ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ [http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ http]<br />
*http://unix.net.pl/archlinux.org/<br />
<br />
=== 葡萄牙 ===<br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
<br />
=== 罗马尼亚 ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== 俄罗斯 ===<br />
*ftp://mirror.yandex.ru/archlinux/ <sub>[http://mirror.yandex.ru/archlinux/ http]</sub> (rsync 可用)<br />
*http://archlinux.freeside.ru/<br />
<br />
=== 瑞典 ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/ http]</sub><br />
<br />
=== 瑞士 ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== 土耳其 ===<br />
*http://server.elsistech.com/archlinux/<br />
<br />
=== 乌克兰 ===<br />
*ftp://hell.org.ua/archlinux/ (rsync 可用)<br />
*ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ <sub>[http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ http]</sub><br />
<br />
=== 美国 ===<br />
*ftp://ftp.archlinux.org/<br />
*ftp://locke.suu.edu/linux/dist/archlinux/<br />
*http://archlinux.unixheads.org/<br />
*ftp://mirrors.easynews.com/linux/archlinux/ <sub>[http://mirrors.easynews.com/linux/archlinux/ http]</sub><br />
*ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/ [http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/ http]<br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub> (rsync 可用)<br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub><br />
*http://holmes.umflint.edu/archlinux/<br />
*http://mirror.neotuli.net/<br />
*ftp://mirror.rit.edu/archlinux/ <sub>[http://mirror.rit.edu/archlinux/ http]</sub> <sub>[rsync://mirror.rit.edu/archlinux/ rsync]</sub><br />
* http://schlunix.org/archlinux/<br />
* http://mirror.umoss.org/archlinux/ <sub>[rsync://mirror.umoss.org/archlinux/ rsync]</sub><br />
<br />
=== 越南 ===<br />
*ftp://ftp.indochinalinux.com/archlinux/ (DNS 经常出问题,IP 是 202.78.230.5)<br />
<br />
== 中国镜像 ==<br />
# 电信<br />
#* http://mirrors.lcuc.org.cn/archlinux/<br />
#* http://mirror.lupaworld.com/archlinux/<br />
#* http://public.gooth.cn/archlinux/ (仅包含i686架构)<br />
#* http://mirrors.163.com/archlinux/archlinux/<br />
# 网通<br />
#* ftp://xde.gooth.cn/<br />
# 台湾<br />
#* ftp://cle.linux.org.tw/pub/ArchLinux/ (没有''testing''和''unstable'',以及iso)<br />
# 教育网<br />
#* http://ftp.sjtu.edu.cn/pub/mirror2/www.archlinux.org/<br />
#* http://[2001:da8:200:900e:0:5efe:a66f:4482]/archlinux/www.archlinux.org/ http://program.net9.org/archlinux/www.archlinux.org/<br />
#* http://mirror.bjtu.edu.cn/archlinux<br />
<br />
== 非官方镜像 ==<br />
'''These mirrors are not listed in <code>/etc/pacman.d/mirrorlist</code>.'''<br />
<br />
# 全球<br />
*http://prdownloads.sourceforge.net/archlinux/ ( Doesn't have recent ISO releases. Use it only if for some reason you want to use an older ISO. )<br />
<br />
# 澳大利亚<br />
*ftp://mirror.internode.on.net/pub/archlinux/<br />
<sub>[http://mirror.internode.on.net/pub/archlinux/ http]</sub><br />
<br />
# 马来西亚<br />
*http://oss.mmu.edu.my/distro/arch (ISOs only)<br />
*http://mirror.oscc.org.my/archlinux/<br />
<br />
# 挪威<br />
*ftp://jane.tihlde.org/pub/archlinux/<br />
<sub>[http://jane.tihlde.org/pub/archlinux/ http] </sub><br />
*http://power.klette.us/mirror/<br />
# 波兰<br />
*ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/<br />
[http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ http] - up-to-date, but no Core repository<br />
<br />
# 美国<br />
*ftp://ftp.osuosl.org/pub/archlinux/<br />
<sub>[http://ftp.osuosl.org/pub/archlinux/ http]</sub> (i686 only - ''current'' and ''extra'') - outdated<br />
*http://mirror.umoss.org/archlinux/ <br />
<br />
== IPv6 镜像 ==<br />
*http://power.klette.us/mirror/ (挪威)<br />
*niue.belnet.be (比利时)<br />
*ftp.estpak.ee (爱沙尼亚)<br />
*patroklos.noc.ntua.gr (希腊)<br />
*ftp.heanet.ie (爱尔兰)<br />
*ftp.nluug.nl (荷兰)<br />
*ftp.surfnet.nl (荷兰)<br />
*ftp.sixnix.net/ftp6.sixnix.net (芬兰) - dead<br />
<br />
== Rsync 镜像 ==<br />
* 中国<br />
# rsync://archlinux.gooth.cn/archlinux<br />
<br />
* 美国<br />
# rsync://mirror.umoss.org/archlinux/ (全镜像,对学术机构不限流量)<br />
# rsync://mirror.rit.edu/archlinux/<br />
# rsync://mirror.umoss.org/archlinux/<br />
<br />
澳大利亚 <br />
# rsync://mirror.pacific.net.au/linux/archlinux/<br />
# rsync://mirror.aarnet.au/pub/archlinux/<br />
# rsync://mirror.internode.on.net/pub/archlinux/<br />
* 巴西<br />
# rsync://rsync.las.ic.unicamp.br/archlinux/<br />
* 加拿大<br />
# rsync://mirror.csclub.uwaterloo.ca/archlinux/<br />
* 法国<br />
# rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/<br />
# rsync://mir1.archlinuxfr.org/archlinux<br />
# rsync://mir2.archlinuxfr.org/archlinux<br />
* 德国<br />
# rsync://ftp5.gwdg.de/pub/linux/archlinux/<br />
# rsync: ftp.uni-kl.de::pub/linux/archlinux/<br />
# rsync://rsync.uni-bayreuth.de/archlinux/<br />
* 俄罗斯<br />
rsync://mirror.yandex.ru/archlinux/<br />
* 乌克兰<br />
# rsync://hell.org.ua/archlinux/<br />
* 挪威<br />
# rsync://jane.tihlde.org/pub/archlinux/</div>Idealhttps://wiki.archlinux.org/index.php?title=Mirrors&diff=68804Mirrors2009-05-16T02:16:00Z<p>Ideal: added bjtu mirror for archlinux</p>
<hr />
<div>[[Category:Package management (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|:Mirrors}}<br />
{{i18n_entry|简体中文|:Arch镜像 (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
== Enabling your favorite mirror ==<br />
<br />
The default pacman configuration (/etc/pacman.conf) for ''core'' looks like this:<br />
<br />
[core]<br />
Include = /etc/pacman.d/mirrorlist<br />
<br />
If you want to use the HostEurope mirror as your default mirror, just add it before the <tt>Include</tt> line:<br />
<br />
[core]<br />
Server = <nowiki>ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/core/os/i686</nowiki><br />
Include = /etc/pacman.d/mirrorlist<br />
<br><br />
'''edit:''' The release of pacman 3.1 introduced the /etc/pacman.d/mirrorlist with the variable $repo, no need to maintain separate list for each repository.<br />
<br />
Pacman will now try to connect to this mirror first. You can do the same for ''testing'', ''extra'', and ''community'''.<br />
<br />
'''Use the same mirror for all repositories. Otherwise packages may get installed that are incompatible to each other (like kernel26 from ''core'' and another (older) kernel module from ''extra'').'''<br />
<br />
== Mirror List ==<br />
<br />
This is a list of all known Arch Linux mirrors, that's more up to date than the [http://www.archlinux.org/download/ official download page] or the [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/base/pacman/ files in <tt>/etc/pacman.d/</tt>]. If you know of a mirror that is not listed, please add it. Mirrors which are no longer updated or have been unavailable for a long time can be deleted.<br />
<br />
Here is a hint to check just how up-to-date your chosen mirror is:<br />
# pick a server and browse to "extra/os/"<br />
# load http://www.archlinux.org/ in another tab or window<br />
# compare the last-modified date of the "i686" directory on the mirror to the "Extra" date on the homepage, in the "Package Repositories" box to the right.<br />
<br><br />
Many sites also provide http service, but keep in mind that pacman relies on ftp to determine if a repository got updated. With http it fetches the repository database each time you run <tt>pacman -Sy</tt>, even if it didn't change since the last run.<br />
<br />
[http://users.archlinux.de/~gerbra/mirrorcheck.html This website] provides updates on the current status of the Arch mirrors and how up to date they are.<br />
<br />
== Sort Your Mirrors by Their Speed ==<br />
Don't forget to take full advantage of using the fastest mirror for ''you'' which you can determine via the included python script /usr/bin/rankmirrors. First, use pacman to install python if you haven't already done so:<br />
# pacman -S python <br />
'''cd''' to the /etc/pacman.d/ directory:<br />
# cd /etc/pacman.d<br />
Backup your existing /etc/pacman.d/mirrorlist:<br />
# cp mirrorlist mirrorlist.backup<br />
Edit mirrorlist.backup and uncomment mirrors you want to test with rankmirrors.<br />
<br />
Run the script against the mirrorlist.backup with the -n switch and redirect output to a new /etc/pacman.d/mirrorlist file:<br />
# rankmirrors -n 6 mirrorlist.backup > mirrorlist<br />
'''-n 6''': rank the 6 fastest mirrors<br />
<br />
'''Force pacman to refresh the package lists'''<br />
<br />
After creating/editing your /etc/pacman.d/mirrorlist, (manually or by <code>/usr/bin/rankmirrors</code>) issue the following command:<br />
# pacman -Syy<br />
Passing two --refresh or -y flags forces pacman to refresh all package lists even if they are considered to be up to date. Issuing pacman -Syy ''whenever a mirror is changed'', is good practice and will avoid possible headaches.<br />
<br />
== Official mirrors ==<br />
'''Attention: Do not add new mirrors to the list below. If you want your mirror to be added to official list - file a feature request. In the meantime add it to the "Unofficial mirrors" list at the end of this page.'''<br />
<br />
=== Australia ===<br />
*ftp://mirror.pacific.net.au/linux/archlinux/ <sub>[http://mirror.pacific.net.au/linux/archlinux/ http]</sub> <sub>[rsync://mirror.pacific.net.au/linux/archlinux/]</sub><br />
*ftp://mirror.aarnet.edu.au/pub/archlinux/ <sub>[http://mirror.aarnet.edu.au/pub/archlinux/ http]</sub> <sub>[rsync://mirror.aarnet.au/pub/archlinux/]</sub><br />
*ftp://ftp.iinet.net.au/pub/archlinux/ <sub>[http://ftp.iinet.net.au/pub/archlinux/ http]</sub> <sub>[rsync://ftp.iinet.net.au/archlinux/]</sub><br />
*http://mirror.internode.on.net/pub/archlinux/ <sub>[rsync://mirror.internode.on.net/pub/archlinux/]</sub><br />
<br />
=== Austria ===<br />
*ftp://gd.tuwien.ac.at/opsys/linux/archlinux/ <sub>[http://gd.tuwien.ac.at/opsys/linux/archlinux/ http]</sub><br />
<br />
=== Belgium ===<br />
*ftp://ftp.belnet.be/mirror/archlinux.org/ <sub>[http://ftp.belnet.be/mirror/archlinux.org/ http]</sub><br />
<br />
=== Brazil ===<br />
*ftp://archlinux.c3sl.ufpr.br/archlinux/ <sub>[http://archlinux.c3sl.ufpr.br/ http]</sub> <sub>[rsync://archlinux.c3sl.ufpr.br/archlinux rsync]</sub><br />
*ftp://ftp.las.ic.unicamp.br/pub/archlinux <sub>[http://www.las.ic.unicamp.br/pub/archlinux http]</sub> <sub>[rsync://rsync.las.ic.unicamp.br/pub/archlinux rsync]</sub><br />
<br />
=== Canada ===<br />
*ftp://mirror.csclub.uwaterloo.ca/archlinux/ <sub>[http://mirror.csclub.uwaterloo.ca/archlinux/ http]</sub> <sub>[rsync://mirror.csclub.uwaterloo.ca/archlinux/ rsync]</sub><br />
*ftp://mirrors.portafixe.com/archlinux/ <sub>[http://mirrors.portafixe.com/archlinux/ http]</sub><br />
<br />
=== Czech Republic ===<br />
*ftp://ftp.sh.cvut.cz/MIRRORS/arch/ <sub>[http://ftp.sh.cvut.cz/MIRRORS/arch/ http]</sub><br />
<br />
=== Denmark ===<br />
*ftp://ftp.klid.dk/archlinux/<br />
<br />
=== Estonia ===<br />
*ftp://ftp.estpak.ee/pub/archlinux/ <sub>[http://ftp.estpak.ee/pub/archlinux/ http]</sub><br />
<br />
=== France ===<br />
*ftp://mir1.archlinuxfr.org/archlinux <sub>[http://mir1.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir1.archlinuxfr.org/archlinux rsync]</sub><br />
*ftp://mir2.archlinuxfr.org/archlinux <sub>[http://mir2.archlinuxfr.org/archlinux http]</sub> <sub>[rsync://mir2.archlinuxfr.org/archlinux rsync]</sub><br />
*ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ <sub>[http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ http]</sub> <sub>[rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/ rsync]</sub><br />
*http://mir.archlinux.fr/<br />
*ftp://ftp.free.fr/mirrors/ftp.archlinux.org/<br />
*ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/<br />
<br />
=== Germany ===<br />
*ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/ <sub>[http://ftp.hosteurope.de/mirror/ftp.archlinux.org/ http]</sub><br />
*ftp://ftp5.gwdg.de/pub/linux/archlinux/ <sub>[http://ftp5.gwdg.de/pub/linux/archlinux/ http]</sub> <sub>[rsync://ftp5.gwdg.de/pub/linux/archlinux/ rsync]</sub><br />
*ftp://ftp.uni-bayreuth.de/pub/linux/archlinux <sub>[http://ftp.uni-bayreuth.de/linux/archlinux http]</sub> <sub>[rsync://rsync.uni-bayreuth.de/archlinux/ rsync]</sub><br />
*ftp://ftp.archlinuxppc.org/i686/<br />
*ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/ <sub>[http://ftp.tu-chemnitz.de/pub/linux/archlinux/ http]</sub><br />
*ftp://ftp.uni-kl.de/pub/linux/archlinux/ <sub>[http://ftp.uni-kl.de/pub/linux/archlinux/ http]</sub> <sub>[rsync: ftp.uni-kl.de::pub/linux/archlinux/ rsync]</sub><br />
*http://mirrors.igprolin-online.org/pub/archlinux<br />
*ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/ <sub>[http://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/ http]</sub> <sub>[rsync://ftp-stud.hs-esslingen.de/archlinux/ rsync]</sub><br />
<br />
=== Great Britain ===<br />
*http://www.mirrorservice.org/sites/ftp.archlinux.org/<br />
*ftp://mirrors.uk2.net/pub/archlinux/ <sub>[http://archlinux.mirrors.uk2.net/ http]</sub><br />
*http://mirror.lividpenguin.com/pub/archlinux/ <sub>[ftp://mirror.lividpenguin.com/pub/archlinux/ ftp]</sub><br />
<br />
=== Greece ===<br />
*ftp://ftp.ntua.gr/pub/linux/archlinux/ <sub>[http://ftp.ntua.gr/pub/linux/archlinux/ http]</sub><br />
<br />
=== Hungary ===<br />
*ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/<br />
<br />
=== Ireland ===<br />
*ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/ <sub>[http://ftp.heanet.ie/mirrors/ftp.archlinux.org/ http]</sub><br />
<br />
=== Indonesia ===<br />
*ftp://archlinux.cbn.net.id/pub/archlinux/ <sub>[http://archlinux.cbn.net.id/ http]</sub><br />
<br />
=== Israel ===<br />
*http://mirror.isoc.org.il/pub/archlinux/<br />
<br />
=== Italy ===<br />
*ftp://mi.mirror.garr.it/mirrors/archlinux/ <sub>[http://mi.mirror.garr.it/mirrors/archlinux/ http]</sub><br />
<br />
=== Japan ===<br />
*http://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/ <sub>[ftp://ftp.yz.yamagata-u.ac.jp/pub/linux/archlinux/ ftp]</sub><br />
<br />
=== Lithuania ===<br />
*ftp://atviras.lt/archmirror/ <sub>[http://atviras.lt/archmirror/ http]</sub><br />
<br />
=== Netherlands ===<br />
*ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/ <sub>[http://ftp.nluug.nl/pub/metalab/distributions/archlinux/ http]</sub><br />
*ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ <sub>[http://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/ http]</sub><br />
<br />
=== Norway ===<br />
*http://mirror.archlinux.no/ <sub>[ftp://mirror.archlinux.no/ ftp]</sub>(rsync available)<br />
<br />
=== Poland ===<br />
*ftp://mirror.icis.pcz.pl/archlinux/<br />
*ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ [http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/ http]<br />
*http://unix.net.pl/archlinux.org/<br />
<br />
=== Portugal ===<br />
*ftp://cesium.di.uminho.pt/pub/archlinux/ <sub>[http://cesium.di.uminho.pt/pub/archlinux/ http]</sub><br />
*ftp://darkstar.ist.utl.pt/pub/archlinux/ <sub>[http://darkstar.ist.utl.pt/archlinux/ http]</sub><br />
*ftp://ftp.nux.ipb.pt/pub/dists/archlinux/ <sub>[http://ftp.nux.ipb.pt/pub/dists/archlinux/ http]</sub><br />
<br />
=== Romania ===<br />
*ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/ <sub>[http://ftp.iasi.roedu.net/mirrors/archlinux.org/ http]</sub><br />
<br />
=== Russia ===<br />
*ftp://mirror.yandex.ru/archlinux/ <sub>[http://mirror.yandex.ru/archlinux/ http]</sub> (rsync available)<br />
*http://archlinux.freeside.ru/ - outdated (last updated at 26 March 2009)<br />
<br />
=== Sweden ===<br />
*ftp://ftp.ds.hj.se/pub/os/linux/archlinux/ <sub>[http://ftp.ds.hj.se/pub/os/linux/archlinux/ http]</sub><br />
*ftp://ftp.gigabit.nu/ <sub>[http://ftp.gigabit.nu/ http]</sub><br />
<br />
=== Switzerland ===<br />
*ftp://archlinux.puzzle.ch/ <sub>[http://archlinux.puzzle.ch/ http]</sub><br />
<br />
=== Taiwan ===<br />
* ftp://cle.linux.org.tw/pub/ArchLinux/ (no ''testing'', no new isos)<br />
<br />
=== Turkey ===<br />
*ftp://ftp.linux.org.tr/archlinux/ <sub>[http://ftp.linux.org.tr/archlinux/ http]</sub><br />
*http://server.elsistech.com/archlinux/<br />
<br />
=== Ukraine ===<br />
*ftp://archlinux.hell.org.ua/archlinux/ <sub>[http://archlinux.hell.org.ua/archlinux http]</sub>(rsync available)<br />
*ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ <sub>[http://ftp.linux.kiev.ua/pub/Linux/ArchLinux/ http]</sub><br />
<br />
=== United States ===<br />
*ftp://ftp.archlinux.org/<br />
*ftp://locke.suu.edu/linux/dist/archlinux/<br />
*http://archlinux.unixheads.org/<br />
*ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/ [http://www.gtlib.gatech.edu/pub/linux/distributions/archlinux/ http]<br />
*ftp://mirror.cs.vt.edu/pub/ArchLinux/ <sub>[http://mirror.cs.vt.edu/pub/ArchLinux/ http]</sub> (rsync available)<br />
*ftp://mirrors.easynews.com/linux/archlinux/ <sub>[http://mirrors.easynews.com/linux/archlinux/ http]</sub><br />
*ftp://ibiblio.org/pub/linux/distributions/archlinux/ <sub>[http://distro.ibiblio.org/pub/linux/distributions/archlinux/ http]</sub><br />
*http://archlinux.umflint.edu/<br />
*http://mirror.neotuli.net/<br />
*ftp://mirror.rit.edu/archlinux/ <sub>[http://mirror.rit.edu/archlinux/ http]</sub> <sub>[rsync://mirror.rit.edu/archlinux/ rsync]</sub><br />
* http://schlunix.org/archlinux/<br />
* http://mirror.umoss.org/archlinux/ <sub>[rsync://mirror.umoss.org/archlinux/ rsync]</sub><br />
* http://mirror.archlinux.com.ve/<br />
* http://mirrors.gigenet.com/archlinux/<br />
<br />
=== Venezuela ===<br />
* http://mirror2.archlinux.com.ve/<br />
<br />
=== Vietnam ===<br />
*ftp://ftp.indochinalinux.com/archlinux/ (frequent DNS problems, IP is 202.78.230.5)<br />
<br />
== Unofficial mirrors ==<br />
'''These mirrors are not listed in <code>/etc/pacman.d/mirrorlist</code>.'''<br />
<br />
=== Global ===<br />
* http://prdownloads.sourceforge.net/archlinux/ ( Doesn't have recent ISO releases. Use it only if for some reason you want to use an older ISO. )<br />
<br />
=== Australia ===<br />
*http://mirror.optus.com.au/pub/archlinux/ <sub>[http://mirror.optus.com.au/pub/archlinux/ http]</sub> <sub>[rsync://mirror.optus.com.au/pub/archlinux/]</sub><br />
<br />
=== Bulgaria ===<br />
* http://archlinux.igor.onlinedirect.bg/ <sub>[http://archlinux.igor.onlinedirect.bg http]</sub><br />
* ftp://archlinux.igor.onlinedirect.bg/linux/archlinux/ <sub>[http://archlinux.igor.onlinedirect.bg http]</sub><br />
<br />
=== China ===<br />
* http://mirrors.lcuc.org.cn/archlinux/<br />
* http://mirror.lupaworld.com/archlinux/<br />
* http://public.gooth.cn/archlinux/ (only include i686)<br />
* http://mirrors.163.com/archlinux/archlinux/<br />
* http://mirror.bjtu.edu.cn/archlinux/<br />
<br />
=== Germany ===<br />
* http://arch.uplinkzero.com/<br />
* ftp://ftp.uni-erlangen.de/mirrors/archlinux/ <sub>[http://ftp.uni-erlangen.de/mirrors/archlinux/ http]</sub><br />
<br />
=== Great Britain ===<br />
* ftp://mirror.lividpenguin.com/pub/archlinux/ <sub>[http://mirror.lividpenguin.com/pub/archlinux/ http]</sub><br />
<br />
=== Lithuania ===<br />
* ftp://atviras.lt/archmirror/ <sub>[http://atviras.lt/archmirror/ http]</sub><br />
<br />
=== Malaysia ===<br />
* http://oss.mmu.edu.my/pub/distro/arch (ISOs only)<br />
* http://mirror.oscc.org.my/archlinux/<br />
<br />
=== New Caledonia ===<br />
* ftp://archlinux.nautile.nc/archlinux/ <sub>[http://archlinux.nautile.nc/archlinux/ http]</sub> <sub>[rsync://archlinux.nautile.nc/archlinux/ rsync]</sub> (no ISO image)<br />
<br />
=== Norway ===<br />
* http://power.klette.us/mirror/<br />
<br />
=== Poland ===<br />
* ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ [http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/archlinux/ http] - up-to-date, but no Core repository<br />
<br />
=== South Africa ===<br />
<br />
* http://archlinux.mirror.ac.za/ TENET Mirror<br />
* ftp://archlinux.mirror.ac.za/<br />
* http://ftp.sun.ac.za/ftp/pub/mirrors/archlinux/ Stellenbosch University<br />
* ftp://ftp.sun.ac.za/pub/mirrors/archlinux/<br />
* http://ftp.leg.uct.ac.za/pub/linux/arch/ University of Cape Town<br />
* ftp://ftp.leg.uct.ac.za/pub/linux/arch/<br />
<br />
=== Spain ===<br />
*ftp://ftp.udc.es/mirror/archlinux/ <sub>[http://ftp.udc.es/mirror/archlinux/ http]</sub> <sub>[rsync://ftp.udc.es/mirror/archlinux/ rsync]</sub><br />
<br />
=== United States ===<br />
* http://archlinux.linuxfreedom.com Contains all the ISO images<br />
* ftp://mirrors.acm.jhu.edu/arch/ <sub>[http://mirrors.acm.jhu.edu/arch http]</sub> <sub>[rsync://mirrors.acm.jhu.edu/arch rsync]</sub><br />
* ftp://ftp.osuosl.org/pub/archlinux/ <sub>[http://ftp.osuosl.org/pub/archlinux/ http]</sub> (i686 only - ''current'' and ''extra'') - outdated<br />
<br />
== IPv6-ready mirrors ==<br />
*http://power.klette.us/mirror/ (Norway)<br />
*http://arch.iskrembilen.com/ (Norway, rsync available)<br />
*niue.belnet.be (Belgium)<br />
*ftp.estpak.ee (Estonia)<br />
*patroklos.noc.ntua.gr (Greece)<br />
*ftp.heanet.ie (Ireland)<br />
*ftp.nluug.nl (Netherlands)<br />
*ftp.surfnet.nl (Netherlands)<br />
*ftp.sixnix.net/ftp6.sixnix.net (Finland) - dead</div>Ideal