On 2016-08-27 20:01, Felix Miata wrote:
Markus Egg composed on 2016-08-27 19:29 (UTC+0200): ...
Can I explicitly tell yast2 to use a certain mirror per http path? Did not find a hint for this on the net.
I use MC for nearly everything it is capable of doing. For this process MC makes it simple. Just copy a different *.repo* file to *.repo for whichever repo is misbehaving. YaST & Zypp only pay any attention to *.repo so the extra files in /etc/zypp/ function as handy repo switchers as well as local backup.
Instead of trying to figure out what to copy and paste to zypper ar to add a BS repo, I just save the .repo file from a mirror to /etc/zypp/repos.d/. Disabling or enabling a particular repo is a simple matter of having or not having that particular *.repo file. This repo configuration "feature" is one of a multitude of things that makes zypp a bunch better than Yum, DNF and other package management systems I'm familiar with.
# ls -lgG /etc/zypp/repos.d/ | egrep 'OSS|date' -rw-r--r-- 1 288 Nov 19 2013 NonFreeUpdate.repoD -rw-r--r-- 1 292 Nov 19 2013 NonFreeUpdate.repo-gwdg -rw-r--r-- 1 148 Nov 19 2013 Non-OSS.repo -rw-r--r-- 1 148 Nov 19 2013 Non-OSS.repoD -rw-r--r-- 1 152 Nov 19 2013 Non-OSS.repo-gwdg -rw-r--r-- 1 157 Nov 19 2013 Non-OSS.repoK -rw-r--r-- 1 147 Nov 19 2013 Non-OSS.repoW
Interesting trick. What I so is edit the file and comment out the URL with "#", and write another. YaST/zyper think the repo did not change. Another trick. If you want an automatic change, use this trick: [EXT_Packman] name=EXT: Packman Repository enabled=1 autorefresh=1 path=/ mirrorlist=http://localhost/packmanmirrorlist.file type=rpm-md priority=95 keeppackages=1 The local apache points to /etc/zypp/repos.d/packmanmirrorlist.file, which contains: http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.1/ If one url does not work, it automatically loads from the other ;-) That's on 13.1, maybe there are more recent tricks. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)