Blame SOURCES/BZ-1182075-yum-security-manpage.patch

d2a170
commit 2e04296024bdb3b4745e7e36420eaffa04f80ec0
d2a170
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
d2a170
Date:   Wed Jun 17 18:50:40 2015 +0200
d2a170
d2a170
    Add missing documentation from yum-security manpage. bug#1182075
d2a170
d2a170
diff --git a/docs/yum.8 b/docs/yum.8
d2a170
index a0038f6..99862fa 100644
d2a170
--- a/docs/yum.8
d2a170
+++ b/docs/yum.8
d2a170
@@ -938,6 +938,20 @@ Specifies an alternate directory to store packages.
d2a170
 Set any config option in yum config or repo files. For options in the global 
d2a170
 config just use: \-\-setopt=option=value for repo options use: \-\-setopt=repoid.option=value
d2a170
 .PP
d2a170
+.IP "\fB\-\-security\fP"
d2a170
+This option includes packages that say they fix a security issue, in updates.
d2a170
+.br
d2a170
+.IP "\fB\--advisory=ADVS, --advisories=ADVS\fP"
d2a170
+This option includes in updates packages corresponding to the advisory ID, Eg. FEDORA-2201-123.
d2a170
+.IP "\fB\--bz=BZS\fP"
d2a170
+This option includes in updates packages that say they fix a Bugzilla ID, Eg. 123.
d2a170
+.IP "\fB\--cve=CVES\fP"
d2a170
+This option includes in updates packages that say they fix a CVE - Common Vulnerabilities and Exposures ID (http://cve.mitre.org/about/), Eg. CVE-2201-0123.
d2a170
+.IP "\fB\--bugfix\fP"
d2a170
+This option includes in updates packages that say they fix a bugfix issue.
d2a170
+.IP "\fB\--sec-severity=SEVS, --secseverity=SEVS\fP"
d2a170
+This option includes in updates security relevant packages of the specified severity.
d2a170
+
d2a170
 
d2a170
 .SH "LIST OPTIONS"
d2a170
 The following are the ways which you can invoke \fByum\fP in list
d2a170
@@ -1045,6 +1059,56 @@ Tell any enabled plugins to eliminate their cached data.
d2a170
 .IP "\fByum clean all\fP"
d2a170
 Does all of the above.
d2a170
 
d2a170
+.SH "EXAMPLES"
d2a170
+.PP
d2a170
+To list all updates that are security relevant, and get a return code on whether there are security updates use:
d2a170
+.IP
d2a170
+yum --security check-update
d2a170
+.PP
d2a170
+To upgrade packages that have security errata (upgrades to the latest
d2a170
+available package) use:
d2a170
+.IP
d2a170
+yum --security update
d2a170
+.PP
d2a170
+To upgrade packages that have security errata (upgrades to the last
d2a170
+security errata package) use:
d2a170
+.IP
d2a170
+yum --security update-minimal
d2a170
+.PP
d2a170
+To get a list of all BZs that are fixed for packages you have installed use:
d2a170
+.IP
d2a170
+yum updateinfo list bugzillas
d2a170
+.PP
d2a170
+To get a list of all security advisories, including the ones you have already
d2a170
+installed use:
d2a170
+.IP
d2a170
+yum updateinfo list all security
d2a170
+.PP
d2a170
+To get the information on advisory FEDORA-2707-4567 use:
d2a170
+.IP
d2a170
+yum updateinfo info FEDORA-2707-4567
d2a170
+.PP
d2a170
+To update packages to the latest version which contain fixes for Bugzillas 123, 456 and 789; and all security updates use:
d2a170
+.IP
d2a170
+yum --bz 123 --bz 456 --bz 789 --security update
d2a170
+.PP
d2a170
+To update to the packages which just update Bugzillas 123, 456 and 789; and all security updates use:
d2a170
+.IP
d2a170
+yum --bz 123 --bz 456 --bz 789 --security update-minimal
d2a170
+.PP
d2a170
+To get an info list of the latest packages which contain fixes for Bugzilla 123; CVEs CVE-2207-0123 and CVE-2207-3210; and Fedora advisories FEDORA-2707-4567 and FEDORA-2707-7654 use:
d2a170
+.IP
d2a170
+yum --bz 123 --cve CVE-2207-0123 --cve CVE-2207-3210 --advisory FEDORA-2707-4567 --advisory FEDORA-2707-7654 info updates
d2a170
+.PP
d2a170
+To get a list of packages which are "new".
d2a170
+.IP
d2a170
+yum updateinfo list new
d2a170
+.PP
d2a170
+To get a summary of advisories you haven't installed yet use:
d2a170
+.IP
d2a170
+yum updateinfo summary
d2a170
+
d2a170
+
d2a170
 .PP 
d2a170
 .SH "PLUGINS"
d2a170
 Yum can be extended through the use of plugins. A plugin is a Python ".py" file