head 1.1; branch 1.1.1; access ; symbols MAXIMUM_RPM_1_0:1.1.1.1 VENDOR:1.1.1; locks ; strict; comment @# @; 1.1 date 2001.08.28.12.07.09; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.08.28.12.07.09; author rse; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ C. Concise RPM Command Reference Subsections

   
C. Concise RPM Command Reference

   
C.1 Global Options

The following options can be used in any of RPM's modes:

   
C.2 Informational Options

The following options are used to display information about RPM:

Format: rpm <option>

   
C.3 Query Mode

RPM's query mode is used to display information about packages:

Format: rpm - -query <options>
or
Format: rpm -q <options>

C.3.1 Package Specification Options To Query Mode

No more than one of the following options may be present in every query command. They are used to select the source of the information to be displayed.

C.3.2 Information Selection Options To Query Mode

One or more of the following options may be added to any query command. They are used to select what information RPM will display. If no information selection option is present on the command line, RPM will simply display the applicable package label(s):

 

   
C.4 Verify Mode

RPM's verification mode is used to ensure that a package is still installed properly:

Format: rpm - -verify <options>
or
Format: rpm -V <options>
or
Format: rpm -y <options>

C.4.1 Options To Verify Mode

The following options can be used on any verify command:

 

   
C.5 Install Mode

RPM's installation mode is used to install packages:

Format: rpm - -install <packagefile>
or
Format: rpm -i <packagefile>

C.5.1 Options To Install Mode

The following options can be used on any install command:

 

   
C.6 Upgrade Mode

RPM's upgrade mode is used to upgrade packages:

Format: rpm - -upgrade <packagefile>
or
Format: rpm -U <packagefile>

C.6.1 Options To Upgrade Mode

The following options can be used on any upgrade command:

 

   
C.7 Erase Mode

RPM's erase mode is used to erase previously installed packages:

Format: rpm - -erase <package>
or
Format: rpm -e <package>

C.7.1 Options To Erase Mode

The following options can be used on any erase command:

 

   
C.8 Build Mode

RPM's build mode is used to build packages:

Format: rpm -b<stage> <options> <specfile>

(Note that -vv is the default for all build mode commands.)

C.8.1 Build Mode Stages

One of the following stages must follow the -b option:

C.8.2 Options To Build Mode

The following options can be used on any build command:

 

   
C.9 Rebuild Mode

RPM's rebuild mode is used to rebuild packages from a source package file. The source archives, patches, and icons that comprise the source package are removed after the binary package is built. Rebuild mode implies - -clean.

Format: rpm - -rebuild <options> <source-package>

(Note that -vv is the default for all rebuild mode commands.)

C.9.1 Options To Rebuild Mode

Only the global options may be used.  

   
C.10 Recompile Mode

RPM's recompile mode is used to recompile software from a source package file. Unlike - -rebuild, no binary package is created.

Format: rpm - -recompile <options> <source-package>

(Note that -vv is the default for all recompile mode commands.)

C.10.1 Options To Recompile Mode

Only the global options may be used.  

   
C.11 Resign Mode

RPM's resign mode is used to replace a package's signature with a new one:

Format: rpm - -resign <options> <packagefile>+

C.11.1 Options To Resign Mode

Only the global options may be used.  

   
C.12 Add Signature Mode

RPM's add signature mode is used to add a signature to a package:

Format: rpm - -addsign <options> <packagefile>+

C.12.1 Options To Add Signature Mode

Only the global options may be used.  

   
C.13 Check Signature Mode

RPM's check signature mode is used to verify a package's signature:

Format: rpm - -checksig <options> <packagefile>+
or
Format: rpm -K <options> <packagefile>+

C.13.1 Options To Check Signature Mode

The following option can be used on any check signature command:

 

   
C.14 Initalize Database Mode

RPM's initalize database mode is used to create a new RPM database:

Format: rpm - -initdb <options>

C.14.1 Options to Initalize database Mode

Only the global options may be used.  

   
C.15 Rebuild Database Mode

RPM's rebuild database mode is used to rebuild an RPM database:

Format: rpm - -rebuilddb <options>

C.15.1 Options to Rebuild Database Mode

Only the global options may be used.   



Ralf S. Engelschall 2000-12-15
@ 1.1.1.1 log @Import book 'Maximum RPM' by Ed Bailey, version 1.0 @ text @@