使用aria2 代码 wget(其实先前我一直在用axel的，无奈有时候axel半天下载不来一个几M的东西（卡住不动））
pacman -S aria2
XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 --max-connection-per-server=6 --max-file-not-found=5 --min-split-size=5M --no-conf --remote-time=true --log=- --summary-interval=60 -t5 -d / -o %o %u
The full PATH to the aria2 executable.
Restart download if a corresponding control file does not exist. (Default: false)
Continue downloading a partially downloaded file if a corresponding control file exists.
Do not pre-allocate file space before download begins. (Default: prealloc) 1
Set log level to output errors only. (Default: debug)
Make 2 maximum attempts to download specified file(s) per mirror. (Default: 5)
Set a maximum of 2 connections to each mirror per file. (Default: 1)
Force download to fail if a single byte is not received within 5 attempts. (Default: 0)
Only split the file if the size is larger than 2;5MB = 10MB. (Default: 20M)
Disable loading an aria2.conf file if it exists. (Default: ~/.aria2/aria2.conf)
Apply timestamps of the remote file(s) and apply them to the local file(s). (Default: false)
Output download progress summary every 60 seconds. (Default: 60) 2
Set a 5 second timeout per mirror after a connection is established. (Default: 60)
The directory to store the downloaded file(s) as specified by pacman.
The output file name(s) of the downloaded file(s).
Variable which represents the local filename(s) as specified by pacman.
Variable which represents the download URL as specified by pacman.
Recommended for newer file systems such as ext4 (with extents support), btrfs or xfs as it allocates large files (GB) almost instantly. Do not use falloc with legacy file systems such as ext3 as prealloc consumes approximately the same amount of time as standard allocation would while locking the aria2 process from proceeding to download.
Supresses download progress summary output and may improve overall performance. Logs will continue to be output according to the value specified in the log-level option.
另外，pacman 官网也有一个 Pacman Mirrorlist Generator http://www.archlinux.org/mirrorlist/