OS Manuals

/usr/bin/rpmspec

Redhat Package Management utilities (RPM)

From rpm 6.1.0-r2 (os), captured 2026-11-05 by running rpmspec --help (exit 0). permalink

Usage: rpmspec [OPTION...]

Spec options:
  -P, --parse                       parse spec file(s) to stdout
  -q, --query                       query spec file(s)
      --shell                       interactive macro shell
      --rpms                        operate on binary rpms generated by spec
                                    (default)
      --builtrpms                   operate on binary package header(s) that
                                    would be built from spec
      --srpm                        operate on source package header generated
                                    by spec
      --queryformat=QUERYFORMAT     use the following query format

Common options for all rpm modes and executables:
  -D, --define='MACRO EXPR'         define MACRO with value EXPR
      --undefine=MACRO              undefine MACRO
  -E, --eval='EXPR'                 print macro expansion of EXPR
      --target=CPU-VENDOR-OS        Specify target platform
      --macros=<FILE:...>           read <FILE:...> instead of default file(s)
      --load=<FILE>                 load a single macro file
      --noplugins                   don't enable any plugins
      --nodigest                    don't verify package digest(s)
      --nosignature                 don't verify package signature(s)
      --rcfile=<FILE:...>           read <FILE:...> instead of default file(s)
  -r, --root=ROOT                   use ROOT as top level directory (default:
                                    "/")
      --dbpath=DIRECTORY            use database in DIRECTORY
      --querytags                   display known query tags
      --showrc                      display final rpmrc and macro configuration
      --quiet                       provide less detailed output
  -v, --verbose                     provide more detailed output
      --version                     print the version of rpm being used

Options implemented via popt alias/exec:
      --conflicts                   list capabilities this package conflicts
                                    with
      --obsoletes                   list other packages removed by installing
                                    this package
      --provides                    list capabilities that this package
                                    provides
      --requires                    list capabilities required by package(s)
      --recommends                  list capabilities recommended by package(s)
      --suggests                    list capabilities suggested by package(s)
      --supplements                 list capabilities supplemented by
                                    package(s)
      --enhances                    list capabilities enhanced by package(s)
      --buildconflicts              list capabilities conflicting with build
                                    of this package
      --buildrequires               list capabilities required to build this
                                    package
      --with=<option>               enable configure <option> for build
      --without=<option>            disable configure <option> for build
      --scm=<scm>                   shortcut for '--define="__scm <scm>"'
      --buildpolicy=<policy>        set buildroot <policy> (e.g. compress man
                                    pages)
      --trace                       trace macro expansion
      --nodebuginfo                 do not generate debuginfo for this package

Help options:
  -?, --help                        Show this help message
      --usage                       Display brief usage message
Options (42)
OptionDescriptionSource
-P, --parseparse spec file(s) to stdouthelp
-q, --queryquery spec file(s)help
--shellinteractive macro shellhelp
--rpmsOperate on the all binary package headers generated from spec.help + man
--builtrpmsOperate only on the binary package headers of packages which would be built from spec.help + man
--srpmOperate on the source package header(s) generated from spec.help + man
--queryformat, --qf QUERYFORMATSpecify output format for spec queries.help + man
-D, --define 'MACROdefine MACRO with value EXPRhelp
--undefine MACROundefine MACROhelp
-E, --eval 'EXPR'print macro expansion of EXPRhelp
--target CPU-VENDOR-OSSpecify target platformhelp
--macros FILE:...read <FILE:...> instead of default file(s)help
--load FILEload a single macro filehelp
--nopluginsdon't enable any pluginshelp
--nodigestdon't verify package digest(s)help
--nosignaturedon't verify package signature(s)help
--rcfile FILE:...read <FILE:...> instead of default file(s)help
-r, --root ROOTuse ROOT as top level directory (default: "/")help
--dbpath DIRECTORYuse database in DIRECTORYhelp
--querytagsdisplay known query tagshelp
--showrcdisplay final rpmrc and macro configurationhelp
--quietprovide less detailed outputhelp
-v, --verboseprovide more detailed outputhelp
--versionprint the version of rpm being usedhelp
--conflictslist capabilities this package conflicts withhelp
--obsoleteslist other packages removed by installing this packagehelp
--provideslist capabilities that this package provideshelp
--requireslist capabilities required by package(s)help
--recommendslist capabilities recommended by package(s)help
--suggestslist capabilities suggested by package(s)help
--supplementslist capabilities supplemented by package(s)help
--enhanceslist capabilities enhanced by package(s)help
--buildconflictslist capabilities conflicting with build of this packagehelp
--buildrequireslist capabilities required to build this packagehelp
--with optionenable configure <option> for buildhelp
--without optiondisable configure <option> for buildhelp
--scm scmshortcut for '--define="__scm <scm>"'help
--buildpolicy policyset buildroot <policy> (e.g. compress man pages)help
--tracetrace macro expansionhelp
--nodebuginfodo not generate debuginfo for this packagehelp
-?, --helpShow this help messagehelp
--usageDisplay brief usage messagehelp
Examples (6) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.