On 2017-07-13 11:24, Felix Miata wrote:
David C. Rankin composed on 2017-07-13 03:46 (UTC-0500):
What is the best way to change mirror selection (aside from hacking the .repo file in /etc/zypp/repos.d)?
The simplicity of "hacking" repos is one of the advantages of zypp over other package management systems. Example:
-rw-r--r-- 1 246 Nov 16 2016 Update.repo -rw-r--r-- 1 246 Nov 16 2016 Update.repoD -rw-r--r-- 1 254 Nov 16 2016 Update.repo-gwdg -rw-r--r-- 1 244 Nov 16 2016 Update.repoW
Using MC it's a simple enough matter to "cp" Update from download.o.o to widehat.o.o or gwdg when mirrorbrain is suffering brainlock, and back afterward. Same goes for creating, deleting, disabling or enabling any repo. The only files zypp considers relevant are those ending in .repo in /etc/zypp/repos.d/.
I edit the file directly, leaving the old entry commented out. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)