GUI tool for ranking pacman mirrors on Arch Linux and Arch-based distributions.
- Arch mirrors — fetches mirror data directly from
archlinux.org/mirrors/status/json/and ranks by download speed; no reflector required - Distro mirrors — ranks distro-specific and third-party repo mirrors by download speed
- Live progress — results appear in real time as each mirror is tested
- Country filter — applies to both Arch and distro mirrors
- Parallel testing — configurable thread count for faster ranking
- pacman User-Agent — speed tests identify as pacman so mirrors that filter by User-Agent respond correctly
- Auto-detection — pre-selects the current distro's mirror set automatically
- Preview + diff — shows the new mirrorlist with syntax highlighting and a diff against the current file before saving
| Distro | Mirrorlist file |
|---|---|
| Arch Linux | /etc/pacman.d/mirrorlist |
| CachyOS (x86_64 / v3 / v4) | /etc/pacman.d/cachyos-mirrorlist + derived |
| EndeavourOS | /etc/pacman.d/endeavouros-mirrorlist |
| Artix Linux | /etc/pacman.d/artix-mirrorlist |
| BlackArch Linux | /etc/pacman.d/blackarch-mirrorlist |
| RebornOS | /etc/pacman.d/reborn-mirrorlist |
| Repository | Mirrorlist file |
|---|---|
| Chaotic-AUR | /etc/pacman.d/chaotic-mirrorlist |
| Arch Linux CN | /etc/pacman.d/archlinuxcn-mirrorlist |
| Arch4edu | /etc/pacman.d/arch4edu-mirrorlist |
Only mirrorlist files present on the system are active; the rest are shown grayed out.
- Python ≥ 3.11
- GTK4 (
gtk4) - PyGObject (
python-gobject) - polkit (
polkit) - python-requests (
python-requests)
Optional:
geoip— improves country auto-detection viageoiplookup
yay -S refractumOr with any other AUR helper (paru, trizen, etc.).
Download the .pkg.tar.zst from the latest release and install it:
sudo pacman -U refractum-*.pkg.tar.zstMake sure base-devel and git are installed:
sudo pacman -S --needed git base-devel
git clone https://github.com/Labaman/refractum.git
cd refractum
makepkg -sipip install --user -e .Launch from the application menu or run:
refractumArch mirrors tab — select countries, protocols, sort order and mirror count, then click OK. Mirror data is fetched from archlinux.org/mirrors/status/json/ (cached for 5 minutes) and tested concurrently. The result is shown in a preview window before saving.
Distro mirrors tab — select which distro mirror sets to re-rank. Rankings run concurrently; CachyOS v3/v4 are derived from the x86_64 results without redundant network tests.
Refractum stores personal settings in ~/.config/refractum/settings.toml, written
automatically on every OK click and restored on the next launch.
The Save as global default button writes the current settings to
/etc/refractum.toml (requires root via pkexec). This lets an admin set
system-wide defaults that new users inherit on their first launch.
On first run, if no personal settings file exists yet, initial values are bootstrapped from the first available source (checked in order):
/etc/refractum.toml— refractum's own system-wide config (TOML)/etc/reflector-simple.conf— reflector-simple config (imported once on first launch, read-only)/etc/xdg/reflector/reflector.conf— reflector config (imported once on first launch, read-only)- Built-in defaults
The bootstrapped settings are saved immediately to ~/.config/refractum/settings.toml,
so external config files are never read again after the first launch.
Refractum was inspired by two existing tools:
- reflector-simple — shell-based GUI wrapper for reflector, part of the EndeavourOS project
- rate-mirrors — fast, map-aware mirror ranking tool that inspired the distro mirror speed-testing approach
This project is licensed under GPL-3.0-or-later. This license applies retroactively to all previous releases (v0.8.3 and later).