It seems like rankmirrors is vastly outdated? Nothing works like in the arch documentation Arch Wiki Mirrors.
For example, this command is supposed to rank all the mirrors, but instead I get this error
$ rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup
Version 4.21.0
USAGE:
pacman-mirrors [-h] [-f [NUMBER]] [-i [-d]] [-m METHOD] [--status]
[-c COUNTRY [COUNTRY...] | [--geoip] | [--continent]]
[-l] [-lc] [-q] [-t SECONDS] [-v] [-n]
[--api] [-S/-B BRANCH] [-p PREFIX]
[-P PROTO [PROTO...]] [-R] [-U URL]
rankmirrors: error: unrecognized arguments: 6 /etc/pacman.d/mirrorlist.backup
Also, running this without the -n
argument (which I dont know if its required) gives this result
$ rankmirrors /etc/pacman.d/mirrorlist.backup
Version 4.21.0
USAGE:
pacman-mirrors [-h] [-f [NUMBER]] [-i [-d]] [-m METHOD] [--status]
[-c COUNTRY [COUNTRY...] | [--geoip] | [--continent]]
[-l] [-lc] [-q] [-t SECONDS] [-v] [-n]
[--api] [-S/-B BRANCH] [-p PREFIX]
[-P PROTO [PROTO...]] [-R] [-U URL]
rankmirrors: error: unrecognized arguments: /etc/pacman.d/mirrorlist.backup
I’ve read that rankmirrors moved to the pacman-contrib repo, so it’s probably the reason it’s outdated? Or something else is going on that I do not quite get.
Edit:
From my understanding, I’m most probably wrong, but it seems like rankmirrors was replaced by pacman-mirrors and rankmirrors is just an alias to it now, even though it is incompatible. But I would need someone to confirm that information.
it seems like now that this is the new way
# OLD: rankmirrors -n 6 mirrorsfile
# NEW:
pacman-mirrors -f 6