rankmirrors
Rank Arch Linux pacman mirrors by speed
TLDR
Rank mirrorlist
SYNOPSIS
rankmirrors [-n number] [-v] [-t] [-u url] mirrorlist
DESCRIPTION
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.
PARAMETERS
-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
CAVEATS
Testing takes time as each mirror is contacted. Network conditions may vary. Part of pacman-contrib, not pacman itself. Consider reflector for automated updates.
HISTORY
rankmirrors has been part of Arch Linux tooling to help users optimize their mirror selection. While still functional, many users now prefer reflector for automated mirror management.
SEE ALSO
pacman(8), reflector(1), pacman-mirrors(1)
