LinuxCommandLibrary

rankmirrors

Rank a list of Pacman mirrors by connection and opening speed.

TLDR

Rank a mirror list

$ rankmirrors [/etc/pacman.d/mirrorlist]
copy


Output only a given number of the top ranking servers
$ rankmirrors -n [number] [/etc/pacman.d/mirrorlist]
copy


Be verbose when generating the mirrorlist
$ rankmirrors -v [/etc/pacman.d/mirrorlist]
copy


Test only a specific URL
$ rankmirrors --url [url]
copy


Output only the response times instead of a full mirrorlist
$ rankmirrors --times [/etc/pacman.d/mirrorlist]
copy

SYNOPSIS

rankmirrors [options] <mirrorfile | url>

DESCRIPTION

rankmirrors will rank pacman mirrors by their connection and opening speed. Pacman mirror files are located in /etc/pacman.d/. It can also rank one mirror if the URL is provided.

OPTIONS

-n <num>

Number of servers to output, 0 for all.

-m, --max-time <num>

Specify a ranking operation timeout, can be decimal number.

-p, --parallel

Run tests in parallel for all servers (may be inaccurate, depends on GNU parallel).

-r, --repo

Specify a repository name instead of guessing.

t, --times

Only output mirrors and their response times.

-u, --url

Test a specific URL.

-v, --verbose

Be verbose in output.

-h, --help

Display syntax and command-line options.

-V, --version

Display version information.

BUGS

Bugs? You must be kidding; there are no bugs in this software. But if we happen to be wrong, file an issue with as much detail as possible at https://gitlab.archlinux.org/pacman/pacman-contrib/-/issues/new.

AUTHORS

Current maintainers:

·

Johannes Löthberg <johannes@kyriasis.com>

·

Daniel M. Capella <polyzen@archlinux.org>

For additional contributors, use git shortlog -s on the pacman-contrib.git repository.

Copied to clipboard