How to disable cnd repo in leap15.6

I added the “aliyun” mirror repos in leap15.6 and delete all the defaults ones. but after i refresh the repo, all the cdn repos appeared again . I donn’t know how to disable them. these cnd repos have a low connection speed in china mainldand.
Could you pleaes help me ou.

Some repos come from openSUSE-repos-Leap-NVIDIA and openSUSE-repos-Leap, but they aren’t needed by those who would rather manage their repos manually, and can result in duplication.

In other words: remove those two packages and you and all will be well.

You will have to delete the CDN service. Or else the repos will re-appear.

You can delete it from Yast - On Line repositories. Klik in View - Services on the top-right of the window.
You will then see the service and you can delete it.

image

1 Like

When you uninstall the packages and restart your machine, the services are gone…

# ls /etc/zypp/repos.d/*repo | wc -l
5
# grep cdn /etc/zypp/repos.d/*repo
# zypper in openSUSE-repos-Tumbleweed
...
The following NEW package is going to be installed:
  openSUSE-repos-Tumbleweed
...
(1/1) Installing: openSUSE-repos-Tumbleweed-20240712.dd8c2eb-2.1.x86_64 ...............................................................................................................[done]
%posttrans(openSUSE-repos-Tumbleweed-20240712.dd8c2eb-2.1.x86_64) script output:
Adding service 'openSUSE'...
Service 'openSUSE' has been successfully added.
URI         : dir:/usr/share/zypp/local/service/openSUSE
Enabled     : Yes
Autorefresh : Yes
Refreshing service 'openSUSE'.
All services have been refreshed.
Running post-transaction scripts ......................................................................................................................................................[done]
# ls /etc/zypp/repos.d/*repo | wc -l
11
# grep cdn /etc/zypp/repos.d/*repo
/etc/zypp/repos.d/openSUSE:repo-non-oss.repo:baseurl=http://cdn.opensuse.org/tumbleweed/repo/non-oss
/etc/zypp/repos.d/openSUSE:repo-oss-debug.repo:baseurl=http://cdn.opensuse.org/debug/tumbleweed/repo/oss
/etc/zypp/repos.d/openSUSE:repo-oss.repo:baseurl=http://cdn.opensuse.org/tumbleweed/repo/oss
/etc/zypp/repos.d/openSUSE:repo-oss-source.repo:baseurl=http://cdn.opensuse.org/source/tumbleweed/repo/oss
/etc/zypp/repos.d/openSUSE:update-tumbleweed.repo:baseurl=http://cdn.opensuse.org/update/tumbleweed
# zypper rm openSUSE-repos-Tumbleweed
...
The following package is going to be REMOVED:
  openSUSE-repos-Tumbleweed

1 package to remove.
...
Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): y
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-non-oss'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss-debug'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss-source'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:update-tumbleweed'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-oss'
Warning: Unknown service 'openSUSE': Removing orphaned service repository 'openSUSE:repo-openh264'
Service 'openSUSE' not found by alias, number or URI.
(1/1) Removing: openSUSE-repos-Tumbleweed-20240712.dd8c2eb-2.1.x86_64 
...
......................................................................................................................................................[done]
# ls /etc/zypp/repos.d/*repo | wc -l
5
# grep cdn /etc/zypp/repos.d/*repo
# 

It works the same way in Leap. If openSUSE-repos-* package(s) is/are not installed, the repos service does not exist.

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