One more question about mirrorlist ranking

I want to have my mirrorlist sorted by the 10 fastest https mirrors from germany with rate-mirrors, without using reflector simple first.

With rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist

all mirrors will be sorted.

So I have to modify rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist to filter only the https mirrors from Germany and then sort them by speed. How to do this? Please help!

You can limit to https and sort by speed with:

rate-mirrors --protocol https arch | sudo tee /etc/pacman.d/mirrorlist

When using rate-mirrors there is no reason to limit to 10. It can give you a good quality list in only a few seconds.

I don’t think you can limit by country. You can tell it what country to start in but rate-mirrors is about finding the fastest mirrors.

Another option to consider is --max-delay which limits how old the mirrors can be.

1 Like

Thank you @dalto. Limiting by country is admittedly not necessary when sorting by fastest servers anyway, I agree. I just derived that from reflector simple, since there the default is like that (10 https-mirrors, Germany).

1 Like

I use reflector simple and i only select US and Canada and i set the number of mirrors. Occasionally i update mirrors also because some of the US mirrors and sometimes the Canadian mirrors are inaccessible for whatever reason and cause issues with updating. No other countries are selected so it only rates and saves the mirrors for the Countries selected.

This is how I have always done it so far (in relation to Germany). But also wanted to try something else … :slight_smile: .

No problem with trying something else. You’ll either have success or it may not work as well or maybe it’s no different? :man_shrugging:

time will tell …

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.