RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Pinto Elia
  Root:   /v/rpm/cvs                       Email:  devzero2...@rpm5.org
  Module: rpm                              Date:   11-May-2011 11:54:41
  Branch: rpm-5_1                          Handle: 2011051109543901

  Modified files:           (Branch: rpm-5_1)
    rpm                     CHANGES
    rpm/doc                 rpm.8

  Log:
    document --whatneeds and --needswhat
       (ref. https://bugzilla.redhat.com/show_bug.cgi?id=142651)
    
       I think it's best to document the feature
       and not what should belong to the ugly tricks department
    
       This commit also backport this commit
       
https://github.com/devzero2000/RPM5/commit/b42e59d627c02f258693fe4928b5b1d87eb389a0
       Fix Dash escaping in man pages
       fix lp:637060
       fix @rpm.org ticket #66
    
    Submitted by: Elia Pinto

  Summary:
    Revision    Changes     Path
    1.2288.2.322+7  -0      rpm/CHANGES
    1.35.4.1    +205 -197   rpm/doc/rpm.8
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.2288.2.321 -r1.2288.2.322 CHANGES
  --- rpm/CHANGES       19 Mar 2011 18:52:25 -0000      1.2288.2.321
  +++ rpm/CHANGES       11 May 2011 09:54:39 -0000      1.2288.2.322
  @@ -1,4 +1,11 @@
   5.1.9 -> 5.1.10:
  +    - devzero2000: document --whatneeds and --needswhat
  +      (ref. https://bugzilla.redhat.com/show_bug.cgi?id=142651)
  +      This commit also backport this commit
  +      
https://github.com/devzero2000/RPM5/commit/b42e59d627c02f258693fe4928b5b1d87eb389a0
  +      Fix Dash escaping in man pages
  +      fix lp:637060
  +      fix @rpm.org ticket #66
       - jbj: checksig: check explictly for per-item failures after iterating.
       - jbj: install: check explictly for per-item failures after iterating.
       - jbj: rpmgi: save per-item failures separately from iteration returns.
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/doc/rpm.8
  ============================================================================
  $ cvs diff -u -r1.35 -r1.35.4.1 rpm.8
  --- rpm/doc/rpm.8     9 Nov 2007 23:27:05 -0000       1.35
  +++ rpm/doc/rpm.8     11 May 2011 09:54:40 -0000      1.35.4.1
  @@ -10,77 +10,77 @@
   .SS "QUERYING AND VERIFYING PACKAGES:"
   .PP
   
  -\fBrpm\fR {\fB-q|--query\fR} [\fBselect-options\fR] [\fBquery-options\fR]
  +\fBrpm\fR {\fB-q|-\-query\fR} [\fBselect-options\fR] [\fBquery-options\fR]
   
  -\fBrpm\fR {\fB-V|--verify\fR} [\fBselect-options\fR] [\fBverify-options\fR]
  +\fBrpm\fR {\fB-V|-\-verify\fR} [\fBselect-options\fR] [\fBverify-options\fR]
   
  -\fBrpm\fR \fB--import\fR \fB\fIPUBKEY\fB\fR\fI ...\fR
  +\fBrpm\fR \fB-\-import\fR \fB\fIPUBKEY\fB\fR\fI ...\fR
   
  -\fBrpm\fR {\fB-K|--checksig\fR} [\fB--nosignature\fR] [\fB--nodigest\fR]
  +\fBrpm\fR {\fB-K|-\-checksig\fR} [\fB-\-nosignature\fR] [\fB-\-nodigest\fR]
       \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   
   .SS "INSTALLING, UPGRADING, AND REMOVING PACKAGES:"
   .PP
   
  -\fBrpm\fR {\fB-i|--install\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-i|-\-install\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   
  -\fBrpm\fR {\fB-U|--upgrade\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-U|-\-upgrade\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   
  -\fBrpm\fR {\fB-F|--freshen\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-F|-\-freshen\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   
  -\fBrpm\fR {\fB-e|--erase\fR} [\fB--allmatches\fR] [\fB--nodeps\fR] 
[\fB--noscripts\fR]
  -    [\fB--notriggers\fR] [\fB--repackage\fR] [\fB--test\fR] 
\fB\fIPACKAGE_NAME\fB\fR\fI\ ...\fR
  +\fBrpm\fR {\fB-e|-\-erase\fR} [\fB-\-allmatches\fR] [\fB-\-nodeps\fR] 
[\fB-\-noscripts\fR]
  +    [\fB-\-notriggers\fR] [\fB-\-repackage\fR] [\fB-\-test\fR] 
\fB\fIPACKAGE_NAME\fB\fR\fI\ ...\fR
   
   .SS "MISCELLANEOUS:"
   .PP
   
  -\fBrpm\fR {\fB--initdb|--rebuilddb\fR}
  +\fBrpm\fR {\fB-\-rebuilddb\fR}
   
  -\fBrpm\fR {\fB--addsign|--resign\fR} \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-\-addsign|-\-resign\fR} \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   
  -\fBrpm\fR {\fB--querytags|--showrc\fR}
  +\fBrpm\fR {\fB-\-querytags|-\-showrc\fR}
   
  -\fBrpm\fR {\fB--setperms|--setugids\fR} \fB\fIPACKAGE_NAME\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-\-setperms|-\-setugids\fR} \fB\fIPACKAGE_NAME\fB\fR\fI ...\fR
   
   .SS "select-options"
   .PP
   
  - [\fB\fIPACKAGE_NAME\fB\fR] [\fB-a,--all\fR] [\fB-f,--file \fIFILE\fB\fR]
  - [\fB-g,--group \fIGROUP\fB\fR] {\fB-p,--package \fIPACKAGE_FILE\fB\fR]
  - [\fB--fileid \fIMD5\fB\fR] [\fB--hdrid \fISHA1\fB\fR] [\fB--pkgid 
\fIMD5\fB\fR] [\fB--tid \fITID\fB\fR]
  - [\fB--querybynumber \fIHDRNUM\fB\fR] [\fB--triggeredby 
\fIPACKAGE_NAME\fB\fR]
  - [\fB--whatprovides \fICAPABILITY\fB\fR] [\fB--whatrequires 
\fICAPABILITY\fB\fR]
  + [\fB\fIPACKAGE_NAME\fB\fR] [\fB-a,-\-all\fR] [\fB-f,-\-file \fIFILE\fB\fR]
  + [\fB-g,-\-group \fIGROUP\fB\fR] {\fB-p,-\-package \fIPACKAGE_FILE\fB\fR]
  + [\fB-\-fileid \fIMD5\fB\fR] [\fB-\-hdrid \fISHA1\fB\fR] [\fB-\-pkgid 
\fIMD5\fB\fR] [\fB-\-tid \fITID\fB\fR]
  + [\fB-\-querybynumber \fIHDRNUM\fB\fR] [\fB-\-triggeredby 
\fIPACKAGE_NAME\fB\fR]
  + [\fB-\-whatprovides \fICAPABILITY\fB\fR] [\fB-\-whatrequires 
\fICAPABILITY\fB\fR]
   
   .SS "query-options"
   .PP
   
  - [\fB--changelog\fR] [\fB-c|--configfiles\fR] [\fB-d|--docfiles\fR] 
[\fB--dump\fR]
  - [\fB--filesbypkg\fR] [\fB-i|--info\fR] [\fB--last\fR] [\fB-l|--list\fR]
  - [\fB--provides\fR] [\fB--qf,--queryformat \fIQUERYFMT\fB\fR]
  - [\fB-R|--requires\fR] [\fB--scripts\fR] [\fB-s|--state\fR]
  - [\fB--triggers,--triggerscripts\fR]
  + [\fB-\-changelog\fR] [\fB-c|-\-configfiles\fR] [\fB-d|-\-docfiles\fR] 
[\fB-\-dump\fR]
  + [\fB-\-filesbypkg\fR] [\fB-i|-\-info\fR] [\fB-\-last\fR] [\fB-l|-\-list\fR]
  + [\fB-\-provides\fR] [\fB-\-qf,-\-queryformat \fIQUERYFMT\fB\fR]
  + [\fB-R|-\-requires\fR] [\fB-\-scripts\fR] [\fB-s|-\-state\fR]
  + [\fB-\-triggers,-\-triggerscripts\fR]
   
   .SS "verify-options"
   .PP
   
  - [\fB--nodeps\fR] [\fB--nofiles\fR] [\fB--noscripts\fR]
  - [\fB--nodigest\fR] [\fB--nosignature\fR]
  - [\fB--nolinkto\fR] [\fB--nomd5\fR] [\fB--nosize\fR] [\fB--nouser\fR]
  - [\fB--nogroup\fR] [\fB--nomtime\fR] [\fB--nomode\fR] [\fB--nordev\fR]
  + [\fB-\-nodeps\fR] [\fB-\-nofiles\fR] [\fB-\-noscripts\fR]
  + [\fB-\-nodigest\fR] [\fB-\-nosignature\fR]
  + [\fB-\-nolinkto\fR] [\fB-\-nomd5\fR] [\fB-\-nosize\fR] [\fB-\-nouser\fR]
  + [\fB-\-nogroup\fR] [\fB-\-nomtime\fR] [\fB-\-nomode\fR] [\fB-\-nordev\fR]
   
   .SS "install-options"
   .PP
   
  - [\fB--aid\fR] [\fB--allfiles\fR] [\fB--badreloc\fR] [\fB--excludepath 
\fIOLDPATH\fB\fR]
  - [\fB--excludedocs\fR] [\fB--force\fR] [\fB-h,--hash\fR]
  - [\fB--ignoresize\fR] [\fB--ignorearch\fR] [\fB--ignoreos\fR]
  - [\fB--includedocs\fR] [\fB--justdb\fR] [\fB--nodeps\fR]
  - [\fB--nodigest\fR] [\fB--nosignature\fR] [\fB--nosuggest\fR]
  - [\fB--noorder\fR] [\fB--noscripts\fR] [\fB--notriggers\fR]
  - [\fB--oldpackage\fR] [\fB--percent\fR] [\fB--prefix \fINEWPATH\fB\fR]
  - [\fB--relocate \fIOLDPATH\fB=\fINEWPATH\fB\fR]
  - [\fB--repackage\fR] [\fB--replacefiles\fR] [\fB--replacepkgs\fR]
  - [\fB--test\fR]
  + [\fB-\-aid\fR] [\fB-\-allfiles\fR] [\fB-\-badreloc\fR] [\fB-\-excludepath 
\fIOLDPATH\fB\fR]
  + [\fB-\-excludedocs\fR] [\fB-\-force\fR] [\fB-h,-\-hash\fR]
  + [\fB-\-ignoresize\fR] [\fB-\-ignorearch\fR] [\fB-\-ignoreos\fR]
  + [\fB-\-includedocs\fR] [\fB-\-justdb\fR] [\fB-\-nodeps\fR]
  + [\fB-\-nodigest\fR] [\fB-\-nosignature\fR] [\fB-\-nosuggest\fR]
  + [\fB-\-noorder\fR] [\fB-\-noscripts\fR] [\fB-\-notriggers\fR]
  + [\fB-\-oldpackage\fR] [\fB-\-percent\fR] [\fB-\-prefix \fINEWPATH\fB\fR]
  + [\fB-\-relocate \fIOLDPATH\fB=\fINEWPATH\fB\fR]
  + [\fB-\-repackage\fR] [\fB-\-replacefiles\fR] [\fB-\-replacepkgs\fR]
  + [\fB-\-test\fR]
   
   .SH "DESCRIPTION"
   .PP
  @@ -113,14 +113,14 @@
   .PP
   These options can be used in all the different modes.
   .TP
  -\fB-?, --help\fR
  +\fB-?, -\-help\fR
   Print a longer usage message then normal.
   .TP
  -\fB--version\fR
  +\fB-\-version\fR
   Print a single line containing the version number of \fBrpm\fR
   being used. 
   .TP
  -\fB--quiet\fR
  +\fB-\-quiet\fR
   Print as little as possible - normally only error messages will
   be displayed.
   .TP
  @@ -131,7 +131,7 @@
   \fB-vv\fR
   Print lots of ugly debugging information.
   .TP
  -\fB--rcfile \fIFILELIST\fB\fR
  +\fB-\-rcfile \fIFILELIST\fB\fR
   Each of the files in the colon separated
   \fIFILELIST\fR
   is read sequentially by \fBrpm\fR for configuration
  @@ -141,14 +141,14 @@
   The default \fIFILELIST\fR is
   
\fI/usr/lib/rpm/rpmrc\fR:\fI/usr/lib/rpm/vendor/rpmrc\fR:\fI/etc/rpmrc\fR:\fI~/.rpmrc\fR.
   .TP
  -\fB--pipe \fICMD\fB\fR
  +\fB-\-pipe \fICMD\fB\fR
   Pipes the output of \fBrpm\fR to the command \fICMD\fR.
   .TP
  -\fB--dbpath \fIDIRECTORY\fB\fR
  +\fB-\-dbpath \fIDIRECTORY\fB\fR
   Use the database in \fIDIRECTORY\fR rather
   than the default path \fI/var/lib/rpm\fR
   .TP
  -\fB--root \fIDIRECTORY\fB\fR
  +\fB-\-root \fIDIRECTORY\fB\fR
   Use the file system tree rooted at \fIDIRECTORY\fR for all operations.
   Note that this means the database within
   \fIDIRECTORY\fR
  @@ -161,20 +161,20 @@
   .PP
   The general form of an rpm install command is 
   .PP
  -\fBrpm\fR {\fB-i|--install\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-i|-\-install\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   .PP
   This installs a new package.
   .PP
   The general form of an rpm upgrade command is 
   .PP
  -\fBrpm\fR {\fB-U|--upgrade\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-U|-\-upgrade\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   .PP
   This upgrades or installs the package currently installed
   to a newer version.  This is the same as install, except
   all other version(s) of the package are removed after the
   new package is installed.
   .PP
  -\fBrpm\fR {\fB-F|--freshen\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-F|-\-freshen\fR} [\fBinstall-options\fR] 
\fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   .PP
   This will upgrade packages, but only if an earlier version
   currently exists. The \fIPACKAGE_FILE\fR
  @@ -189,87 +189,87 @@
   client support. 
   .PP
   .TP
  -\fB--aid\fR
  +\fB-\-aid\fR
   Add suggested packages to the transaction set when needed.
   .TP
  -\fB--allfiles\fR
  +\fB-\-allfiles\fR
   Installs or upgrades all the missingok files in the package,
   regardless if they exist.
   .TP
  -\fB--badreloc\fR
  -Used with \fB--relocate\fR, permit relocations on
  +\fB-\-badreloc\fR
  +Used with \fB-\-relocate\fR, permit relocations on
   all file paths, not just those \fIOLDPATH\fR's
   included in the binary package relocation hint(s).
   .TP
  -\fB--excludepath \fIOLDPATH\fB\fR
  +\fB-\-excludepath \fIOLDPATH\fB\fR
   Don't install files whose name begins with
   \fIOLDPATH\fR.
   .TP
  -\fB--excludedocs\fR
  +\fB-\-excludedocs\fR
   Don't install any files which are marked as documentation
   (which includes man pages and texinfo documents).
   .TP
  -\fB--force\fR
  +\fB-\-force\fR
   Same as using
  -\fB--replacepkgs\fR,
  -\fB--replacefiles\fR, and
  -\fB--oldpackage\fR.
  +\fB-\-replacepkgs\fR,
  +\fB-\-replacefiles\fR, and
  +\fB-\-oldpackage\fR.
   .TP
  -\fB-h, --hash\fR
  +\fB-h, -\-hash\fR
   Print 50 hash marks as the package archive is unpacked.
  -Use with \fB-v|--verbose\fR for a nicer display.
  +Use with \fB-v|-\-verbose\fR for a nicer display.
   .TP
  -\fB--ignoresize\fR
  +\fB-\-ignoresize\fR
   Don't check mount file systems for sufficient disk space before
   installing this package.
   .TP
  -\fB--ignorearch\fR
  +\fB-\-ignorearch\fR
   Allow installation or upgrading even if the architectures
   of the binary package and host don't match.
   .TP
  -\fB--ignoreos\fR
  +\fB-\-ignoreos\fR
   Allow installation or upgrading even if the operating
   systems of the binary package and host don't match.
   .TP
  -\fB--includedocs\fR
  +\fB-\-includedocs\fR
   Install documentation files. This is the default behavior.
   .TP
  -\fB--justdb\fR
  +\fB-\-justdb\fR
   Update only the database, not the filesystem.
   .TP
  -\fB--nodigest\fR
  +\fB-\-nodigest\fR
   Don't verify package or header digests when reading.
   .TP
  -\fB--nosignature\fR
  +\fB-\-nosignature\fR
   Don't verify package or header signatures when reading.
   .TP
  -\fB--nodeps\fR
  +\fB-\-nodeps\fR
   Don't do a dependency check before installing or upgrading
   a package.
   .TP
  -\fB--nosuggest\fR
  +\fB-\-nosuggest\fR
   Don't suggest package(s) that provide a missing dependency.
   .TP
  -\fB--noorder\fR
  +\fB-\-noorder\fR
   Don't reorder the packages for an install. The list of
   packages would normally be reordered to satisfy dependencies.
   .TP
  -\fB--noscripts\fR
  +\fB-\-noscripts\fR
   .TP
  -\fB--nopre\fR
  +\fB-\-nopre\fR
   .TP
  -\fB--nopost\fR
  +\fB-\-nopost\fR
   .TP
  -\fB--nopreun\fR
  +\fB-\-nopreun\fR
   .TP
  -\fB--nopostun\fR
  +\fB-\-nopostun\fR
   Don't execute the scriptlet of the same name.
  -The \fB--noscripts\fR option is equivalent to
  +The \fB-\-noscripts\fR option is equivalent to
   
  -\fB--nopre\fR
  -\fB--nopost\fR
  -\fB--nopreun\fR
  -\fB--nopostun\fR
  +\fB-\-nopre\fR
  +\fB-\-nopost\fR
  +\fB-\-nopreun\fR
  +\fB-\-nopostun\fR
   
   and turns off the execution of the corresponding
   \fB%pre\fR,
  @@ -278,19 +278,19 @@
   \fB%postun\fR
   scriptlet(s).
   .TP
  -\fB--notriggers\fR
  +\fB-\-notriggers\fR
   .TP
  -\fB--notriggerin\fR
  +\fB-\-notriggerin\fR
   .TP
  -\fB--notriggerun\fR
  +\fB-\-notriggerun\fR
   .TP
  -\fB--notriggerpostun\fR
  +\fB-\-notriggerpostun\fR
   Don't execute any trigger scriptlet of the named type.
  -The \fB--notriggers\fR option is equivalent to
  +The \fB-\-notriggers\fR option is equivalent to
   
  -\fB--notriggerin\fR
  -\fB--notriggerun\fR
  -\fB--notriggerpostun\fR
  +\fB-\-notriggerin\fR
  +\fB-\-notriggerun\fR
  +\fB-\-notriggerpostun\fR
   
   and turns off execution of the corresponding
   \fB%triggerin\fR,
  @@ -298,20 +298,20 @@
   \fB%triggerpostun\fR
   scriptlet(s).
   .TP
  -\fB--oldpackage\fR
  +\fB-\-oldpackage\fR
   Allow an upgrade to replace a newer package with an older one.
   .TP
  -\fB--percent\fR
  +\fB-\-percent\fR
   Print percentages as files are unpacked from the package archive.
   This is intended to make \fBrpm\fR easy to run from
   other tools.
   .TP
  -\fB--prefix \fINEWPATH\fB\fR
  +\fB-\-prefix \fINEWPATH\fB\fR
   For relocatable binary packages, translate all file paths that
   start with the installation prefix in the package relocation hint(s)
   to \fINEWPATH\fR.
   .TP
  -\fB--relocate \fIOLDPATH\fB=\fINEWPATH\fB\fR
  +\fB-\-relocate \fIOLDPATH\fB=\fINEWPATH\fB\fR
   For relocatable binary packages, translate all file paths
   that start with \fIOLDPATH\fR in the
   package relocation hint(s) to \fINEWPATH\fR.
  @@ -319,7 +319,7 @@
   \fIOLDPATH\fR's in the package are to
   be relocated.
   .TP
  -\fB--repackage\fR
  +\fB-\-repackage\fR
   Re-package the files before erasing. The previously installed
   package will be named according to the macro
   \fB%_repackage_name_fmt\fR
  @@ -327,68 +327,68 @@
   the macro \fB%_repackage_dir\fR (default value
   is \fI/var/spool/repackage\fR).
   .TP
  -\fB--replacefiles\fR
  +\fB-\-replacefiles\fR
   Install the packages even if they replace files from other,
   already installed, packages.
   .TP
  -\fB--replacepkgs\fR
  +\fB-\-replacepkgs\fR
   Install the packages even if some of them are already installed
   on this system.
   .TP
  -\fB--test\fR
  +\fB-\-test\fR
   Do not install the package, simply check for and report
   potential conflicts.
   .SS "ERASE OPTIONS"
   .PP
   The general form of an rpm erase command is 
   .PP
  -\fBrpm\fR {\fB-e|--erase\fR} [\fB--allmatches\fR] [\fB--nodeps\fR] 
[\fB--noscripts\fR] [\fB--notriggers\fR] [\fB--repackage\fR] [\fB--test\fR] 
\fB\fIPACKAGE_NAME\fB\fR\fI ...\fR
  +\fBrpm\fR {\fB-e|-\-erase\fR} [\fB-\-allmatches\fR] [\fB-\-nodeps\fR] 
[\fB-\-noscripts\fR] [\fB--notriggers\fR] [\fB--repackage\fR] [\fB--test\fR] 
\fB\fIPACKAGE_NAME\fB\fR\fI ...\fR
   .PP
   The following options may also be used:
   .TP
  -\fB--allmatches\fR
  +\fB-\-allmatches\fR
   Remove all versions of the package which match
   \fIPACKAGE_NAME\fR. Normally an
   error is issued if \fIPACKAGE_NAME\fR
   matches multiple packages.
   .TP
  -\fB--nodeps\fR
  +\fB-\-nodeps\fR
   Don't check dependencies before uninstalling the packages.
   .TP
  -\fB--noscripts\fR
  +\fB-\-noscripts\fR
   .TP
  -\fB--nopreun\fR
  +\fB-\-nopreun\fR
   .TP
  -\fB--nopostun\fR
  +\fB-\-nopostun\fR
   Don't execute the scriptlet of the same name.
  -The \fB--noscripts\fR option during package erase is
  +The \fB-\-noscripts\fR option during package erase is
   equivalent to
   
  -\fB--nopreun\fR
  -\fB--nopostun\fR
  +\fB-\-nopreun\fR
  +\fB-\-nopostun\fR
   
   and turns off the execution of the corresponding
   \fB%preun\fR, and
   \fB%postun\fR
   scriptlet(s).
   .TP
  -\fB--notriggers\fR
  +\fB-\-notriggers\fR
   .TP
  -\fB--notriggerun\fR
  +\fB-\-notriggerun\fR
   .TP
  -\fB--notriggerpostun\fR
  +\fB-\-notriggerpostun\fR
   Don't execute any trigger scriptlet of the named type.
  -The \fB--notriggers\fR option is equivalent to
  +The \fB-\-notriggers\fR option is equivalent to
   
  -\fB--notriggerun\fR
  -\fB--notriggerpostun\fR
  +\fB-\-notriggerun\fR
  +\fB-\-notriggerpostun\fR
   
   and turns off execution of the corresponding
   \fB%triggerun\fR, and
   \fB%triggerpostun\fR
   scriptlet(s).
   .TP
  -\fB--repackage\fR
  +\fB-\-repackage\fR
   Re-package the files before erasing. The previously installed
   package will be named according to the macro
   \fB%_repackage_name_fmt\fR
  @@ -396,7 +396,7 @@
   the macro \fB%_repackage_dir\fR (default value
   is \fI/var/spool/repackage\fR).
   .TP
  -\fB--test\fR
  +\fB-\-test\fR
   Don't really uninstall anything, just go through the motions.
   Useful in conjunction with the \fB-vv\fR option
   for debugging.
  @@ -404,12 +404,12 @@
   .PP
   The general form of an rpm query command is 
   .PP
  -\fBrpm\fR {\fB-q|--query\fR} [\fBselect-options\fR] [\fBquery-options\fR]
  +\fBrpm\fR {\fB-q|-\-query\fR} [\fBselect-options\fR] [\fBquery-options\fR]
   .PP
   You may specify the format that package information should be
   printed in. To do this, you use the
   
  - \fB--qf|--queryformat\fR \fB\fIQUERYFMT\fB\fR
  + \fB-\-qf|-\-queryformat\fR \fB\fIQUERYFMT\fB\fR
   
   option, followed by the \fIQUERYFMT\fR
   format string.  Query formats are modified versions of the
  @@ -467,7 +467,7 @@
   To print the packages name and distribution information in
   two columns, you could use \fB%-30{NAME}%{DISTRIBUTION}\fR.
   \fBrpm\fR will print a list of all of the tags it knows about when it
  -is invoked with the \fB--querytags\fR argument.
  +is invoked with the \fB-\-querytags\fR argument.
   .PP
   There are two subsets of options for querying: package selection,
   and information selection.
  @@ -477,24 +477,24 @@
   \fB\fIPACKAGE_NAME\fB\fR
   Query installed package named \fIPACKAGE_NAME\fR.
   .TP
  -\fB-a, --all\fR
  +\fB-a, -\-all\fR
   Query all installed packages.
   .TP
  -\fB-f, --file \fIFILE\fB\fR
  +\fB-f, -\-file \fIFILE\fB\fR
   Query package owning \fIFILE\fR.
   .TP
  -\fB--fileid \fIMD5\fB\fR
  +\fB-\-fileid \fIMD5\fB\fR
   Query package that contains a given file identifier, i.e. the
   \fIMD5\fR digest of the file contents.
   .TP
  -\fB-g, --group \fIGROUP\fB\fR
  +\fB-g, -\-group \fIGROUP\fB\fR
   Query packages with the group of \fIGROUP\fR.
   .TP
  -\fB--hdrid \fISHA1\fB\fR
  +\fB-\-hdrid \fISHA1\fB\fR
   Query package that contains a given header identifier, i.e. the
   \fISHA1\fR digest of the immutable header region.
   .TP
  -\fB-p, --package \fIPACKAGE_FILE\fB\fR
  +\fB-p, -\-package \fIPACKAGE_FILE\fB\fR
   Query an (uninstalled) package \fIPACKAGE_FILE\fR.
   The \fIPACKAGE_FILE\fR may be specified
   as an \fBftp\fR or \fBhttp\fR style URL, in
  @@ -503,7 +503,7 @@
   \fBrpm\fR's internal
   \fBftp\fR and
   \fBhttp\fR
  -client support. The \fIPACKAGE_FILE\fR argument(s),
  +client support. /--rqThe \fIPACKAGE_FILE\fR argument(s),
   if not a binary package, will be interpreted as an ASCII package
   manifest.  Comments are permitted, starting with a '#', and each
   line of a package manifest file may include white space separated
  @@ -512,50 +512,59 @@
   the package manifest as additional \fIPACKAGE_FILE\fR
   arguments to the query.
   .TP
  -\fB--pkgid \fIMD5\fB\fR
  +\fB-\-pkgid \fIMD5\fB\fR
   Query package that contains a given package identifier, i.e. the
   \fIMD5\fR digest of the combined header and
   payload contents.
   .TP
  -\fB--querybynumber \fIHDRNUM\fB\fR
  +\fB-\-querybynumber \fIHDRNUM\fB\fR
   Query the \fIHDRNUM\fRth database entry
   directly; this is useful only for debugging.
   .TP
  -\fB--specfile \fISPECFILE\fB\fR
  +\fB-\-specfile \fISPECFILE\fB\fR
   Parse and query \fISPECFILE\fR as if
   it were a package. Although not all the information (e.g. file lists)
   is available, this type of query permits rpm to be used to extract
   information from spec files without having to write a specfile
   parser.
   .TP
  -\fB--tid \fITID\fB\fR
  +\fB-\-tid \fITID\fB\fR
   Query package(s) that have a given \fITID\fR
   transaction identifier. A unix time stamp is currently used as a
   transaction identifier. All package(s) installed or erased within
   a single transaction have a common identifier.
   .TP
  -\fB--triggeredby \fIPACKAGE_NAME\fB\fR
  +\fB-\-triggeredby \fIPACKAGE_NAME\fB\fR
   Query packages that are triggered by package(s)
   \fIPACKAGE_NAME\fR.
   .TP
  -\fB--whatprovides \fICAPABILITY\fB\fR
  +\fB-\-needswhat \fIPACKAGE_NAME\fB\fR
  +List prerequisite packages of package(s)
  +\fIPACKAGE_NAME\fR.
  +.TP
  +\fB-\-whatprovides \fICAPABILITY\fB\fR
   Query all packages that provide the \fICAPABILITY\fR capability.
   .TP
  -\fB--whatrequires \fICAPABILITY\fB\fR
  -Query all packages that requires \fICAPABILITY\fR for proper functioning.
  +\fB-\-whatrequires \fICAPABILITY\fB\fR
  +Query all packages that require \fICAPABILITY\fR for proper functioning.
  +.br
  +Note that this does not return what requires a given package.
  +A package usually provides multiple capabilities and file-names on which
  +other packages may depend. To see the complete dependencies
  +for a capability, use \fB--whatneeds \fICAPABILITY\fB\fR
   .SS "PACKAGE QUERY OPTIONS:"
   .PP
   .TP
  -\fB--changelog\fR
  +\fB-\-changelog\fR
   Display change information for the package.
   .TP
  -\fB-c, --configfiles\fR
  +\fB-c, -\-configfiles\fR
   List only configuration files (implies \fB-l\fR).
   .TP
  -\fB-d, --docfiles\fR
  +\fB-d, -\-docfiles\fR
   List only documentation files (implies \fB-l\fR).
   .TP
  -\fB--dump\fR
  +\fB-\-dump\fR
   Dump file information as follows:
   .sp
   .RS
  @@ -571,45 +580,45 @@
   \fB-c\fR,
   \fB-d\fR.
   .TP
  -\fB--filesbypkg\fR
  +\fB-\-filesbypkg\fR
   List all the files in each selected package.
   .TP
  -\fB-i, --info\fR
  +\fB-i, -\-info\fR
   Display package information, including name, version, and description.
  -This uses the \fB--queryformat\fR if one was specified.
  +This uses the \fB-\-queryformat\fR if one was specified.
   .TP
  -\fB--last\fR
  +\fB-\-last\fR
   Orders the package listing by install time such that the latest
   packages are at the top.
   .TP
  -\fB-l, --list\fR
  +\fB-l, -\-list\fR
   List files in package.
   .TP
  -\fB--provides\fR
  +\fB-\-provides\fR
   List capabilities this package provides.
   .TP
  -\fB-R, --requires\fR
  -List packages on which this package depends.
  +\fB-R, -\-requires\fR
  +List capabilities on which this package depends.
   .TP
  -\fB--scripts\fR
  +\fB-\-scripts\fR
   List the package specific scriptlet(s) that are used as part
   of the installation and uninstallation processes.
   .TP
  -\fB-s, --state\fR
  +\fB-s, -\-state\fR
   Display the \fIstates\fR of files in the package
   (implies \fB-l\fR).  The state of each file is one of
   \fInormal\fR,
   \fInot installed\fR, or
   \fIreplaced\fR.
   .TP
  -\fB--triggers, --triggerscripts\fR
  +\fB-\-triggers, -\-triggerscripts\fR
   Display the trigger scripts, if any, which are contained in
   the package.
   .SS "VERIFY OPTIONS"
   .PP
   The general form of an rpm verify command is 
   .PP
  -\fBrpm\fR {\fB-V|--verify\fR} [\fBselect-options\fR] [\fBverify-options\fR]
  +\fBrpm\fR {\fB-V|-\-verify\fR} [\fBselect-options\fR] [\fBverify-options\fR]
   .PP
   Verifying a package compares information about the installed files in
   the package with information about the files taken from the package
  @@ -618,43 +627,43 @@
   each file.  Any discrepancies are displayed.
   Files that were not installed from the package, for example,
   documentation files excluded on installation using the
  -"\fB--excludedocs\fR" option,
  +"\fB-\-excludedocs\fR" option,
   will be silently ignored.
   .PP
   The package selection options are the same as for package
   querying (including package manifest files as arguments).
   Other options unique to verify mode are:
   .TP
  -\fB--nodeps\fR
  +\fB-\-nodeps\fR
   Don't verify dependencies of packages.
   .TP
  -\fB--nodigest\fR
  +\fB-\-nodigest\fR
   Don't verify package or header digests when reading.
   .TP
  -\fB--nofiles\fR
  +\fB-\-nofiles\fR
   Don't verify any attributes of package files.
   .TP
  -\fB--noscripts\fR
  +\fB-\-noscripts\fR
   Don't execute the \fB%verifyscript\fR scriptlet (if any).
   .TP
  -\fB--nosignature\fR
  +\fB-\-nosignature\fR
   Don't verify package or header signatures when reading.
   .TP
  -\fB--nolinkto\fR
  +\fB-\-nolinkto\fR
   .TP
  -\fB--nomd5\fR
  +\fB-\-nomd5\fR
   .TP
  -\fB--nosize\fR
  +\fB-\-nosize\fR
   .TP
  -\fB--nouser\fR
  +\fB-\-nouser\fR
   .TP
  -\fB--nogroup\fR
  +\fB-\-nogroup\fR
   .TP
  -\fB--nomtime\fR
  +\fB-\-nomtime\fR
   .TP
  -\fB--nomode\fR
  +\fB-\-nomode\fR
   .TP
  -\fB--nordev\fR
  +\fB-\-nordev\fR
   Don't verify the corresponding file attribute.
   .PP
   The format of the output is a string of 8 characters, a possible
  @@ -678,7 +687,7 @@
   indicates the test could not be performed (e.g. file permissions
   prevent reading). Otherwise, the (mnemonically
   em\fBB\fRoldened) character denotes failure of
  -the corresponding \fB--verify\fR test:
  +the corresponding \fB-\-verify\fR test:
   
   .nf
   \fBS\fR file \fBS\fRize differs
  @@ -695,21 +704,21 @@
   .PP
   The general forms of rpm digital signature commands are
   .PP
  -\fBrpm\fR \fB--import\fR \fB\fIPUBKEY\fB\fR\fI ...\fR
  +\fBrpm\fR \fB-\-import\fR \fB\fIPUBKEY\fB\fR\fI ...\fR
   
  -\fBrpm\fR {\fB--checksig\fR} [\fB--nosignature\fR] [\fB--nodigest\fR]
  +\fBrpm\fR {\fB-\-checksig\fR} [\fB-\-nosignature\fR] [\fB-\-nodigest\fR]
       \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   .PP
  -The \fB--checksig\fR option checks all the digests and signatures contained 
in
  +The \fB-\-checksig\fR option checks all the digests and signatures contained 
in
   \fIPACKAGE_FILE\fR to ensure
   the integrity and origin of the package. Note that
   signatures are now verified whenever a package is read,
  -and \fB--checksig\fR is useful to verify
  +and \fB-\-checksig\fR is useful to verify
   all of the digests and signatures associated with a package.
   .PP
   Digital signatures cannot be verified without a public key.
   An ASCII armored public key can be added to the \fBrpm\fR database
  -using \fB--import\fR. An imported public key is
  +using \fB-\-import\fR. An imported public key is
   carried in a header, and key ring management is performed
   exactly like package management. For example, all currently imported
   public keys can be displayed by:
  @@ -727,9 +736,9 @@
   \fBrpm -e gpg-pubkey-db42a60e\fR
   .SS "SIGNING A PACKAGE"
   .PP
  -\fBrpm\fR \fB--addsign|--resign\fR \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
  +\fBrpm\fR \fB-\-addsign|-\-resign\fR \fB\fIPACKAGE_FILE\fB\fR\fI ...\fR
   .PP
  -Both of the \fB--addsign\fR and \fB--resign\fR
  +Both of the \fB-\-addsign\fR and \fB-\-resign\fR
   options generate and insert new signatures for each package
   \fIPACKAGE_FILE\fR given, replacing any
   existing signatures. There are two options for historical reasons,
  @@ -780,16 +789,15 @@
   .PP
   The general form of an rpm rebuild database command is 
   .PP
  -\fBrpm\fR {\fB--initdb|--rebuilddb\fR} [\fB-v\fR] [\fB--dbpath 
\fIDIRECTORY\fB\fR] [\fB--root \fIDIRECTORY\fB\fR]
  +\fBrpm\fR {\fB-\-rebuilddb\fR} [\fB-v\fR] [\fB-\-dbpath \fIDIRECTORY\fB\fR] 
[\fB-\-root \fIDIRECTORY\fB\fR]
   .PP
  -Use \fB--initdb\fR to create a new database, use
  -\fB--rebuilddb\fR to rebuild the database indices from
  +Use \fB-\-rebuilddb\fR to rebuild the database indices from
   the installed package headers.
   .SS "SHOWRC"
   .PP
   The command
   .PP
  -\fBrpm\fR \fB--showrc\fR
  +\fBrpm\fR \fB-\-showrc\fR
   .PP
   shows the values \fBrpm\fR will use for all of the
   options are currently set in
  @@ -817,13 +825,13 @@
   \fBrpm\fR allows the following options to be used with
   ftp URLs:
   .TP
  -\fB--ftpproxy \fIHOST\fB\fR
  +\fB-\-ftpproxy \fIHOST\fB\fR
   The host \fIHOST\fR will be used as a proxy server
   for all ftp transfers, which allows users to ftp through firewall
   machines which use proxy systems. This option may also be specified
   by configuring the macro \fB%_ftpproxy\fR.
   .TP
  -\fB--ftpport \fIPORT\fB\fR
  +\fB-\-ftpport \fIPORT\fB\fR
   The TCP \fIPORT\fR number to use for
   the ftp connection on the proxy ftp server instead of the default
   port. This option may also be specified by configuring the macro
  @@ -832,13 +840,13 @@
   \fBrpm\fR allows the following options to be used with
   \fBhttp\fR URLs:
   .TP
  -\fB--httpproxy \fIHOST\fB\fR
  +\fB-\-httpproxy \fIHOST\fB\fR
   The host \fIHOST\fR will be used as
   a proxy server for all \fBhttp\fR transfers. This
   option may also be specified by configuring the macro
   \fB%_httpproxy\fR.
   .TP
  -\fB--httpport \fIPORT\fB\fR
  +\fB-\-httpport \fIPORT\fB\fR
   The TCP \fIPORT\fR number to use for the
   \fBhttp\fR connection on the proxy http server instead
   of the default port. This option may also be specified by configuring
  @@ -861,27 +869,27 @@
   the \fBrpm\fR command line:
   .PP
   .nf
  -rpm     exec --bp               rpmb -bp
  -rpm     exec --bc               rpmb -bc
  -rpm     exec --bi               rpmb -bi
  -rpm     exec --bl               rpmb -bl
  -rpm     exec --ba               rpmb -ba
  -rpm     exec --bb               rpmb -bb
  -rpm     exec --bs               rpmb -bs 
  -rpm     exec --tp               rpmb -tp 
  -rpm     exec --tc               rpmb -tc 
  -rpm     exec --ti               rpmb -ti 
  -rpm     exec --tl               rpmb -tl 
  -rpm     exec --ta               rpmb -ta
  -rpm     exec --tb               rpmb -tb
  -rpm     exec --ts               rpmb -ts 
  -rpm     exec --rebuild          rpmb --rebuild
  -rpm     exec --recompile        rpmb --recompile
  -rpm     exec --clean            rpmb --clean
  -rpm     exec --rmsource         rpmb --rmsource
  -rpm     exec --rmspec           rpmb --rmspec
  -rpm     exec --target           rpmb --target
  -rpm     exec --short-circuit    rpmb --short-circuit
  +rpm     exec -\-bp               rpmb \-bp
  +rpm     exec -\-bc               rpmb \-bc
  +rpm     exec -\-bi               rpmb \-bi
  +rpm     exec -\-bl               rpmb \-bl
  +rpm     exec -\-ba               rpmb \-ba
  +rpm     exec -\-bb               rpmb \-bb
  +rpm     exec -\-bs               rpmb \-bs 
  +rpm     exec -\-tp               rpmb \-tp 
  +rpm     exec -\-tc               rpmb \-tc 
  +rpm     exec -\-ti               rpmb \-ti 
  +rpm     exec -\-tl               rpmb \-tl 
  +rpm     exec -\-ta               rpmb \-ta
  +rpm     exec -\-tb               rpmb \-tb
  +rpm     exec -\-ts               rpmb \-ts 
  +rpm     exec -\-rebuild          rpmb -\-rebuild
  +rpm     exec -\-recompile        rpmb -\-recompile
  +rpm     exec -\-clean            rpmb -\-clean
  +rpm     exec -\-rmsource         rpmb -\-rmsource
  +rpm     exec -\-rmspec           rpmb -\-rmspec
  +rpm     exec -\-target           rpmb -\-target
  +rpm     exec -\-short-circuit    rpmb -\-short-circuit
   .fi
   .SH "FILES"
   .SS "rpmrc Configuration"
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to