Linux command
rankmirrors 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Rank
rankmirrors [/etc/pacman.d/mirrorlist]
Example
rankmirrors -n [5] [/etc/pacman.d/mirrorlist]
Verbose
rankmirrors -v [/etc/pacman.d/mirrorlist]
Example
rankmirrors -u [url]
Example
rankmirrors -t [/etc/pacman.d/mirrorlist]
说明
rankmirrors tests Arch Linux pacman package mirrors by measuring connection speed and response time, then outputs a sorted mirrorlist with the fastest mirrors first. It connects to each mirror in the input file, downloads a small test file, and ranks results by transfer rate, helping users optimize package download performance for their geographic location. The output follows the standard mirrorlist format and can be redirected to replace /etc/pacman.d/mirrorlist directly. The -n flag limits output to only the top N fastest mirrors, and -t displays raw response times for comparison without generating a new mirrorlist.
参数
- -n _number_
- Output only top N mirrors
- -v, --verbose
- Verbose output during ranking
- -t, --times
- Output response times instead of mirrorlist
- -u, --url _url_
- Test specific URL only
- -r, --repo _repo_
- Specify repository for testing
FAQ
What is the rankmirrors command used for?
rankmirrors tests Arch Linux pacman package mirrors by measuring connection speed and response time, then outputs a sorted mirrorlist with the fastest mirrors first. It connects to each mirror in the input file, downloads a small test file, and ranks results by transfer rate, helping users optimize package download performance for their geographic location. The output follows the standard mirrorlist format and can be redirected to replace /etc/pacman.d/mirrorlist directly. The -n flag limits output to only the top N fastest mirrors, and -t displays raw response times for comparison without generating a new mirrorlist.
How do I run a basic rankmirrors example?
Run `rankmirrors [/etc/pacman.d/mirrorlist]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n _number_ do in rankmirrors?
Output only top N mirrors