How to Add and Remove Custom Software Sources on openSUSE Linux

On openSUSE, custom software sources are package repositories. Add one through YaST’s Software Repositories tool or with zypper addrepo; remove it in YaST or with zypper removerepo. Removing a repository deletes its source configuration. It does not uninstall packages already installed from that source.

Before you add a third-party repository

Get the repository URL from the software maintainer’s official instructions, and confirm that it supports your exact openSUSE release. A repository for one Leap version may not be suitable for another, and Tumbleweed repositories should target Tumbleweed. openSUSE warns that incompatible third-party sources can affect future package updates; its software procurement guide explains the risks of mixing sources and distribution versions.

Prefer an HTTPS address and a publisher you trust. Repositories can provide signed metadata and packages, and YaST or zypper may ask whether to import a signing key. Verify the key through the maintainer’s own documentation or another trusted channel before accepting it. A prompt by itself is not proof that a key belongs to the publisher.

Add a repository with YaST

YaST Control Center with Software Repositories selected under the Software tools
Open the Software Repositories tool from YaST’s Software section.
  1. Open YaST from the application menu and select Software > Software Repositories. The wording may vary slightly by release or desktop, but the openSUSE Leap guide uses this path for the configured repository manager.
  2. Choose Add, select the network or URL option (often labeled Specify URL), and continue.
  3. YaST repository manager listing configured sources with the Add button highlighted
    The repository manager shows configured sources and the Add control.
  4. Enter a short, recognizable repository name and paste the exact repository URL. Use the URL provided for your distribution, not the project’s home page or a generic download page.
  5. YaST Add Repository form with Specify URL selected and Repository Name and URL fields
    Enter the repository’s name and the exact URL supplied by its maintainer.
  6. Continue through the review screen. If YaST displays a GPG key prompt, check the key details against the publisher’s instructions. Cancel if the key cannot be verified or does not match. If it checks out, accept the key and let YaST download the repository metadata.
  7. Review the repository list, then choose OK or Accept to save the change. The official openSUSE Leap Start-Up guide documents YaST’s repository manager and its signing-key prompt.
YaST GPG Key dialog asking whether to trust and import a repository signing key
Review a repository signing key before importing it.

Add a repository with zypper

The terminal method is useful on servers or when YaST is unavailable. First, check the repositories already configured so you can choose a unique alias:

zypper repos --details

Then add the third-party source. Replace REPOSITORY_URL with the exact URL from the provider and choose an unused, simple ALIAS such as extra-repo:

sudo zypper addrepo --refresh REPOSITORY_URL ALIAS
sudo zypper refresh
openSUSE terminal showing zypper addrepo with automatic refresh and repository URL and alias placeholders
The zypper command adds a repository and turns on automatic refresh.

The --refresh option enables automatic metadata refresh for that source. This matters on Tumbleweed, where new repositories may not have automatic refresh enabled by default; the openSUSE post-installation recommendations call out this setting. After zypper finishes, verify the name, URL, enabled state, and refresh status with:

zypper repos --details
Terminal output from zypper repos with the extra-repo alias shown in the repository list
Use the Alias column to identify the source you plan to remove.

Remove a custom source

In YaST

Open Software > Software Repositories again. Compare the selected row’s name and URL with the third-party source you intend to remove, choose Delete, and confirm. Apply the change with OK or Accept. Do not remove the core openSUSE product or update repositories unless you understand what depends on them.

YaST Configured Software Repositories dialog with the extra-repo source selected and removal confirmation shown
Confirm the selected entry is the third-party repository before removing it.

In the terminal

List repositories and find the exact alias. The alias is safer to use than a row number, which can change when the list changes:

zypper repos --details
sudo zypper removerepo ALIAS

For example, if the unwanted source’s alias is extra-repo, run sudo zypper removerepo extra-repo. Confirm the removal in zypper’s output, then run zypper repos --details again to check that the alias is gone.

Terminal showing zypper removerepo extra-repo and a successful removal message
zypper confirms when the selected repository definition has been removed.

Removing a source stops zypper from looking there for package metadata and updates. Packages already installed remain on the system; remove a package separately through YaST Software Management or zypper remove PACKAGE if that is also your goal. If an installed app came from the source, plan where its future updates will come from before deleting the repository.

Quick checks if something goes wrong

  • Refresh returns an error: recheck the URL for typos and make sure it points to a repository for your exact Leap release or Tumbleweed.
  • The alias is already in use: choose a different unique alias, then rerun addrepo.
  • A signing-key warning appears: stop and verify the key with the publisher. Do not disable signature checks to force the repository to work.
  • You are unsure which entry is custom: inspect the repository URL and name in YaST or zypper repos --details before deleting anything.

For command options and repository management details, see the official openSUSE Zypper documentation.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.