Build Service/User

From openSUSE

Contents


The software that was built by the Build Service gets exported to our mirrors and is easy installable via any package installation tool. The current projects are browseable for everybody at the URL: http://download.opensuse.org/repositories/

Search and Install Further Software

The Build Service offers an interface at http://software.opensuse.org/search for searching software packaged in the openSUSE Build Service (OBS). Since openSUSE 10.3 users can directly click on the "1-Click Install" Button to install anything easily via YaST.

Users of openSUSE distributions before 10.3 can install the "yast-metapackage-handler" package from openSUSE:Tools project manually to get support for the "1-Click Install". Read the following to learn how to manually install a package.

Install Software manually via package manager support (rpm)

All rpm based repositories have YUM meta data, which can be used with any YUM compatible installer.

The openSUSE gpg key needs to be accepted by the installation tools. You can import it as root user via the following command:

rpm --import http://download.opensuse.org/openSUSE-Build-Service.asc 

WARNING: Please note that the key only guarantees that package was built inside of the openSUSE build service. It does not guarantee that the packager is a SUSE employee.

Adding the Package Source

Simply hand it over to YaST's Installation Source module. Select Add -> By URL, and then enter the appropriate URL that you want.

http://download.opensuse.org/repositories/<projectname>/<directory>

where <projectname> and <directory> have to be replaced with the wanted project path and your distribution. So, for example:

http://download.opensuse.org/repositories/KDE:/KDE4:/STABLE:/Desktop/openSUSE_11.2/

Other Methods

For SUSE Linux 9.3, 10.0, 10.1 and Factory, you can also use smart, zypper, yum, or apt to install and update packages from the Build Service. The latest smart and yum packages can be found at http://download.opensuse.org/repositories/smart/

Zypper

Since openSUSE 10.2, you can also use the command line tool named zypper to add repositories:

zypper ar <URL_to_your_repo_file>

For example:

zypper ar http://download.opensuse.org/repositories/openSUSE:/Tools/SUSE_Linux_Factory/openSUSE:Tools.repo

For more information, use

zypper help ar

To install packages, use

zypper ref
zypper in packagname

To list packages in your OBS repo, or search in them, use

zypper se -r your-OBS-repo-alias [search-string]

If you don't know the alias yet, you'll find out using zypper repos.

Smart

smart channel --add http://download.opensuse.org/repositories/<projectname>/<directory>/<project>.repo

You must include the gpg key

rpm --import http://download.opensuse.org/repositories/<projectname>/<directory>/repodata/repomd.xml.key

To install a package you need to call

 smart update
 smart install <package>
 smart upgrade    # Performs an upgrade of all installed packages using the new repositories.

yum

YUM can use the repositories after the generated .repo file got copied into the /etc/yum.repos.d/ directory. Afterwards you can use yum commandline tools or GUI tools like kyum.

APT

APT isn't very well supported on openSUSE, so we recommend that you use one of the other above methods instead. This paragraph is a translation of an updated article for SuSE Linux 10.1 Apt v SUSE LINUX 10.1 from the czech SuSE portal which deals with the installation and usage of APT (Advanced Package Tool) in SUSE.

First we need apt and apt-libs. Both packages can be found on the DVD. The graphical front-end for Apt - Synaptic - is missing for an unknown reason, so we must be content with the command line version.

To install the above mentioned packages successfully we need to download and install the package install-apt4suse.rpm. The easiest installation is to launch mc as root, find and open the downloaded package by Enter and start the script INSTALL.

In a further step we launch:

 install-apt4suse --update-srclist

which updates the current list of mirrors. The result can be checked in /etc/apt/sources.list. The following table shows the commands which can be used with APT:

apt-get update Creates a list of available packets
apt-get upgrade Updates pre-installed packets by newer versions
apt-get -s upgrade Shows more details about what is to be updated
apt-get -s install "packet name" Shows more details about what is to be installed
apt-get install "packet name" Installs a packet
apt-get reinstall "packet name" Re-installs a packet
apt-get remove "packet name" Removes a packet
apt-get clean Cleanup of the buffered setups

In case of errors with GPG during the installation process open the file /etc/apt/apt.conf.d/gpg-checker.conf and change the entry

 GPG::Check true;

to

 GPG::Check false;

The usage of APT is faster and more transparent to end users compared to YaST and the new ZEN installer.

See also The Advanced Package Tool for SUSE for more information.

deb based repositories

Debian or distributions based on it use apt or newer derivates to manage installed software. For detailed informations check http://en.opensuse.org/Build_Service/Deb_builds#Configuring_sources.list

generic upcoming features

Yes, we do plan to implement a nice search in software.opensuse.org. We do also plan to write a GUI tool for easier searching, browsing and repository subscriptions.