On 07/25/2017 12:53 PM, John Andersen wrote:
Very strange. locate can't find ANY of those files on my 42.2 system and you didn't bother to tell us what directory those are in.
John, No mystery, you either create them by hand (copying one to the other and changing the name between [....] to your new name and specifying the new 'baseurl' with the new url -- or -- you use 'zypper ar' (add repo) and specify the url and short_name (which it puts between the [...] for you :) The .repo files are simple text files. Example, here are the two I have for 'update' the original and my 'updatetx' specifying the Texas mirror, (default update using mirrorbrain) $ cat /etc/zypp/repos.d/download.opensuse.org-oss_1.repo [update] name=Main Update Repository enabled=1 autorefresh=1 baseurl=http://download.opensuse.org/update/leap/42.2/oss path=/ type=rpm-md keeppackages=0 (custom update with fixed url) $ cat /etc/zypp/repos.d/updatetx.repo [updatetx] name=Main Update Repository enabled=1 autorefresh=1 baseurl=http://ftp.utexas.edu/opensuse/update/leap/42.2/oss path=/ type=rpm-md keeppackages=0 When you 'zypper lr' (list repos), zypper just scans the /etc/zypp/repos.d directory and includes what it finds. The `'enabled` flag in each file tells zypper whether the repo is enabled or not. Really quite simple once you make friends with it. Take the dir out for a beer.... -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org