This is a rust replacement for the Reflector python app for arch linux to retrieve and filter the latest Pacman mirror list.
This Project is currently under development. Contributions Welcome. The following features are currently available:
bash
refractor --fastest <count> # evaluates mirrors & returns the fastest n AVAILBLE mirrors
refractor --latest <count> # evaluates mirrors & prints the latest n AVAILBLE mirrors
refractor --protocol=http,https,rsync # evaluate only mirrors of protocol http/https/rsync
bash
refractor --fastest n --save /etc/pacman.d/mirrorlist # saves the fastest n mirrors to file
refractor --sort {age,rate,score,country,delay} # add more sorting options
bash
cargo install refractor
Thank you for investing your time to contribute this project. This project is still in the development stage. Feel free to fork the repo & raise a PR against this repo. Be sure to raise an issue before you create a PR to avoid development conflicts or duplication of efforts.