The content in /etc/zypp/repos.d

I recently looked at the content in my /etc/zypp/repos.d

-rw-r--r-- 1 root root 150 Mar 30 23:50 NVIDIA:repo-non-free.repo
-rw-r--r-- 1 root root 177 Oct 14 22:07 openSUSE-*-0.repo.rpmsave
-rw-r--r-- 1 root root 140 Mar 30 23:46 openSUSE:repo-non-oss.repo
-rw-r--r-- 1 root root 149 Mar 30 23:46 openSUSE:repo-openh264.repo
-rw-r--r-- 1 root root 146 Mar 30 23:46 openSUSE:repo-oss-debug.repo
-rw-r--r-- 1 root root 128 Mar 30 23:46 openSUSE:repo-oss.repo
-rw-r--r-- 1 root root 149 Mar 30 23:46 openSUSE:repo-oss-source.repo
-rw-r--r-- 1 root root 144 Mar 30 23:46 openSUSE:update-tumbleweed.repo
-rw-r--r-- 1 root root 154 Oct 14 22:07 repo-debug.repo.rpmsave
-rw-r--r-- 1 root root 168 Oct 14 22:07 repo-non-oss.repo.rpmsave
-rw-r--r-- 1 root root 182 Oct 14 22:07 repo-openh264.repo.rpmsave
-rw-r--r-- 1 root root 156 Oct 14 22:07 repo-oss.repo.rpmsave
-rw-r--r-- 1 root root 157 Oct 14 22:07 repo-source.repo.rpmsave
-rw-r--r-- 1 root root 160 Oct 14 22:07 repo-update.repo.rpmsave

As shown above, I find some files beginning with β€œopenSUSE” as the filename, which I believe are created after installing some packages ( I can not remember the name of them ) recommend by YAST software management.

By comparing one of those

File: openSUSE:repo-oss.repo
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ [openSUSE:repo-oss]
   2   β”‚ name=repo-oss
   3   β”‚ enabled=1
   4   β”‚ autorefresh=1
   5   β”‚ baseurl=http://cdn.opensuse.org/tumbleweed//repo/oss
   6   β”‚ service=openSUSE

with

 File: repo-oss.repo.rpmsave
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ [repo-oss]
   2   β”‚ name=openSUSE-Tumbleweed-Oss
   3   β”‚ enabled=1
   4   β”‚ autorefresh=1
   5   β”‚ baseurl=http://download.opensuse.org/tumbleweed/repo/oss/
   6   β”‚ path=/
   7   β”‚ type=rpm-md
   8   β”‚ keeppackages=0

Both of them seem to point to the different url for the oss repo…
But by looking at the content in these two different url, they seems very similar.
So what is the difference between these two repos?

And it seems that the repo β€œrepo-oss”, for example, does not show up in my repo list.

# | Alias                      | Name | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                     | Service
--+----------------------------+------+---------+-----------+---------+----------+--------+---------------------------------------------------------+---------
1 | NVIDIA:repo-non-free       | re-> | No      | ----      | ----    |   99     | rpm-md | https://download.nvidia.com/opensuse/tumbleweed/        | NVIDIA
2 | openSUSE:repo-non-oss      | re-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed//repo/non-oss        | openSUSE
3 | openSUSE:repo-openh264     | re-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed | openSUSE
4 | openSUSE:repo-oss          | re-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://cdn.opensuse.org/tumbleweed//repo/oss            | openSUSE
5 | openSUSE:repo-oss-debug    | re-> | No      | ----      | ----    |   99     | N/A    | http://cdn.opensuse.org/debug/tumbleweed//repo/oss      | openSUSE
6 | openSUSE:repo-oss-source   | re-> | No      | ----      | ----    |   99     | N/A    | http://cdn.opensuse.org/source/tumbleweed//repo/oss     | openSUSE
7 | openSUSE:update-tumbleweed | up-> | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://cdn.opensuse.org/update/tumbleweed/              | openSUSE

The openSUSE:* repositories are automatically created by the repository service. See zypper ls. Read man zypper for the description of what services are.

Services make it easier to change repository definitions when needed. E.g. when switching from download.opensuse.org to cdn.opensuse.org.

1 Like

Thank you for the information :grinning:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.