Usage: rpm [OPTION...]
Query/Verify package selection options:
-a, --all query/verify all packages
-f, --file query/verify package(s) owning installed
file
--path query/verify package(s) owning path,
installed or not
-g, --group query/verify package(s) in group
-p, --package query/verify a package file
-q, --query rpm query mode
--triggeredby query the package(s) triggered by the
package
--whatconflicts query/verify the package(s) which
conflict with a dependency
--whatrequires query/verify the package(s) which require
a dependency
--whatobsoletes query/verify the package(s) which
obsolete a dependency
--whatprovides query/verify the package(s) which provide
a dependency
--whatrecommends query/verify the package(s) which
recommends a dependency
--whatsuggests query/verify the package(s) which
suggests a dependency
--whatsupplements query/verify the package(s) which
supplements a dependency
--whatenhances query/verify the package(s) which
enhances a dependency
--nomanifest do not process non-package files as
manifests
Query/Verify file selection options:
-c, --configfiles only include configuration files
-d, --docfiles only include documentation files
-L, --licensefiles only include license files
-A, --artifactfiles only include artifact files
--noghost exclude %%ghost files
--noconfig exclude %%config files
--noartifact exclude %%artifact files
Query options (with -q or --query):
--dump dump basic file information
-l, --list list files in package
--queryformat=QUERYFORMAT use the following query format
-s, --state display the states of the listed files
Verify options (with -V or --verify):
--nofiledigest don't verify digest of files
--nofiles don't verify files in package
--nodeps don't verify package dependencies
--noscript don't execute verify script(s)
Install/Upgrade/Erase options:
--allfiles install all files, even configurations
which might otherwise be skipped
--allmatches remove all packages which match <package>
(normally an error is generated if
<package> specified multiple packages)
--badreloc relocate files in non-relocatable package
-e, --erase=<package>+ erase (uninstall) package
--excludedocs do not install documentation
--excludepath=<path> skip files with leading component <path>
--force short hand for --replacepkgs
--replacefiles
-F, --freshen=<packagefile>+ upgrade package(s) if already installed
-h, --hash print hash marks as package installs
(good with -v)
--ignorearch don't verify package architecture
--ignoreos don't verify package operating system
--ignoresize don't check disk space before installing
--noverify short hand for --ignorepayload
--ignoresignature
-i, --install install package(s)
--justdb update the database, but do not modify
the filesystem
--nodb do not update the database, but modify
the filesystem
--nodeps do not verify package dependencies
--nofiledigest don't verify digest of files
--nocontexts don't install file security contexts
--nocaps don't install file capabilities
--noorder do not reorder package installation to
satisfy dependencies
--noscripts do not execute package scriptlet(s)
--notriggers do not execute any scriptlet(s) triggered
by this package
--oldpackage upgrade to an old version of the package
(--force on upgrades does this
automatically)
--percent print percentages as package installs
--prefix=<dir> relocate the package to <dir>, if
relocatable
--relocate=<old>=<new> relocate files from path <old> to <new>
--replacefiles ignore file conflicts between packages
--replacepkgs reinstall if the package is already
present
--test don't install, but tell if it would work
or not
-U, --upgrade=<packagefile>+ upgrade package(s)
--reinstall=<packagefile>+ reinstall package(s)
--restore=<packagefile>+ restore package(s)
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:
--scripts list install/erase scriptlets from
package(s)
--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)
--info list descriptive information from
package(s)
--changelog list change logs for this package
--changes list changes for this package with full
time stamps
--xml list metadata in xml
--json list metadata in JSON
--triggers list trigger scriptlets from package(s)
--filetriggers list filetrigger scriptlets from
package(s)
--last list package(s) by install time, most
recent first
--dupes list duplicated packages
--filesbypkg list all files from each package
--fileclass list file names with their classes
--filemime list file names with their mime types
--filecolor list file names with their colors
--fileprovide list file names with their provides
--filerequire list file names with requires
--filecaps list file names with their POSIX1.e
capabilities
Help options:
-?, --help Show this help message
--usage Display brief usage message
Options (120)
| Option | Description | Source |
|---|---|---|
-a, --all SELECTOR | Query all installed packages. | help + man |
-f, --file FILE | query/verify package(s) owning installed file | help + man |
--path PATH | Query package(s) owning PATH, whether the file is installed or not. | help + man |
-g, --group GROUP | Query packages with the group of GROUP. | help + man |
-p, --package PACKAGE_FILE | Query an (uninstalled) package PACKAGE_FILE. | help + man |
-q, --query | rpm query mode | help |
--triggeredby PACKAGE_NAME | Query packages that are triggered by package(s) PACKAGE_NAME. | help + man |
--whatconflicts CAPABILITY | query/verify the package(s) which conflict with a dependency | help + man |
--whatrequires CAPABILITY | Query all packages that require CAPABILITY for proper functioning. | help + man |
--whatobsoletes CAPABILITY | Query all packages that obsolete CAPABILITY for proper functioning. | help + man |
--whatprovides CAPABILITY | Query all packages that provide the CAPABILITY capability. | help + man |
--whatrecommends CAPABILITY | query/verify the package(s) which recommends a dependency | help + man |
--whatsuggests CAPABILITY | query/verify the package(s) which suggests a dependency | help + man |
--whatsupplements CAPABILITY | query/verify the package(s) which supplements a dependency | help + man |
--whatenhances CAPABILITY | query/verify the package(s) which enhances a dependency | help + man |
--nomanifest | Don't process non-package files as rpm-manifest(5) files. | help + man |
-c, --configfiles | Only include configuration files (implies -l). | help + man |
-d, --docfiles | Only include documentation files (implies -l). | help + man |
-L, --licensefiles | Only include license files (implies -l). | help + man |
-A, --artifactfiles | Only include artifact files (implies -l). | help + man |
--noghost | exclude %%ghost files | help + man |
--noconfig | exclude %%config files | help + man |
--noartifact | exclude %%artifact files | help + man |
--dump | Dump file information as follows (implies -l): | help + man |
-l, --list | List files in package. | help + man |
--queryformat, --qf QUERYFORMAT | Output format of each queried package, as described by rpm-queryformat(7). | help + man |
-s, --state | Display the states of files in the package (implies -l). | help + man |
--nofiledigest | don't verify digest of files | help |
--nofiles | Don't verify any attributes of package files. | help + man |
--nodeps | Don't check dependencies before uninstalling the packages. | help + man |
--noscript | don't execute verify script(s) | help |
--allfiles | Installs or upgrades all the missingok files in the package, regardless if they exist. | help + man |
--allmatches | remove all packages which match <package> (normally an error is generated if <package> specified multiple packages) | help + man |
--badreloc | Used with --relocate, permit relocations on all file paths, not just those OLDPATH's included in the binary package relocation hint(s). | help + man |
-e, --erase package>+ | erase (uninstall) package | help |
--excludedocs | Don't install any files which are marked as documentation (which includes man pages and texinfo documents). | help + man |
--excludepath path | Don't install files whose name begins with OLDPATH. | help + man |
--force | Same as using --replacepkgs, --replacefiles, and --oldpackage. | help + man |
-F, --freshen packagefile>+ | upgrade package(s) if already installed | help |
-h, --hash | Print 50 hash marks as the package archive is unpacked. | help + man |
--ignorearch | Allow installation or upgrading even if the architectures of the binary package and host don't match. | help + man |
--ignoreos | Allow installation or upgrading even if the operating systems of the binary package and host don't match. | help + man |
--ignoresize | Don't check mount filesystems for sufficient disk space before installing this package. | help + man |
--noverify | Don't perform verify package files prior to installation. | help + man |
-i, --install | Display package information, including name, version, and description. | help + man |
--justdb | update the database, but do not modify the filesystem | help + man |
--nodb | do not update the database, but modify the filesystem | help + man |
--nocontexts | Don't set SELinux contexts for files and scriptlets. | help + man |
--nocaps | don't install file capabilities | help + man |
--noorder | do not reorder package installation to satisfy dependencies | help + man |
--noscripts | Disables execution of package scriptlets. | help + man |
--notriggers | do not execute any scriptlet(s) triggered by this package | help + man |
--oldpackage | upgrade to an old version of the package (--force on upgrades does this automatically) | help + man |
--percent | Print percentages as files are unpacked from the package archive. | help + man |
--prefix dir | For relocatable binary packages, translate all file paths that start with the installation prefix in the package relocation hint(s) to NEWPATH. | help + man |
--relocate old>=<new | For relocatable binary packages, translate all file paths that start with OLDPATH in the package relocation hint(s) to NEWPATH. | help + man |
--replacefiles | Install the packages even if they replace files from other, already installed, packages. | help + man |
--replacepkgs | Install the packages even if some of them are already installed on this system. | help + man |
--test | Don't really execute anything, just go through the motions. | help + man |
-U, --upgrade packagefile>+ | upgrade package(s) | help |
--reinstall packagefile>+ | reinstall package(s) | help |
--restore packagefile>+ | restore package(s) | help |
-D, --define 'MACRO | define MACRO with value EXPR | help |
--undefine MACRO | undefine MACRO | help |
-E, --eval 'EXPR' | print macro expansion of EXPR | help |
--target CPU-VENDOR-OS | Specify target platform | help |
--macros FILE:... | read <FILE:...> instead of default file(s) | help |
--load FILE | load a single macro file | help |
--noplugins | Do not load and execute plugins. | help + man |
--nodigest | Don't verify package or header digests when reading. | help + man |
--nosignature | Don't verify package or header signatures when reading. | help + man |
--rcfile FILE:... | read <FILE:...> instead of default file(s) | help |
-r, --root ROOT | use ROOT as top level directory (default: "/") | help |
--dbpath DIRECTORY | use database in DIRECTORY | help |
--querytags | display known query tags | help |
--showrc | display final rpmrc and macro configuration | help |
--quiet | provide less detailed output | help |
-v, --verbose | provide more detailed output | help |
--version | print the version of rpm being used | help |
--scripts | List the package specific scriptlet(s) that are used as part of the installation and uninstallation processes. | help + man |
--conflicts | List capabilities this package conflicts with. | help + man |
--obsoletes | list other packages removed by installing this package | help + man |
--provides | list capabilities that this package provides | help + man |
--requires, -R | List capabilities on which this package depends. | help + man |
--recommends | List capabilities recommended by package(s). | help + man |
--suggests | List capabilities suggested by package(s). | help + man |
--supplements | List capabilities supplemented by package(s). | help + man |
--enhances | List capabilities enhanced by package(s). | help + man |
--info | list descriptive information from package(s) | help |
--changelog | Display change information for the package. | help + man |
--changes | Display change information for the package with full timestamps. | help + man |
--xml | Format package headers as XML. | help + man |
--json | list metadata in JSON | help |
--triggers, --triggerscripts | Display the trigger scripts, if any, which are contained in the package. | help + man |
--filetriggers | List filetrigger scriptlets from package(s). | help + man |
--last | Orders the package listing by install time such that the latest packages are at the top. | help + man |
--dupes | List duplicated packages. | help + man |
--filesbypkg | List all the files in each selected package. | help + man |
--fileclass | List filenames with their classes (libmagic classification). | help + man |
--filemime | list file names with their mime types | help |
--filecolor | List filenames with their colors (0 for noarch, 1 for 32bit, 2 for 64 bit). | help + man |
--fileprovide | list file names with their provides | help + man |
--filerequire | List filenames with their requires. | help + man |
--filecaps | list file names with their POSIX1.e capabilities | help + man |
-?, --help | Show this help message | help |
--usage | Display brief usage message | help |
--excludeartifacts | Don't install any files which are marked as artifacts, such as build-id links. (in the manual page but not in --help) | man |
--excludeconfigs, --noconfigs | Do not install configuration files. (in the manual page but not in --help) | man |
--includedocs | Install documentation files. (in the manual page but not in --help) | man |
--nosysusers | Don't create rpm-sysusers(7) from packages (in the manual page but not in --help) | man |
--deploops | Print dependency loops as warnings. (in the manual page but not in --help) | man |
--nopre --nopost | (in the manual page but not in --help) | man |
--notriggerprein --notriggerin | (in the manual page but not in --help) | man |
--notriggerin --notriggerun | Disable execution of the trigger scriptlets of the named type. (in the manual page but not in --help) | man |
--noglob | Do not glob arguments when installing package files. (in the manual page but not in --help) | man |
--querybynumber HDRNUM | Query the HDRNUM database entry directly; (in the manual page but not in --help) | man |
--specfile SPECFILE | Obsolete, use rpmspec(1) instead. (in the manual page but not in --help) | man |
--tid TID | Query package(s) that have a given TID transaction identifier. (in the manual page but not in --help) | man |
--nolinkto --nofiledigest | Don't verify the corresponding file attribute. (in the manual page but not in --help) | man |
--nouser --nogroup | Don't verify file user/group ownership. (in the manual page but not in --help) | man |