Quick Start Guide

the repositories currently enabled. For detailed instructions, refer to Section 16.1.4,
“Distribution Upgrade with zypper” (page 185).
To restrict the distribution upgrade to packages from a certain repository while con-
sidering also the other repositories for satisfying dependencies, use the --from option
and specify the repository by either its alias, its number or URI.
NOTE: Dierences between zypper update and zypper dist-upgrade
Choose zypper update to update packages to newer versions available for your
product version while maintaining system integrity. zypper update will honor the
following rules:
no vendor changes
no architecture changes
no downgrades
keep installed packages
When executing zypper dist-upgrade, all packages will be installed from the
repositories currently enabled. This rule is enforced, so packages might change
vendor or architecture or even might get downgraded. All packages that have
unfullled dependencies after the upgrade will be uninstalled.
9.1.4 Managing Repositories with Zypper
All installation or patch commands of Zypper rely on a list of known repositories. To
list all repositories known to the system, use the command:
zypper repos
The result will look similar to the following output:
Example 9.1: Zypper—List of Known Repositories
# | Alias | Name | Enabled | Refresh
--+-----------------------+-----------------------+---------+--------
1 | Updates | Updates | Yes | Yes
2 | openSUSE 11.2-0 | openSUSE 11.2-0 | No | No
3 | openSUSE-11.2-Debug | openSUSE-11.2-Debug | No | Yes
4 | openSUSE-11.2-Non-Oss | openSUSE-11.2-Non-Oss | Yes | Yes
5 | openSUSE-11.2-Oss | openSUSE-11.2-Oss | Yes | Yes
6 | openSUSE-11.2-Source | openSUSE-11.2-Source | No | Yes
When specifying repositories in various commands, an alias, URI or repository number
from the zypper repos command output can be used. A repository alias is a short
version of the repository name for use in repository handling commands. Note that
the repository numbers can change after modifying the list of repositories. The alias
will never change by itself.
By default, details such as the URI or the priority of the repository are not displayed.
Use the following command to list all details:
Managing Software with Command Line Tools 117