pacrank is a command-line utility for Arch Linux and Arch-based systems that selects fast package mirrors for the user’s location and writes the chosen servers to pacman’s mirrorlist.
It follows a focused ranking pipeline rather than offering a large collection of scoring controls. When countries are not supplied manually, pacrank estimates nearby countries by sampling the global Arch mirror list. It filters candidates by country and freshness, evaluates latency, and then subjects the strongest candidates to real download testing. Final ranking is based on observed throughput rather than latency alone. The throughput tests run sequentially so simultaneous transfers do not compete for the user’s available bandwidth and distort the results.
This is free and open source software.
Key Features
- Automatically detects nearby countries by probing the global Arch Linux mirror list.
- Accepts one or more explicit ISO country codes when manual selection is preferred.
- Filters official mirrors by country and freshness.
- Keeps a configurable number of low-latency candidates after the initial testing stage.
- Measures actual download throughput using repository package data.
- Tests throughput one mirror at a time to avoid local bandwidth contention skewing measurements.
- Offers a dry-run mode which performs the ranking process without modifying the mirrorlist or country cache.
- Caches detected countries and can bypass that cache when fresh detection is required.
- Separates privileged file operations from network activity, dropping privileges before opening network connections.
- Atomically replaces
/etc/pacman.d/mirrorlistwhile preserving the original file mode. - Lets users control how many candidates survive the latency and download stages.
- Supports diagnostic logging through
RUST_LOG. - Provides shell completions for Bash, Zsh and fish.
Website: github.com/mexus/pacrank
Support:
Developer: mexus
License: Apache License 2.0 or MIT License

pacrank is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Arch Mirror Tools Client Side | |
|---|---|
| shiny-mirrors | Find the best mirrors for Arch-based distros |
| reflector-cacheserver | Retrieve up-to-date Arch Linux mirror data |
| GhostMirror | Mirror analyzer for Arch Linux |
| ReflectorTK | Simple GUI for reflector |
| mirro-rs | Arch Linux mirrorlist manager with a TUI |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.