tion. The latter is achieved with the zypper dist-upgrade command which is discussed
in Section 16.1, “Upgrading the System” (page 183).
9.1.3.1 Installing Patches
To install all ocially released patches applying to your system, just run:
zypper patch
In this case, all patches available in your repositories are checked for relevance and
installed, if necessary. The above command is all you must enter in order to apply
them when needed.
Zypper knows three dierent commands to query for the availability of patches:
zypper patch-check
Lists the number of needed patches (patches, that apply to your system but are
not yet installed)
~ # zypper patch-check
Loading repository data...
Reading installed packages...
5 patches needed (1 security patch)
zypper list-patches
Lists all needed patches (patches, that apply to your system but are not yet in-
stalled)
~ # zypper list-patches
Loading repository data...
Reading installed packages...
Repository | Name | Version | Category | Status
------------------------------------+-----------+---------+----------+-------
Updates for openSUSE 11.3 11.3-1.82 | lxsession | 2776 | security | needed
zypper patches
Lists all patches available for openSUSE, regardless of whether they are already
installed or apply to your installation.
It is also possible to list and install patches relevant to specic issues. To list specic
patches, use the zypper list-patches command with the following options:
--bugzilla[=
number
]
Lists all needed patches for Bugzilla issues. Optionally, you can specify a bug
number if you only want to list patches for this specic bug.
--cve[=
number
]
Lists all needed patches for CVE (Common Vulnerabilities and Exposures) issues,
or only patches matching a certain CVE number, if specied.
To install a patch for a specic Bugzilla or CVE issue, use the following commands:
Managing Software with Command Line Tools 115