Okay to remove never-used repos?

So I ran a zypper up a few minutes ago and I noticed a repo (named backport) I do not remember adding. So I fired up yast2 to check on what apps and libraries are in that repo.

While I was in yast2, I noticed other repos that are listed, but not Enabled.
Can I remove those repos that are not Enabled, to clean up the clutter?

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

#  | Alias                       | Name                                                                 | Enabled | GPG Check | Refresh
---+-----------------------------+----------------------------------------------------------------------+---------+-----------+--------
 1 | Leap_15.6_Main_repo         | Leap 15.6 Main repo                                                  | Yes     | (r ) Yes  | Yes
 2 | brave-browser-beta          | Brave Browser - Beta                                                 | Yes     | (r ) Yes  | Yes
 3 | google-chrome               | google-chrome                                                        | Yes     | (r ) Yes  | Yes
 4 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo package-> | No      | ----      | ----
 5 | repo-backports-update       | Update repository of openSUSE Backports                              | Yes     | (r ) Yes  | Yes
 6 | repo-debug                  | Debug Repository                                                     | No      | ----      | ----
 7 | repo-debug-non-oss          | Debug Repository (Non-OSS)                                           | No      | ----      | ----
 8 | repo-debug-update           | Update Repository (Debug)                                            | No      | ----      | ----
 9 | repo-debug-update-non-oss   | Update Repository (Debug, Non-OSS)                                   | No      | ----      | ----
10 | repo-non-oss                | Non-OSS Repository                                                   | Yes     | (r ) Yes  | Yes
11 | repo-openh264               | Open H.264 Codec (openSUSE Leap)                                     | Yes     | (r ) Yes  | Yes
12 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Enter-> | No      | ----      | ----
13 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15         | Yes     | (r ) Yes  | Yes
14 | repo-source                 | Source Repository                                                    | No      | ----      | ----
15 | repo-update                 | Main Update Repository                                               | Yes     | (r ) Yes  | Yes
16 | repo-update-non-oss         | Update Repository (Non-Oss)                                          | Yes     | (r ) Yes  | Yes
:~ # 

An explanation what each repo is for…
https://en.opensuse.org/Package_repositories#Official_Repositories

And you should already have heard about uselessness of repo lists without URLs. Always use zypper lr -d to show a repo list.

And please always do a

zypper lr -d

or any other option combination that shows the URLs!. It are the URLs that tell what the repo is. The Names and Aliases are local to the system and basically can be anything (although people can guess what they are, but guessing is the base of many errors in computing).

Thanks @hui and @hcvv … showing proper list.

And I will now read the repo article provided by @hui

:~ # zypper lr -d
#  | Alias                       | Name                                                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                     | Service
---+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+--------+-------------------------------------------------------------------------+--------
 1 | Leap_15.6_Main_repo         | Leap 15.6 Main repo                                                                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/distribution/leap/15.6/repo/oss/          | 
 2 | brave-browser-beta          | Brave Browser - Beta                                                                        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://brave-browser-rpm-beta.s3.brave.com/x86_64                      | 
 3 | google-chrome               | google-chrome                                                                               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://dl.google.com/linux/chrome/rpm/stable/x86_64                    | 
 4 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/update/leap/15.6/backports_debug/          | 
 5 | repo-backports-update       | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/backports/                | 
 6 | repo-debug                  | Debug Repository                                                                            | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.6/repo/oss/     | 
 7 | repo-debug-non-oss          | Debug Repository (Non-OSS)                                                                  | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.6/repo/non-oss/ | 
 8 | repo-debug-update           | Update Repository (Debug)                                                                   | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/oss/                | 
 9 | repo-debug-update-non-oss   | Update Repository (Debug, Non-OSS)                                                          | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/non-oss/            | 
10 | repo-non-oss                | Non-OSS Repository                                                                          | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.6/repo/non-oss/       | 
11 | repo-openh264               | Open H.264 Codec (openSUSE Leap)                                                            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Leap/                      | 
12 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.6/sle/                | 
13 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/sle/                      | 
14 | repo-source                 | Source Repository                                                                           | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.6/repo/oss/    | 
15 | repo-update                 | Main Update Repository                                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/oss/                      | 
16 | repo-update-non-oss         | Update Repository (Non-Oss)                                                                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.6/non-oss/                  | 
:~ # 

So, the “repo article” doesn’t go into any detail “why” you need the repo, only terse statements like, “for advanced users only”.

Also, not sure why the URLs matter - accessing the URLs are no problem, the subject is about the “do I need” those repos :+1:

I’ll assume, and confirm for myself, that I don’t need to build software and don’t need to debug any packages … with that said, I’ll remove those repos.

It’s still not clear what Backports is for, because I do not ever remember adding it. The webpage reports:

Backports Update
Update repository of openSUSE Backports.

Great explanation :slight_smile:
.
Fortunately, I did get an explanation off-line. :+1:

Anyway, thanks.

Because else we can not be sure (nor you can be sure) what those repos are. As said above, the Names and Alias can be anything. Look at my list:

boven:~ # zypper lr -d
#  | Alias                  | Name                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service
---+------------------------+-------------------------------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
 1 | backports-debug-update | Updates for openSUSE Leap debuginfo from openSUSE Backports | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/update/leap/15.5/backports_debug/           | 
 2 | backports-update       | Updates from openSUSE Backports                             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/backports/                 | 
 3 | libdvdcss              | Libdvdcss                                                   | No      | ----      | ----    |   99     | N/A    | http://opensuse-guide.org/repo/openSUSE_Leap_15.5/                       | 
 4 | main                   | Main (OSS)                                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/oss/            | 
 5 | main-debug             | Debug (OSS)                                                 | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.5/repo/oss/      | 
 6 | main-debug-update      | Update-Debug (OSS)                                          | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.5/oss/                 | 
 7 | main-source            | Source (OSS)                                                | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.5/repo/oss/     | 
 8 | main-update            | Update (OSS)                                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/oss                        | 
 9 | non-oss-debug          | Debug (Non-OSS)                                             | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/distribution/leap/15.5/repo/non-oss/  | 
10 | non-oss-debug-update   | Update-Debug (Non-OSS)                                      | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.5/non-oss/             | 
11 | non-oss-main           | Main (Non-OSS)                                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.5/repo/non-oss/        | 
12 | non-oss-source         | Source (Non-OSS)                                            | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/source/distribution/leap/15.5/repo/non-oss/ | 
13 | non-oss-update         | Update (Non-OSS)                                            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/non-oss/                   | 
14 | packman                | Packman                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.5/      | 
15 | sle-debug-update       | Updates for debuginfo from SLE 15                           | No      | ----      | ----    |   99     | N/A    | http://download.opensuse.org/debug/update/leap/15.5/sle/                 | 
16 | sle-update             | Updates from SLE 15                                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.5/sle/                       | 
boven:~ # 

The same URLs (well 15.5 instead of 15.6), but different Names and Aliases.

And when you have no intention at all to ever debug or use the source, you can indeed remove the disabled repos. But why should you? They are disabled. And after all, they belong to the distribution.

Seriously, 16 lines of text is “clutter”?

1 Like

It has packages not available elsewhere:

# egrep 'ame|baseu' /etc/zypp/repos.d/*BP*po
baseurl=http://download.opensuse.org/update/leap/15.5/backports/
name=UpdateBP
# zypper se -si | grep BP | grep -v patc
il | chromium                                   | package | 125.0.6422.141-bp155.2.91.1                      | x86_64 | UpdateBP
i+ | htop                                       | package | 3.3.0-bp155.2.3.1                                | x86_64 | UpdateBP
i+ | hw-probe                                   | package | 1.6.5-bp155.2.3.1                                | noarch | UpdateBP
i  | libqt5-qtwebengine                         | package | 5.15.10-bp155.2.2.1                              | x86_64 | UpdateBP
i  | libre2-10                                  | package | 20230301-bp155.13.2.1                            | x86_64 | UpdateBP
i+ | nano                                       | package | 7.2-bp155.2.3.1                                  | x86_64 | UpdateBP
i+ | opi                                        | package | 4.4.0-bp155.2.12.1                               | noarch | UpdateBP
i  | python311-yt-dlp                           | package | 2023.11.14-bp155.3.3.1                           | noarch | UpdateBP
i+ | rxvt-unicode                               | package | 9.31-bp155.3.6.1                                 | x86_64 | UpdateBP
i+ | yt-dlp                                     | package | 2023.11.14-bp155.3.3.1                           | noarch | UpdateBP
i+ | yt-dlp-bash-completion                     | package | 2023.11.14-bp155.3.3.1                           | noarch | UpdateBP
#

:wink:

The openSUSE explanation is as follows –
<Portal:Backports>
<openSUSE:Backports How To Use>

But, the real explanation is here –
<SLES 12 SP5 | Deployment Guide | Backporting Source Code>


Basically, there is a SUSE Team who actively backport Linux Kernel code changes from the actual Kernel versions into the Kernel version being used by SUSE and therefore openSUSE Leap.

  • Which is why, the current openSUSE Leap Kernel supports current hardware despite, the “old” Kernel version.

The openSUSE Backports repository was added some years ago with a long forgotten Leap upgrade …
Could be the reason why a lot of people have never noticed that, the repository “suddenly” appeared … :smiling_imp:

Which has absolutely nothing to do with backports (update) repository.

I stand corrected –

:roll_eyes:

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