Глава 7. Установка пакетов программного обеспечения из Интернет

Содержание

7.1. 1-Click Install
7.2. YaST Package Search

Аннотация

По умолчанию, установить пакеты возможно только из включенных и сконфигурированных репозиториев. Кроме официальных репозитариев, которые были сконфигурированы во время установки, существует большое число сторонних репозитариев. В Open Build Service находится несколько сотен сторонних репозиториев, смотрите http://ru.opensuse.org/Дополнительные_репозитории.

openSUSE предлагает два легких способа установки программ из этих репозиториев без необходимости предварительной настройки. Метод 1-Click Install позволяет устанавливать пакеты непосредственно в Веб-браузере, в то же время встроенный в YaST поиск пакетов позволяет задействовать почти все известные репозитории для openSUSE. Вы можете тут же установить любой пакет найденный в этом модуле.

[Warning]Доверие внешние источники программного обеспечения

Прежде, чем установить какой-либо пакет из внешнего репозитария, удостоверьтесь, что ему можно доверять. openSUSE не несет ответственности за любые потенциальные проблемы, являющиеся результатом установки программного обеспечения из сторонних репозитариев.

7.1. 1-Click Install

Installation using 1-Click Install is available from a lot of repositories available on Web interfaces. A very popular interface is the openSUSE Build Service software search.

Процедура 7.1. Installing Packages from the openSUSE Build Service via 1-Click Install

  1. Start the openSUSE Build Service search interface at http://software.opensuse.org/search.

  2. Select your system version from the drop-down menu, for example openSUSE 12.1.

  3. Enter the name of the package you want to install, for example the OpenStreetMap editor josm.

  4. To refine the search, adjust the Search Options according to your wishes.

  5. Click Search.

  6. From the results list select the preferred item by clicking its 1-Click Install button.

  7. In the Web browser's download dialog, select to open the file with the YaST Meta Package Handler.

    The 1-click installer opens the Additional Software Repositories dialog. It shows the repositories providing the packages you want to install per 1-Click Install. They are activated per default. To proceed with the installation, keep the repository selection. By default, you remain subscribed to these repositories after the installation has finished and you will receive updates from them in the future.

  8. If you want to use the new repositories only once instead, uncheck Remain Subscribed to These Repositories after Installation. Click Next to proceed.

  9. Now select the software packages that should be installed. Normally there is no need to change the default selection. Click Next to proceed.

  10. The Proposal screen summarizes the choices you made. Click Customize to restart the configuration steps from above. Click Next and Yes to proceed with the installation.

  11. Enter the root password to start the installation. In case a new repository has been added you also need to confirm the import of the repository's GnuPG key. During the installation several progress pop-ups appear that do not need any interaction. After reading the «Installation was successful» message, click Finish.

[Tip]Disabling 1-Click Install Feature

If you want to disable the 1-Click install feature, uninstall the yast2-metapackage-handler package using YaST. Alternatively, enter the following command as root:

rpm -e yast2-metapackage-handler

7.2. YaST Package Search

Provided you are connected to the internet, you can also search and install packages from almost all known repositories for openSUSE directly via YaST's Package Search. This module is a YaST frontend for the Webpin package search available at http://packages.opensuse-community.org/. The YaST module is not available by default—you need to install the package yast2-packager-webpin first.

Процедура 7.2. Installing Packages Using the YaST Package Search

  1. Start the Package Search from the YaST Control Center via Software+Package Search.

  2. Search for a software package by entering it's name into the Search Expression field and clicking Search.

  3. The search result is listed on the Found Packages tab. Click on a package name to see the repository URL, the package version number and the architecture in the Package Description pane.

    [Warning]Double Check the Package Information

    Make sure to double check whether the software is hosted on a repository you trust before you install it. Also check if the architecture complies with your system (x86_64 packages can only be installed on 64bit systems).

  4. Mark a package for installation by activating its checkbox. You can mark several packages at once. You can even start a new search for other packages without losing your current selection, which is always available on the All Selected Packages. Once you have finished the package selection, proceed with Next.

    The Additional Software Repositories dialog shows the repositories providing the packages you want to install. They are activated per default. To proceed with the installation, keep the repository selection. By default, you remain subscribed to these repositories after the installation has finished, so you will receive updates from them in the future.

  5. If instead you want to use the new repositories only once, uncheck Remain Subscribed to These Repositories after Installation. Click Next to proceed.

  6. Now select the software packages that should be installed. Normally there is no need to change the default selection. Click Next to proceed.

  7. The Proposal screen summarizes the choices you made. Click Customize to restart the configuration steps from above. Click Next and Yes to proceed with the installation.

  8. Confirm the next dialog. In case a new repository is used, you will also need to confirm the import of the repository's GnuPG key. During the installation several progress pop-ups appear that do not need any interaction. After reading the «Installation was successful» message, click Finish.