[TO TEST OUT] rate-arch-mirrors: client-side map-aware tool

A place to share tips, guides, application configurations and scripts about all elements of ArcoLinux, all of your personal configurations to make ArcoLinux awesome
Post Reply
westandskif
recruit crewman
Posts: 2
Joined: Sun Apr 04, 2021 10:19 pm

[TO TEST OUT] rate-arch-mirrors: client-side map-aware tool

Post by westandskif »

Hello everyone!

I've built an alternative to Reflector, which:
- knows something about internet infrastructure (submarine cables and at least numbers of internet exchanges per country)
- doesn't spend eternity on trying to load a file of a fixed size from a half-dead mirror
- knows when the speed has stabilized and is able to stop a speed test
- tests concurrently during the phase #1, where dirty checks occur
- re-tests top N mirrors - phase #2
- is ok to run before each system update.

Links:
- https://github.com/westandskif/rate-arch-mirrors
- AUR rate-arch-mirrors-bin - pre-built binary with statically linked musl
- AUR rate-arch-mirrors - needs rust, dynamically links glibc

This is an example of output: github gist

Any feedback is much appreciated!

User avatar
erikdubois
Captain
Posts: 4128
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: rate-arch-mirrors: client-side map-aware tool

Post by erikdubois »

Well I have a question

Can we have a switch (might be there already) to just write (-w) the result to /etc/pacman.d/mirrorlist?
Having a config file somewhere is most of the time very helpful to read and adjust all the options.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

User avatar
erikdubois
Captain
Posts: 4128
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [TO TEST OUT] rate-arch-mirrors: client-side map-aware tool

Post by erikdubois »

We created an alias to test it out.

Code: Select all

sudo pacman -S rate-arch-mirrors-bin
alias mirrorr="rate-arch-mirrors | sudo tee /etc/pacman.d/mirrorlist"

Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

westandskif
recruit crewman
Posts: 2
Joined: Sun Apr 04, 2021 10:19 pm

Re: rate-arch-mirrors: client-side map-aware tool

Post by westandskif »

Hi!
Thank you very much for recording the video on this! :)
erikdubois wrote:
Mon Apr 05, 2021 7:33 am
Can we have a switch (might be there already) to just write (-w) the result to /etc/pacman.d/mirrorlist?
Having a config file somewhere is most of the time very helpful to read and adjust all the options.
Sure, I'll add ``--save`` option and let you guys know - https://github.com/westandskif/rate-arc ... s/issues/2

Post Reply

Return to “Configs, Scripts”