openSUSE:Build Service Enduser Info

Перейти к: навигация, поиск
Localize.png Эта статья не переведена!
Эта статья еще не переведена на русский язык. Здесь Вы можете найти эту страницу на английском языке.
User-away.png Данная статья является устаревшей, поскольку:
смотри английскую.

Если она в течение некоторого времени не будет обновлена, то она может быть удалена. Пожалуйста, обновите эту статью. Обратитесь к странице обсуждения этой статьи для получения подробной информации.

Программное обеспечение которое было построено Build Service экспортировано на наши зеркала и легко может быть установлено через любое пакетное средство установки. Текущие проекты для каждого можно найти в URL: http://download.opensuse.org/repositories/

Поиск и установка дополнительного программного обеспечения

Build Service предлагает интерфейс http://software.opensuse.org/search для поиска пакетов программ в Open Build Service (OBS). В openSUSE, 10.3 и более поздних версиях, пользователи могут просто нажать на кнопку "1-Click Install" чтобы легко установить что-нибудь через YaST.

Пользователи openSUSE версий до 10.3, могут установить пакет "yast-metapackage-handler" из openSUSE:Tools project вручную чтобы получить поддержку "1-Click Install". Прочитайте следующее, чтобы узнать как устанавливать пакеты вручную.

Установка Программного обеспечения вручную через пакетную поддержку менеджера rpm

Все основанные на rpm репозитории содержат YUM мета данные, с помощью которых можно использовать любой совместимый с YUM установщик. Необходимо приняь openSUSE gpg ключ при использовании установочных инструментов. Вы можете импортировать под учётной записью root с помощью следующей команды:

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 Open 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:/KDE3/SUSE_Linux_10.1/

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. To use packages from the Open Build Service. You should repositories to the /etc/apt/sources.list in order to use apt-get to install your package.

For example, if you want to add the kraft repository to a Debian distro, add the following line to sources.list:

deb http://download.opensuse.org/repositories/home:/kfreitag:/Kraft/Debian_Etch ./

For Ubuntu change the last field with the Ubuntu directory

deb http://download.opensuse.org/repositories/home:/kfreitag:/Kraft/xUbuntu_8.04 ./

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.