Currently, I automatically update and rank my arch mirrors with the reflector.timer .
Is there something similar for the eos mirrors?
As far as I am aware, after certain eos-updates my eos mirrors are getting ranked automatically.
(of course, still have to merge the changes manually by renaming .pacnew files).
I understand, that I can always create my own cronjob to execute and update eos-mirrors. In this case, I was interested if there already is a preferred solution in place instead of crafting my own.
There’s a pacman hook that (if allowed in file /etc/eos-rankmirrors.conf) ranks EndeavourOS mirrors each time package endeavouros-mirrorlist is updated.
There’s no other service to rank EndeavourOS mirrors automatically.
That is not hard to create (a systemd service or a cronjob).
However I’m not sure if making it automatic is really useful in most cases.
But it is your system and your rules.
Note also that the config file mentioned above has many potentially useful settings you might consider applying.
In the /etc/eos-rankmirrors.conf there are two settings that can be configured to automate the sorting of the eos mirrors and remove the .pacnew file:
# EOS_OVERWRITE_MIRRORLIST determines whether the
# new EndeavourOS mirror list will automatically overwrite
# the existing list or simply be stored as a .pacnew file.
# Supported values:
# "yes" Overwrite the existing /etc/endeavouros-mirrorlist.
# "no" Save new mirror list as a .pacnew file (default).
#
EOS_OVERWRITE_MIRRORLIST=yes
# EOS_RANK_WHEN_MIRRORLIST_CHANGES specifies whether to automatically run eos-rankmirrors
# when package 'endeavouos-mirrorlist' gets an update.
# Supported values:
# yes (default for backwards compatibility)
# no
#
EOS_RANK_WHEN_MIRRORLIST_CHANGES=yes
There’s no other service to rank EndeavourOS mirrors automatically.
That is not hard to create (a systemd service or a cronjob).
I was aware of that. Just wondered if there was something like reflector.timer.
However I’m not sure if making it automatic is really useful in most cases.
But it is your system and your rules.
Could you elaborate on this?
Automatic arch mirror ranking once a day or week proofed useful and time saving to me since it removed the overhead from me having to rank them manually when something with the previously configured mirrors went wrong (which happened 2-3 times/year).
Is there a reason I should also shy away from reflector.timer?
Depending on a few factors like e.g. the location and the status of various mirrors ranking may create less than optimal result.
If your way works for you in your location and the mirrors you use, then it is fine, and no real reason to change.
But that may not be the case everywhere and every time.
So it is really up to the user to choose which ranking way/schedule/tool works best.