Add Package Repositories to YaST
From openSUSE
| Note: See Package_Repositories for a list of official openSUSE repositories, and Additional YaST Package Repositories for a list of available third-party repositories. |
Contents |
Adding Repositories
Start YaST by clicking on it under System in your menu or by typing yast in the run command box (press Alt+F2). Select Installation Source. Click on Add, Select enter URL. It's recommended to copy/paste URLs to avoid typos.
Package metadata will be downloaded and parsed - this takes time depending on mirror speed, your bandwidth, the size of the repository, the speed of your system.
You can remove or disable repositories at any time.
Refresh
Some repositories never change, like the official oss and non-oss. You should set refresh to Off for them. Non official and update have new packages available all the time. It's convenient to have them refreshed automatically at start up.
Alternative methods
Repositories can also be added to YaST by using one of the following ways.
Zypper
You can add repositories to YaST with the zypper command line interface, included since 10.2. The syntax is: zypper sa <URL> <alias>. Example:
| zypper sa http://download.opensuse.org/distribution/10.2/repo/oss/suse/ oss |
|---|
Graphical Mode using Software Installer
In openSUSE 10.1 can be used the Software Installer. Start the software installer by selecting it from the start menu. Click on configure followed by add service. Enter the URL of the remote repository. Optionally enter type of the repository (Official repositories for openSUSE 10.2 are of type ZYPP). You will be prompted for root (administrator) password.
Note: Sometimes adding a repository may fail for no reason. This may be because the remote server is down or overloaded. In such cases, try again after some time.
YaST-ncurses
Simply type yast in console and press Enter. Now use your TAB and cursor keys to go to the right panel. Then use your Down Arrow key until you reach Installation Source. In Installation Source, use tab and the arrow keys to navigate. To add repositories, go to Add and select the repository type you want. Complete the fields with the necessary information then press Finish.
With Konqueror
This works with FTP repositories only. For HTTP you must add the repositories manually.
In Konqueror, browse to the directory just above the one to add. For example, if you want to add ftp://example.com/opensuse/distribution/SL-10.0-OSS/inst-source,
open the url
ftp://example.com/opensuse/distribution/SL-10.0-OSS using Konqueror,
and right-click inst-source. Then go to Action and choose Add directory as YaST source.
YaSTRS (automatic tool)
YaSTRS is an online tool that lets you pick repositories from a list,and generates a simple shell script that adds them. It is available at: http://yastrs.hardon.co.il
Adding multiple additional sources using script
#! /bin/bash #Packman import key rpm --import http://packman.unixheads.com/suse/10.2/gpg-pubkey-1abd1afb.asc #Guru import key rpm --import http://linux01.gwdg.de/~pbleser/guru-rpm.asc # # Packman add source zypper sa http://packman.iu-bremen.de/suse/10.2 packman102Repo # Guru add source zypper sa http://ftp.skynet.be/pub/suser-guru/rpm/10.2/RPMS skynet102Repo
The konvenientSUSE
This is a kommander-script for adding the most popular repositories. It's targeted specifically at KDE users, see http://kde-apps.org/content/show.php?content=43378
Quick Package Setup from System Tray
If, during the installation of OpenSUSE, you were not connected to the internet and did not add the online repositories, when you log in for the first time there will be no update repositories set up by default.
The quickest way to add the repositories is to right-click on the blue question-mark icon in the system tray, choose "Add/Remove Update Sources", choose "Add" then "Specify URL" from the list of source options, and paste a URL from this page (http://en.opensuse.org/Package_Repositories) into the URL field. Give the repository a name - it will then process updates from them automatically.
On your first installation you may also notice that you have package repositories set up that point to your CD drive - from your initial installation. You can delete these, if you wish, but you should at least disable them from automatic updates.

