Last updated: July 20, 2010
11. Software Repositories
As mentioned in the previous chapter, the package manager installs software by fetching packages from software repositories, therefore the software available for easy installation via the package manager depends on the configured repositories.
A software repository is a collection of RPM packages (the openSUSE packaging format) and metadata for the available packages. Usually repositories are on online servers, but it can also be CD/DVD or other media.
11.1 Managing Repositories
Respositories can be added, removed and configured via YaST.
Kickoff menu => Computer tab => YaST => Software => Software Repositories

If you wish to use the online repository instead of using the DVD, disable the DVD as a repository here.
11.1.1 Adding Repositories
The official repositories are pre-configured, but many unofficial repositories exist and can be added too.
 |
Add repositories with care.
- Unofficial repositories might include experimental packages
- Not all repositories are compatible with each other
- The risk level of a repository can change over time
- Too many repositories makes the package manager slower
|
The easiest and safest way to add repositories is using the list of online community repositories in YaST. This provides you with a selection of popular and pretty safe repositories to choose from:
Kickoff menu => Computer tab => YaST => Software => Software Repositories => Click on "Add" => Select "Community Repositories" and click "Next"
Note that the
openSUSE BuildService is a service for the community to build and share packages. openSUSE BuildService repositories are unofficial and unsupported. Use at your own risk.
11.1.2 Recommended Repositories
You should always have the three
official repositories (which are configured out of the box).
- Main Repository (OSS)
- Main Repository (NON-OSS)
- Main Update Repository
Additionally I recommend adding the following repositories from the Community Repositories list, for having a good balance of software supply and stability for most users.
- Packman Repository
- Main Repository (Contrib)
- openSUSE BuildService - KDE:UpdatedApps
- openSUSE BuildService - KDE:Extra
11.2 Repository Management in the Terminal
If you wish, you can manage your repositories via a terminal too.
Add a repository with auto-refresh enabled
'zypper ar --refresh [URL] [Alias]'. Example:
zypper ar --refresh http://ftp.gwdg.de/pub/linux/packman/suse/11.3 Packman
Disable a repository
'zypper mr --disable [URL|Alias]'. Example:
zypper mr --disable Packman
Remove a repository
'zypper rr [URL|Alias]'. Example:
zypper rr http://ftp.gwdg.de/pub/linux/packman/suse/11.3
List configured repositories, showing details (priorities, URL, etc.):
zypper lr -d
See
'man zypper' for more.
man zypper
Send your comments via e-mail to admin [at] opensuse-guide.org