Source and debug repos keep getting added to repolist

Whenever I review repositories in my leap 15.6 system, there are a half-of-a-dozen source code and debug repos installed. They are installed but not enabled,

I manually delete them but next time I review the repos they are back. I do not know what is reinstalling them. Is there some setting where I am asking for them?? I do not remember seeing such a thing.

Just a minor annoyance but do not like something installing repos without my knowledge.

thanks, tom kosvic

I assume this is done by the package openSUSE-repos-Leap (and there is another one `openSUSE-repos-Leap-NVIDIA).

They seem to have been developed to be of help to system managers who can not manage their repository list.

Removing the package(s) will stop what you reported.

This was already discussed and mentioned several times. The repo definitions are now in most cases managed by a service which is part of the package openSUSE-repos-Leap. You can’t modify the base repos when the package is installed.
This is to help unexperienced users to manage their repos and prevent destructive changes to the standard repos.

I am not finding repo culprits mentioned in your responses in my list. For reference, I include following.

(base) tom@mydesktop: ~ $ sudo zypper lr -u
[sudo] password for root: 
Repository priorities in effect:                                       (See 'zypper lr -P' for details)
      90 (raised priority)  :  1 repository
      99 (default priority) : 18 repositories

#  | Alias                                        | Name                     | Enabled | GPG Check | Refresh | URI
---+----------------------------------------------+--------------------------+---------+-----------+---------+--------------------------------------------------------------------
 1 | NVIDIA:repo-non-free                         | repo-non-free (15.6)     | Yes     | (r ) Yes  | Yes     | https://download.nvidia.com/opensuse/leap/15.6
 2 | download.nvidia.com-$releasever              | nVidia Graphics Drivers  | Yes     | (r ) Yes  | Yes     | http://download.nvidia.com/opensuse/leap/15.6
 3 | ftp.gwdg.de-openSUSE_Leap_$releasever_1      | packman                  | Yes     | (r ) Yes  | Yes     | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.6/
 4 | http-download.opensuse.org-1ca1690e          | oss-update               | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.6/oss/
 5 | http-download.opensuse.org-1f61c7be          | oss                      | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.6/repo/oss/
 6 | openSUSE:repo-non-oss                        | repo-non-oss (15.6)      | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/distribution/leap/15.6/repo/non-oss
 7 | openSUSE:repo-openh264                       | repo-openh264 (15.6)     | Yes     | (r ) Yes  | Yes     | http://codecs.opensuse.org/openh264/openSUSE_Leap
 8 | openSUSE:repo-oss                            | repo-oss (15.6)          | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/distribution/leap/15.6/repo/oss
 9 | openSUSE:update-backports                    | update-backports (15.6)  | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/update/leap/15.6/backports
10 | openSUSE:update-non-oss                      | update-non-oss (15.6)    | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/update/leap/15.6/non-oss
11 | openSUSE:update-oss                          | update-oss (15.6)        | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/update/leap/15.6/oss
12 | openSUSE:update-sle                          | update-sle (15.6)        | Yes     | (r ) Yes  | Yes     | http://cdn.opensuse.org/update/leap/15.6/sle
13 | openSUSE_Leap_${releasever}                  | leap 15.6 -- games       | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/games:/tools/15.6/
14 | openSUSE_Leap_${releasever}_1                | leap 15.6 -- science     | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/science/15.6/
15 | openSUSE_Leap_${releasever}_2                | leap 15.6 -- education   | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/Education/15.6/
16 | openSUSE_Leap_${releasever}_3                | leap 15.6 -- geo         | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/Application:/Geo/15.6/
17 | openSUSE_Leap_${releasever}_4                | leap 15.6 -- electronics | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/electronics/15.6/
18 | openSUSE_Leap_${releasever}_5                | leap 15.6 -- graphics    | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/graphics/15.6/
19 | opensuse-guide.org-openSUSE_Leap_$releasever | Libdvdcss Repository     | No      | ----      | ----    | http://opensuse-guide.org/repo/openSUSE_Leap_15.6/
20 | vivaldi                                      | vivaldi                  | Yes     | (r ) Yes  | Yes     | https://repo.vivaldi.com/archive/rpm/x86_64
(base) tom@mydesktop: ~ $ 

Please point out problems.  If this has been discussed before, I apologize and will look up references.

thanks,     tom kosvic

As mentioned: the repo definitions are provided by packages

zypper se -si openSUSE-repos-Leap
zypper se -si openSUSE-repos-Leap-NVIDIA

After removing the packages you need to add the standard repos yourself…

I still need to review this.
If I leave things as they are all I will have is “not enabled” source code and debug repos added, right?
So, No harm- no foul.

I will let it be for now.

thanks, tom kosvic

If I delete above referenced packages through zypper, will all my existing repos be deleted? Need to know so as to retain copy for reinstall.

That is explained in the link.

Why??? The package is gone, it will do nothing anymore.

Yes, it does. (Edit: Except the ones you have installed manually.) Just tried:

pluto:~ # zypper rm openSUSE-repos-Leap
Installierte Pakete werden gelesen...
Paketabhängigkeiten werden aufgelöst...

Die folgenden 2 Pakete werden GELÖSCHT:
  openSUSE-repos-Leap openSUSE-repos-Leap-NVIDIA

2 zu entfernende Pakete.
Nach dem Vorgang werden 2,8 KiB freigegeben.

Backend:  classic_rpmtrans
Fortfahren? [j/n/v/...? zeigt alle Optionen] (j): j
Removing service 'NVIDIA':
Removing repository 'repo-non-free (15.5)' [..Removing repository 'repo-non-free (15.5)' [....done]
done]
Service 'NVIDIA' has been removed.
(1/2) openSUSE-repos-Leap-NVIDIA-20240510.6bfa644-lp155.2.9.1.x86_64 wird entfernt ................................................................................................................................................................................[fertig]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss'
Removing repository 'repo-oss (15.5)' [..Removing repository 'repo-oss (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-non-oss'
Removing repository 'repo-non-oss (15.5)' [..Removing repository 'repo-non-oss (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-openh264'
Removing repository 'repo-openh264 (15.5)' [..Removing repository 'repo-openh264 (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-oss'
Removing repository 'update-oss (15.5)' [..Removing repository 'update-oss (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-non-oss'
Removing repository 'update-non-oss (15.5)' [..Removing repository 'update-non-oss (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-backports'
Removing repository 'update-backports (15.5)' [..Removing repository 'update-backports (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss-debug'
Removing repository 'repo-oss-debug (15.5)' [..Removing repository 'repo-oss-debug (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss-source'
Removing repository 'repo-oss-source (15.5)' [..Removing repository 'repo-oss-source (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-non-oss-debug'
Removing repository 'repo-non-oss-debug (15.5)' [..Removing repository 'repo-non-oss-debug (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-oss-debug'
Removing repository 'update-oss-debug (15.5)' [..Removing repository 'update-oss-debug (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-non-oss-debug'
Removing repository 'update-non-oss-debug (15.5)' [..Removing repository 'update-non-oss-debug (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-backports-debug'
Removing repository 'update-backports-debug (15.5)' [..Removing repository 'update-backports-debug (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-sle'
Removing repository 'update-sle (15.5)' [..Removing repository 'update-sle (15.5)' [....done]
done]
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-sle-debug'
Removing repository 'update-sle-debug (15.5)' [..Removing repository 'update-sle-debug (15.5)' [....done]
done]
Service 'openSUSE' not found by alias, number or URI.
(2/2) openSUSE-repos-Leap-20240510.6bfa644-lp155.2.9.1.x86_64 wird entfernt .......................................................................................................................................................................................[fertig]

And what? What is now output from zypper lr -d? Do you have all that are required?

# zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias        | Enabled | GPG Check | URI
--+--------------+---------+-----------+------------------------------------------------------------------
1 | NonOSS       | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.6/repo/non-oss/
2 | OSS          | Yes     | (r ) Yes  | http://download.opensuse.org/distribution/leap/15.6/repo/oss/
3 | Update       | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/oss/
4 | UpdateBP     | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/backports/
5 | UpdateNonOSS | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/non-oss/
6 | UpdateSLE    | Yes     | (r ) Yes  | http://download.opensuse.org/update/leap/15.6/sle/
7 | openh264     | Yes     | (r ) Yes  | http://codecs.opensuse.org/openh264/openSUSE_Leap/
#

You may instead have cdn or mirrorcache where I have opensuse, which is fine.

Ah, well. Forgot that, sorry. I did a zypper lr -d:

pluto:~ # zypper lr -d
#  | Alias                                | Name                                                | Enabled | GPG Check | Refresh | Priority | Type     | URI                                                                                                       | Service
---+--------------------------------------+-----------------------------------------------------+---------+-----------+---------+----------+----------+-----------------------------------------------------------------------------------------------------------+--------
 1 | Network                              | Network                                             | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/repositories/network/15.5/                                                   | 
 2 | download.nvidia.com-leap             | nVidia Graphics Drivers                             | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://download.nvidia.com/opensuse/leap/15.5                                                            | 
 3 | download.opensuse.org-non-oss_1      | Aktualisierungs-Repository (Nicht-Open-Source-Sof-> | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.5/non-oss/                                                    | 
 4 | download.opensuse.org-oss_1          | Hauptaktualisierungs-Repository                     | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.5/oss                                                         | 
 5 | games                                | openSUSE Games                                      | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://download.opensuse.org/repositories/games/15.5/                                                    | 
 6 | https-download.opensuse.org-427e2937 | home:wolfi323:branches:KDE:Frameworks5              | Nein    | ----      | ----    |   99     | rpm-md   | https://download.opensuse.org/repositories/home:/wolfi323:/branches:/KDE:/Frameworks5/openSUSE_Leap_15.5/ | 
 7 | install                              | Lokale Quellen                                      | Ja      | ( p) Ja   | Ja      |   99     | plaindir | dir:/home/kasi/unsers/install                                                                             | 
 8 | openSUSE_Leap_${releasever}_2        | Mozilla                                             | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.5/                                     | 
 9 | opensuse-guide.org-repo              | Libdvdcss Repository                                | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://opensuse-guide.org/repo/openSUSE_Leap_15.5/                                                        | 
10 | packman                              | Packman Repository                                  | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/                                        | 
11 | systemsmanagement_cockpit            | systemsmanagement:cockpit                           | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://download.opensuse.org/repositories/systemsmanagement:/cockpit/15.5/                               | 
12 | teamviewer                           | TeamViewer - x86_64                                 | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/                                               | 
pluto:~ # 

Too late for “LANG=C” as I immediately reinstalled the package. I found the repo list a bit too sparse. I’m still on 15.5 but I assume the effect is the same.
And after reinstall:

pluto:~ # zypper lr -d
#  | Alias                                | Name                                               | Enabled | GPG Check | Refresh | Priority | Type     | URI                                                                                                       | Service
---+--------------------------------------+----------------------------------------------------+---------+-----------+---------+----------+----------+-----------------------------------------------------------------------------------------------------------+---------
 1 | Network                              | Network                                            | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/repositories/network/15.5/                                                   | 
 2 | download.nvidia.com-leap             | nVidia Graphics Drivers                            | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://download.nvidia.com/opensuse/leap/15.5                                                            | 
 3 | download.opensuse.org-non-oss_1      | Aktualisierungs-Repository (Nicht-Open-Source-So-> | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.5/non-oss/                                                    | 
 4 | download.opensuse.org-oss_1          | Hauptaktualisierungs-Repository                    | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.5/oss                                                         | 
 5 | games                                | openSUSE Games                                     | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://download.opensuse.org/repositories/games/15.5/                                                    | 
 6 | https-download.opensuse.org-427e2937 | home:wolfi323:branches:KDE:Frameworks5             | Nein    | ----      | ----    |   99     | rpm-md   | https://download.opensuse.org/repositories/home:/wolfi323:/branches:/KDE:/Frameworks5/openSUSE_Leap_15.5/ | 
 7 | install                              | Lokale Quellen                                     | Ja      | ( p) Ja   | Ja      |   99     | plaindir | dir:/home/kasi/unsers/install                                                                             | 
 8 | openSUSE:repo-non-oss                | repo-non-oss (15.5)                                | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://cdn.opensuse.org/distribution/leap/15.5/repo/non-oss                                               | openSUSE
 9 | openSUSE:repo-non-oss-debug          | repo-non-oss-debug (15.5)                          | Nein    | ----      | ----    |   99     | N/A      | http://cdn.opensuse.org/debug/distribution/leap/15.5/repo/non-oss                                         | openSUSE
10 | openSUSE:repo-openh264               | repo-openh264 (15.5)                               | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://codecs.opensuse.org/openh264/openSUSE_Leap                                                         | openSUSE
11 | openSUSE:repo-oss                    | repo-oss (15.5)                                    | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://cdn.opensuse.org/distribution/leap/15.5/repo/oss                                                   | openSUSE
12 | openSUSE:repo-oss-debug              | repo-oss-debug (15.5)                              | Nein    | ----      | ----    |   99     | N/A      | http://cdn.opensuse.org/debug/distribution/leap/15.5/repo/oss                                             | openSUSE
13 | openSUSE:repo-oss-source             | repo-oss-source (15.5)                             | Nein    | ----      | ----    |   99     | N/A      | http://cdn.opensuse.org/source/distribution/leap/15.5/repo/oss                                            | openSUSE
14 | openSUSE:update-backports            | update-backports (15.5)                            | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://cdn.opensuse.org/update/leap/15.5/backports                                                        | openSUSE
15 | openSUSE:update-backports-debug      | update-backports-debug (15.5)                      | Nein    | ----      | ----    |   99     | N/A      | http://cdn.opensuse.org/update/leap/15.5/backports_debug                                                  | openSUSE
16 | openSUSE:update-non-oss              | update-non-oss (15.5)                              | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://cdn.opensuse.org/update/leap/15.5/non-oss                                                          | openSUSE
17 | openSUSE:update-non-oss-debug        | update-non-oss-debug (15.5)                        | Nein    | ----      | ----    |   99     | N/A      | http://cdn.opensuse.org/debug/update/leap/15.5/non-oss                                                    | openSUSE
18 | openSUSE:update-oss                  | update-oss (15.5)                                  | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://cdn.opensuse.org/update/leap/15.5/oss                                                              | openSUSE
19 | openSUSE:update-oss-debug            | update-oss-debug (15.5)                            | Nein    | ----      | ----    |   99     | N/A      | http://cdn.opensuse.org/debug/update/leap/15.5/oss                                                        | openSUSE
20 | openSUSE:update-sle                  | update-sle (15.5)                                  | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://cdn.opensuse.org/update/leap/15.5/sle                                                              | openSUSE
21 | openSUSE:update-sle-debug            | update-sle-debug (15.5)                            | Nein    | ----      | ----    |   99     | N/A      | http://cdn.opensuse.org/debug/update/leap/15.5/sle                                                        | openSUSE
22 | openSUSE_Leap_${releasever}_2        | Mozilla                                            | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.5/                                     | 
23 | opensuse-guide.org-repo              | Libdvdcss Repository                               | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://opensuse-guide.org/repo/openSUSE_Leap_15.5/                                                        | 
24 | packman                              | Packman Repository                                 | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/                                        | 
25 | systemsmanagement_cockpit            | systemsmanagement:cockpit                          | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://download.opensuse.org/repositories/systemsmanagement:/cockpit/15.5/                               | 
26 | teamviewer                           | TeamViewer - x86_64                                | Ja      | (r ) Ja   | Ja      |   99     | rpm-md   | https://linux.teamviewer.com/yum/stable/main/binary-x86_64/                                               | 
pluto:~ #

I’m not sure what I see in post #12, as I only read English. Please use LANG=C for command output to be posted here.

These include all files reponsible for the list in my previous comment:

# ls -gGt /etc/zypp/repos.d/*.repo
-rw-r--r-- 1 153 Jun 12 15:06 /etc/zypp/repos.d/NonOSS.repo
-rw-r--r-- 1 143 Jun 12 15:06 /etc/zypp/repos.d/OSS.repo
-rw-r--r-- 1 239 Jun 12 15:06 /etc/zypp/repos.d/UpdateBP.repo
-rw-r--r-- 1 145 Jun 12 15:06 /etc/zypp/repos.d/UpdateNonOSS.repo
-rw-r--r-- 1 129 Jun 12 15:06 /etc/zypp/repos.d/Update.repo
-rw-r--r-- 1 135 Jun 12 15:06 /etc/zypp/repos.d/UpdateSLE.repo
---------- 1   0 May 24 00:53 /etc/zypp/repos.d/repo-sle-update.repo
---------- 1   0 May 24 00:53 /etc/zypp/repos.d/repo-sle-debug-update.repo
---------- 1   0 May 24 00:53 /etc/zypp/repos.d/repo-backports-update.repo
---------- 1   0 May 24 00:53 /etc/zypp/repos.d/repo-backports-debug-update.repo
-rw-r--r-- 1 192 Feb  8  2023 /etc/zypp/repos.d/openh264.repo
# lsattr /etc/zypp/repos.d/repo-*
----i---------e------- /etc/zypp/repos.d/repo-backports-debug-update.repo
----i---------e------- /etc/zypp/repos.d/repo-backports-update.repo
----i---------e------- /etc/zypp/repos.d/repo-sle-debug-update.repo
----i---------e------- /etc/zypp/repos.d/repo-sle-update.repo
#

Note all enabled repos have filenames that differ from OEM repo files. I have about 20 15.6 installations. Each uses a copy of each of the .repo files kept on my LAN server. If I find the timestamps have changed, I know something besides me changed something. There are no repo services enabled here. As the now empty files are originally provided by the openSUSE-release package, their existence is forced whenever the package is installed or re-installed. The only way that I’m aware of to not have them affect matters of importance to me is forcing them to remain empty in the manner exhibited above.

Hi @mrmazda ,

Sorry, too late:

I just tried removing the package “openSUSE-repos-Leap” (which also removed “openSUSE-repos-Leap-NVIDA”). All the repos that have been mentioned in the output I posted here have actually been removed. That’s shown by the “zypper lr -d” which shouldn’t be too hard too check without “LANG=C”. It’s just missing the relevant repos.

Constructing a .repo file requires little effort. Here is one of my working ones:

# cat /etc/zypp/repos.d/OSS.repo
[OSS]
autorefresh=1
baseurl=http://download.opensuse.org/distribution/leap/15.6/repo/oss/
enabled=1
keeppackages=0
name=OSS
path=/
type=rpm-md
#

Using yours that remain as templates and/or starting points you can construct the rest by using the URLs already provided here. Or, reinstall package openSUSE-repos-Leap, copy the files it creates, remove the package, then copy the files back, preferably using different filenames and editing each file’s repo name (like I do and showed). Or, copy from one of your backups, or another Leap computer. You also have the option to substitute $releasever for 15.6 in each file’s URL.

Thanks for the advice. :slight_smile: That’s what I have done immediately. I don’t really have an issue. I just wanted to point out that repos actually get removed along with the package openSUSE-repos-Leap. No more, no less. :slight_smile:
I was actually surprised that repos that I had in my regular repo list for years have been removed along. On the other hand, I don’t know anymore if I actually installed the package openSUSE-repos-Leap manually and what the output had been. So, in my specif case it might be a simple PEBKAC.

ok, after all the controversy, if I wish to not have debug and source repos in my repo list, can I:

  1. make a copy /etc/zypp/repos.d directory
  2. with zypper, remove openSUSE-repos-Leap and `openSUSE-repos-Leap-NVIDIA packages, and
  3. reinstall original /etc/zypp/repos.d from the copy

and be back to where I was.
thanks, tom kosvic

Perhaps it is the meaning of your term “repo definitions” that keeps me from understanding the point you are making and what is wrong with my step-wise procedure.

Would you amplify the meaning of the term “repo definitions”? Yes, the “repo definitions” from the repo packages would be cooked into the current /etc/zypp/repos.d directory items. But, what are they?

The important information is in the link to github where it is explained how to get back the original repo setup.