Hi
it’s my first post here and i am really enjoying this distro
but when i set new mirrors from reflector after a while it goes back to my local mirrors.
what can i do for fix that?
Welcome aboard!
Change them from the welcome application and report back
It looks that whenever you open the reflector-simple
it will only show the local mirrors as chosen. That wouldn’t mean that the mirrorlist that you have generated in a previous run has changed.
See: /etc/pacman.d/mirrorlist
Welcome!
i think what poster want to say is that reflector-simple is not saving country selection in the gui app itsef?
this is not a BUG it is simple not implemented.
I’ve been meaning to ask about this myself, cause I would like reflector to check Canada as well as the U.S. for the fastest servers, and then save those settings.
Welcome to the community
Welcome aboard!
I’d guess that an alias calling reflector would do that job for you easily enough. I find that clicking on US to add it to the Canada it already has selected is not that burdensome
Welcome to EndeavourOS
Welcome!
To be specific, could you show
- the contents of
/etc/pacman.d/mirrorlist
before and after runningreflector-simple
- a picture of your selections in
reflector-simple
That would help a lot when troubleshooting this.
EDIT: Seems that I misread something. reflector-simple
does not save any settings. The only “setting” it has is the country name (based on the IP address) which is selected by default.
Having said that, there is a way to save your settings into file /etc/reflector-auto.conf
. If this file exists, it is used also by reflector-simple
, provided that you select it in reflector-simple
! In that file you can save any options supported by reflector
.
More info about reflector options:
reflector -h
EDIT2: Just added support for configuration file /etc/reflector-simple.conf
. It can contain reflector options as well. The difference to /etc/reflector-auto.conf is that /etc/reflector-simple.conf is selected by default.
So now you can save your settings quite easily.
Can you explain further about creating an alias? AS for what should happen when you go to update the mirrors, it should check worldwide for the fasted and make those your mirror list.
It looks I don’t have /etc/reflector-simple.conf
.
cat /etc/reflector-simple.conf
cat: /etc/reflector-simple.conf: No such file or directory
sudo pacman -Syu reflector-simple
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
endeavouros is up to date
warning: reflector-simple-1.4.2-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (1) reflector-simple-1.4.2-1
Total Installed Size: 0.01 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [----------------------] 100%
(1/1) checking package integrity [----------------------] 100%
(1/1) loading package files [----------------------] 100%
(1/1) checking for file conflicts [----------------------] 100%
(1/1) checking available disk space [----------------------] 100%
:: Processing package changes...
(1/1) reinstalling reflector-simple [----------------------] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the desktop file MIME type cache...
pacman -Ql reflector-simple
reflector-simple /usr/
reflector-simple /usr/bin/
reflector-simple /usr/bin/reflector-simple
reflector-simple /usr/share/
reflector-simple /usr/share/applications/
reflector-simple /usr/share/applications/reflector-simple.desktop
Yes, it is not part of the package. You may write it if you need any “permanent” settings.
The GUI itself already has some default settings, and the config file can just override them.
Alright. I kind of suspected that I might need to create it myself. Thanks for the clarification!
Something like this, should do the trick:
alias mirrors="sudo reflector --verbose --protocol https --country Germany --country Sweden --latest 10 --sort rate --save /etc/pacman.d/mirrorlist"
It should be enough to pick a country or two very close by, as long as there’s a decent number of options within those selections.
Just for the record, it is very simple. Simply add reflector options - can have many lines, can have comments, can have many options on the same line.
Country names and country codes can be seen with command: reflector --list-countries
For example:
# Example /etc/reflector-simple.conf: --sort age --age 5 --number 20 --country Canada,US --country "United Kingdom"
Got it, thanks!
This is a few years old but it is still bang on and works great.
# Update Mirrors using Reflector #
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
## OLD Sudo reflector --country 'United States' --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
sudo reflector --verbose --country 'United States' --age 12 -l 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
Ref:
https://www.ostechnix.com/retrieve-latest-mirror-list-using-reflector-arch-linux/
https://www.quora.com/How-do-you-list-Arch-Linux-mirrors-by-speed-for-a-specific-country-rather-than-globally
https://wiki.archlinux.org/index.php/reflector
the app show local mirrors when starts, but mirrors file will change.