Содержание
Аннотация
Use YaST's software management tool to search for software components you want to add or remove. YaST resolves all dependencies for you. To install packages not shipped with the installation media, add additional software repositories to your setup and let YaST manage them. Keep your system up-to-date by managing software updates with the update applet.
Change the software collection of your system with YaST Software Manager. This YaST module is available in three toolkit flavors: Qt (for KDE desktops), GTK+ (for GNOME desktops), and ncurses (providing a pseudo-graphical user interface in text mode). This chapter describes Qt and GTK+ flavors—for details on the ncurses YaST, see Глава 12, YaST in Text Mode.
Changing the Toolkit Flavor | |
---|---|
By default, YaST is started with the toolkit matching your desktop
(GTK+ under GNOME, Qt under KDE). To alter this default setting
system-wide, change the variable
If you do not want to change the system-wide settings, you can
nevertheless start YaST in the desired flavor from command line by
using the |
Confirmation and Review of Changes | |
---|---|
When installing, updating or removing packages, any changes in the Software Manager are not applied immediately but only after confirming them with or respectively. YaST maintains a list with all actions, allowing you to review and modify your changes before applying them to the system. |
A local or remote directory containing packages, plus additional information about these packages (package meta-data).
A short name for a repository used by various zypper commands. The alias can be chosen by the user when adding a repository and must be unique.
Represents a whole product, for example openSUSE®.
A pattern is an installable group of packages dedicated to a certain
purpose. For example, the Laptop
pattern
contains all packages that are needed in a mobile computing
environment. Patterns define package dependencies (such as required or
recommended packages) and come with a preselection of packages marked
for installation. This ensures that the most important packages needed
for a certain purpose are available on your system after installation
of the pattern. However, not necessarily all packages in a pattern are
preselected for installation and you can manually select or deselect
packages within a pattern according to your needs and wishes.
A package is a compressed file in rpm
format that
contains the files for a particular program.
A patch consists of one or more packages and may be applied by means of deltarpms. It may also introduce dependencies to packages that are not installed yet.
An generic term for product, pattern, package or patch. The most commonly used type of resolvable is a package or a patch.
A deltarpm consists only of the binary diff between two defined versions of a package, and therefore has the smallest download size. Before being installed, the full RPM package is rebuilt on the local machine.
Certain packages are dependent on other packages, such as shared
libraries. In other terms, a package may require
other packages—if the required packages are not available, the
package cannot be installed. In addition to dependencies (package
requirements) that must be fulfilled, some packages
recommend
other packages. These recommended
packages are only installed if they are actually available, otherwise
they are just ignored and the package recommending them is installed
nevertheless.
The YaST Qt interface is started by default when using the desktops KDE, icewm, and others. It is also used when invoking YaST from a remote terminal. Start the software manager from the YaST Control Center by choosing
+ .The YaST software manager can install packages or patterns from all currently enabled repositories. It offers different views and filters to make it easier to find the software you are searching for. The
view is the default view of the window. To change view, click and select one of the following entries from the drop-down list. The selected view opens in a new tab.Lists all patterns available for installation on your system.
Lists all packages sorted by groups such as
, , or .Lists all packages sorted by functionality with groups and subgroups. For example
+ + .Filter to list all packages needed to add a new system language.
Filter to list packages by repository. In order to select more than one repository, hold the Ctrl key while clicking on repository names. The «pseudo repository» lists all packages currently installed.
Lets you search for a package according to certain criteria. Enter a search term and press Enter. Refine your search by specifying where to and by changing the . For example, if you do not know the package name but only the name of the application that you are searching for, try including the package in the search process.
If you have already selected packages for installation, update or removal, this view shows the changes that will be applied to your system as soon as you click Shift+F1 for details on the status flags.
. To filter for packages with a certain status in this view, activate or deactivate the respective check boxes. HitFinding Packages not Belonging to an Active Repository | |
---|---|
To list all packages that do not belong to an active repository, choose + + and then choose + . This is useful, for example, if you have deleted a repository and would like to make sure no packages from that repository remain installed. |
Certain packages are dependent on other packages, such as shared libraries. On the other hand, some packages cannot coexist with others on the system. If possible, YaST automatically resolves these dependencies or conflicts. If your choice results in a dependency conflict that cannot be automatically solved, you need to solve it manually as described in Раздел 5.2.4, «Checking Software Dependencies».
Removal of Packages | |
---|---|
When removing any packages, by default YaST only removes the selected packages. If you want YaST to also remove any other packages that become unneeded after removal of the specified package, select + . |
Search for packages as described in Раздел 5.2.1, «Views for Searching Packages or Patterns».
The packages found are listed in the right pane. To install a package or remove it, right-click it and choose Shift+F1 for help.
or . If the relevant option is not available, check the package status indicated by the symbol in front of the package name—hitApplying an Action to All Packages Listed | |
---|---|
To apply an action to all packages listed in the right pane, choose an action from + . |
To install a pattern, right-click the pattern name and choose
.It is not possible to remove a pattern per se. Instead, select the packages of a pattern you want to remove and mark them for removal.
In order to select more packages, repeat the steps mentioned above.
Before applying your changes, you can review or modify them by clicking
+ . By default, all packages that will change status, are listed.In order to revert the status for a package, right-click the package and select one of the following entries:
if the package was scheduled to be deleted or updated, or if it was scheduled for installation. To abandon all changes and close the Software Manager, click andWhen you are finished, click
to apply your changes.In case YaST found dependencies on other packages, a list of packages that have additionally been chosen for installation, update or removal is presented. Click
to accept them.After all selected packages are installed, updated or removed, the YaST Software Manager automatically terminates.
Installing Source Packages | |
---|---|
Installing source packages with YaST Software Manager is not possible at the moment. Use the command line tool zypper for this purpose. For more information, see Раздел 9.1.2.1, «Installing Source Packages». |
Instead of updating individual packages, you can also update all installed packages or all packages from a certain repository. When mass updating packages, the following aspects are generally considered:
priorities of the repositories that provide the package,
architecture of the package (for example, x86_64, i686, i586),
version number of the package,
package vendor.
Which of the aspects has the highest importance for choosing the update candidates depends on the respective update option you choose.
To update all installed packages to the latest version, choose
+ + from the main menu.All repositories are checked for possible update candidates, using the following policy: YaST first tries to restrict the search to packages with the same architecture and vendor like the installed one. If the search is positive, the «best» update candidate from those is selected according to the process below. However, if no comparable package of the same vendor can be found, the search is expanded to all packages with the same architecture. If still no comparable package can be found, all packages are considered and the «best» update candidate is selected according to the following criteria:
Repository priority: Prefer the package from the repository with the highest priority.
If more than one package results from this selection, choose the one with the «best» architecture (best choice: matching the architecture of the installed one; otherwise: x86_64 > i686 > i586).
If the resulting package has a higher version number than the installed one, the installed package will be updated and replaced with the selected update candidate.
This option tries to avoid changes in architecture and vendor for the installed packages, but under certain circumstances, they are tolerated.
Update Unconditionally | |
---|---|
If you choose + + instead, basically the same criteria apply but candidate package found is installed unconditionally. Thus, choosing this option might actually lead to downgrading some packages. |
To make sure that the packages for a mass update derive from a certain repository:
Choose the repository from which to update as described in Раздел 5.2.1, «Views for Searching Packages or Patterns» .
On the right hand side of the window, click
. This explicitly allows YaST to change the package vendor when replacing the packages.As soon as you proceed with
, all installed packages will be replaced by packages deriving from this repository, if available. This may lead to changes in vendor and architecture and even to downgrading some packages.To refrain from this, click
. Note that you can only cancel this until you press the button.Before applying your changes, you can review or modify them by clicking
+ . By default, all packages that will change status, are listed.If all options are set according to your wishes, confirm your changes with
to start the mass update.Most packages are dependent on other packages. If a package, for example, uses a shared library, it is dependent on the package providing this library. On the other hand some packages cannot coexist with each other, causing a conflict (for example, you can only install one mail transfer agent: sendmail or postfix). When installing or removing software, the Software Manager makes sure no dependencies or conflicts remain unsolved to ensure system integrity.
In case there exists only one solution to resolve a dependency or a conflict, it is resolved automatically. Multiple solutions always cause a conflict which needs to be resolved manually. If solving a conflict involves a vendor or architecture change, it also needs to be solved manually. When clicking
to apply any changes in the Software Manager, you get an overview of all actions triggered by the automatic resolver which you need to confirm.By default, dependencies are automatically checked. A check is performed every time you change a package status (for example, by marking a package for installation or removal). This is generally useful, but can become exhausting when manually resolving a dependency conflict. To disable this function, uncheck
+ . Manually perform a dependency check with + . A consistency check is always performed when you confirm your selection with .To review a package's dependencies, right-click it and choose
. A map showing the dependencies opens. Packages that are already installed are displayed in a green frame.Manually Solving Package Conflicts | |
---|---|
Unless you are very experienced, follow the suggestions YaST makes when handling package conflicts, otherwise you may not be able to resolve them. Keep in mind that every change you make, potentially triggers other conflicts, so you can easily end up with a steadily increasing number of conflicts. In case this happens, the Software Manager, all your changes and start again. |
The YaST GTK+ interface is started by default when using the desktops GNOME and XFCE. Start the software manager from the YaST Control Center by clicking
+ .The easiest way to find a package is to use the search field in the upper right corner of the software manager. Enter a search term and press Enter. By default it will search package names and summaries. Press the search item to change this filter and search the file lists, for example.
The software manager also offers different views and filters for displaying package lists. These are available from the pull-down menu in the upper left corner:
The default view lists all packages sorted by groups such as
, , , or .Lists all packages sorted by functionality with groups and subgroups. For example
+ + .Filter to list packages by repository. In order to select more than one repository, hold the Ctrl key while clicking on repository names. The «pseudo repository» lists all packages currently installed.
To add, edit, or remove available repositories, click
.Lists all patterns available for installation on your system.
Filter to list all packages needed to add a new system language.
The box in the lower right corner of the dialog also allows to filter for packages that are
, or . If you select the entry, all available packages from the configured repositories are displayed, independent of their status.Certain packages are dependent on other packages, such as shared libraries. On the other hand, some packages cannot coexist with others on the system. If possible, YaST automatically resolves these dependencies or conflicts. If your choice results in a dependency conflict that cannot be automatically solved, you need to solve it manually as described in Раздел 5.2.4, «Checking Software Dependencies».
Search for packages as described in Раздел 5.3.1, «Views for Searching Packages or Patterns».
The packages found are listed in the right pane. To further filter the search results according to package status (
, , , , select one of the entries in the box at the lower left corner of the dialog. For details about a package, click the package in the list. Information like available versions, authors and changelog of the package are displayed in the lower right corner of the window.To mark a package for installation, re-installation, removal, or upgrade, right-click the package and choose the appropriate action from the menu.
Applying an Action to All Packages Listed | |
---|---|
To apply an action to all packages listed in the right pane, right-click a package, choose , right-click again and choose an action. |
To install a pattern, right-click the pattern name and choose
.It is not possible to remove a pattern per se. Instead, select the packages of a pattern you want to remove and mark them for removal.
In order to select more packages, repeat the steps mentioned above.
Before applying your changes, you can review or modify them by clicking
at the bottom of the dialog. By default, all packages that will change status are listed.To revert changes for a package, click the
icon with the yellow arrow. To finish the review, click .When you are finished with the selection of packages to install or remove,
your changes.In case YaST found dependencies on other packages, a list of packages that have additionally been chosen for installation, update or removal is presented. Click
to accept them.After all selected packages are installed, updated or removed, the YaST Software Manager automatically terminates.
Installing Source Packages | |
---|---|
Installing source packages with YaST Software Manager is not possible at the moment. Use the command line tool zypper for this purpose. For more information, see Раздел 9.1.2.1, «Installing Source Packages». |
Instead of updating individual packages, you can also update all installed packages or all packages from a certain repository. When mass updating packages, the following aspects are generally considered:
priorities of the repositories that provide the package,
architecture of the package (for example, x86_64, i686, i586),
version number of the package,
package vendor.
Which of the aspects has the highest importance for choosing the update candidates depends on the respective update option you choose.
To view the list of packages that can be updated (packages with higher versions are available), select
in the bottom left box.To update all packages listed there, click
.To install only upgradable packages for which an official patch has been issued, click Глава 6, YaST Online Update.
. Those packages are marked by a patch tag next to their version number. Choosing this option is equivalent to doing an online update with YaST as described inIf no patches have been issued since last applying patches, the button is disabled.
To make sure that the packages for a mass update derive from a certain repository:
Choose the repository from which to update as described in Раздел 5.3.1, «Views for Searching Packages or Patterns» .
On the right hand side of the window, click
. This explicitly allows YaST to change the package vendor when replacing the packages.All installed packages will be replaced by packages deriving from this repository, if available. This may lead to changes in vendor and architecture and even to downgrading some packages.
Before applying the changes, you can review or modify them by clicking
at the bottom of the dialog. By default, all packages that will change status are listed.To refrain from switching the system packages to the versions in this repository, click the
button next to the respective option.If all options are set according to your wishes, confirm your changes with
to start the mass update.Most packages are dependent on other packages. If a package, for example, uses a shared library, it will be dependent on the package providing this library. On the other hand, some packages cannot coexist with each other, causing a conflict (for example, you can only install one mail transfer agent: sendmail or postfix). When installing or removing software, the Software Manager makes sure no dependencies or conflicts remain unresolved to ensure system integrity.
In case there exists only one solution to resolve a dependency or a conflict, it is resolved automatically. Multiple solutions always cause a conflict which needs to be resolved manually. If solving a conflict involves a vendor or architecture change, it also needs to be solved manually. When clicking
to apply any changes in the Software Manager, you get an overview of all actions triggered by the automatic resolver which you need to confirm.By default, dependencies are automatically checked. A check is performed every time you change a package status (for example, by marking a package for installation or removal). This is generally useful, but can become exhausting when manually resolving a dependency conflict. To disable this function, uncheck
+ . Manually perform a dependency check with + . A consistency check is always performed when you confirm your selection with .Manually Solving Package Conflicts | |
---|---|
Unless you are very experienced, follow the suggestions YaST makes when handling package conflicts, otherwise you may not be able to resolve them. Keep in mind that every change you make, potentially triggers other conflicts, so you can easily end up with a steadily increasing number of conflicts. In case this happens, click and the software manger. Relaunch it to start again. |
If you want to install third-party software, add additional software repositories to your system. By default, the product repositories such as openSUSE-DVD 12.1 and a matching update repository are automatically configured during the installation. Depending on the initially selected product, a separate language add-on repository with translations, dictionaries, etc. might also be configured.
To manage repositories, start YaST and select
+ . The dialog opens. Here, you can also manage subscriptions to so-called by changing the at the right corner of the dialog to . A Service in this context is a (RIS) that can offer one or more software repositories. Such a Service can be changed dynamically by its administrator or vendor.Each repository provides files describing content of the repository (package names, versions, etc.). These repository description files are downloaded to a local cache that is used by YaST. To ensure their integrity, software repositories can be signed with the GPG Key of the repository maintainer. Whenever you add a new repository, YaST offers the ability to import its key.
Trusting External Software Sources | |
---|---|
Before adding external software repositories to your list of repositories, make sure this repository can be trusted. openSUSE is not responsible for any potential problems arising from software installed from third-party software repositories. |
You can either add repositories from a local harddisk, from a removable medium (like a CD, DVD or a USB mass storage) or from a network.
To add repositories from the
dialog in YaST proceed as follows:Click
.From the list of available
specify the type matching your repository:For network sources, it is usually sufficient to use the default option,
.To add a repository from a removable medium or a local harddisk, choose the relevant option and insert the medium or connect the USB device to the machine, respectively.
You can choose to
now. If the option is unchecked, YaST will automatically download the files later, if needed. Click to proceed.When adding a repository from the network, enter the data you are prompted for. Continue with
.Depending on the repository you have added, you might be asked if you want to import the GPG key with which it is signed or asked to agree to a license.
After confirming these messages, YaST will download and parse the metadata and add the repository to the list of
.If needed, adjust the repository Раздел 5.4.2, «Managing Repository Properties» or confirm your changes with to close the configuration dialog.
as described inNow you can install software from this repository as described in Раздел 5.2, «Using the KDE Interface (Qt)» or in Раздел 5.3, «Using the GNOME Interface (GTK+)».
YaST also offers a list of predefined popular repositories available under
. Among others, it includes driver repositories for nVidia and ATI graphics cards, and popular projects from the openSUSE® Build Service, such as the Mozilla repository (containing packages with the most recent versions of Firefox and Thunderbird).Процедура 5.1. Configuring Community Repositories
Start YaST and select
+ .Click
.Choose
and proceed with .From the preconfigured list of repositories choose the ones you want to add by ticking the respective check boxes. The Mozilla repository, for example, is listed as
.Confirm with
.Accept to
the GnuPG key. You need to import a key for each repository you have chosen.The new software repositories are now listed in the
overview. Click to leave the software repositories configuration.The
overview of the lets you change the following repository properties:The repository status can either be
or . You can only install packages from repositories that are enabled. To turn a repository off temporarily click . You can also double-click on a repository name to toggle its status. If you want to remove a repository completely, click .When refreshing a repository, its content description (package names, versions, etc.) is downloaded to a local cache that is used by YaST. It is sufficient to do this once for static repositories such as CDs or DVDs, whereas repositories whose content changes often should be refreshed frequently. The easiest way to keep a repository's cache up-to-date is to choose
. To do a manual refresh click and select one of the options.
Packages from remote repositories are downloaded before being
installed. By default, they are deleted upon a successful
installation. Activating /etc/zypp/zypp.conf
, by default it
is /var/cache/zypp/packages
.
The 1
and 200
, with
1
being the highest priority and
200
the lowest priority. Any new repositories that
are added with YaST get a priority of 99
by
default. If you do not care about a priority value for a certain
repository, you can also set the value to 0
to
apply the default priority to that repository (99
).
If a package is available in more than one repository, then the
repository with the highest priority takes precedence. This is useful
if you want to avoid downloading packages unnecessarily from the
Internet by giving a local repository (for example, a DVD) a higher
priority.
Priority vs. Version | |
---|---|
The repository with the highest priority takes precedence in any case. Therefore, make sure that the update repository always has the highest priority (20 by default), otherwise you might install an outdated version that will not be updated until the next online update. If you add repositories providing new versions for programs shipped with openSUSE (for example a repository with the latest KDE or GNOME version), make sure they have a higher priority than the standard repositories, otherwise packages from these repositories will not be installed by default. |
To change a repository name or its URL, select it from the list with a single-click and then click
.To ensure their integrity, software repositories can be signed with the GPG Key of the repository maintainer. Whenever you add a new repository, YaST offers to import its key. Verify it as you would do with any other GPG key and make sure it does not change. If you detect a key change, something might be wrong with the repository. Disable the repository as an installation source until you know the cause of the key change.
To manage all imported keys, click
in the dialog. Select an entry with the mouse to show the key properties at the bottom of the window. , or keys with a click on the respective buttons.openSUSE offers a continuous stream of software security patches for your product. The update applet informs you about the availability of patches and lets you easily install them with just a few clicks.
The Software Updater icon resides in the system tray of your panel depicting a gearwheel with a green arrow. To start Software Updater manually, choose Alt+F2 and enter kpk_update.
+ + from the main menu. Alternatively,Icon Visibility | |
---|---|
The Software Updater icon is only visible in the system tray, if patches are available. Hover over the icon to see the number of patches available. |
Whenever software updates are available, the applet icon appears in the panel. Left-click the Software Updater icon to launch the
software window.Select a patch for installation by ticking its checkbox. Get detailed information on a patch by clicking on its title. To select all available patches for installation, tick the checkbox in the table header.
Click
to start the patch installation.
In case you have started the patch installation for the first time,
you will be asked to enter the root
password twice in order to
proceed. If you also check
you will never be asked again to provide the password.
The
window showing an installation summary opens. Click to finish the installation.The YaST Online Update offers advanced features to customize the patch installation. Please refer to Глава 6, YaST Online Update for more information.
By default Software Updater checks for updates every 24 hours, notifies you when patches are available and does not automatically install patches. These settings can be changed with the Alt+F2 and enter kpk_settings. The settings for Software Updater are available in the section.
. To open the choose + + from the main menu. Alternatively, pressPatch Origin | |
---|---|
The also allows you to configure the repositories ( ) to be used. This setting not only applies to Software Updater but also to the KDE Software Management module ( ).Make sure the repository is always selected—otherwise you will not receive patches. |
The update applet resides in the notification area of the panel. Its icon changes depending on the availability and relevance of patches and the status of the update. To invoke the applet manually, choose
+ + + .Icon visibility | |
---|---|
By default, the update applet icon is only visible in the notification area, if patches are available. |
The update applet is busy (for example checking for updates or installing software).
Security patches are available.
Important patches are available.
Trivial patches are available.
An error has occurred.
Процедура 5.2. Installing Patches
Whenever new patches are available, a notification message will appear and the Update Applet icon will be visible in the notification area. Either click
in the notification message or click the icon to open the window.All security and important patches are preselected. It is strongly recommended to install these patches. Trivial patches can be manually selected by ticking the respective check boxes. Get detailed information on a patch by clicking on its title.
Click
to start the patch installation.The
window showing an installation summary opens. Click to proceed.
Enter the root
password in the authentication screen and proceed
with .
The YaST Online Update offers advanced features to customize the patch installation. Please refer to Глава 6, YaST Online Update for more information.
To configure the update applet, right-click the update icon in the panel and choose
. The configuration dialog lets you modify the following settings:Choose how often a check for updates is performed:
, , , or .Configure whether patches are installed automatically or not (default). Automatic installation can be chosen for either security patches only or for all patches.
Choose how often a check for major upgrades is performed:
, , or .This configuration option is only available on mobile computers. Turned off by default.
More options are configurable using gconf-editor: + .