.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "RPM" "8" "09 June 2002" "" "" .hy .SH NAME .PP rpm - RPM Package Manager .SH SYNOPSIS .SS QUERYING AND VERIFYING PACKAGES: .PP \f[B]rpm\f[R] {\f[B]-q|--query\f[R]} [\f[B]select-options\f[R]] [\f[B]query-options\f[R]] .PP \f[B]rpm\f[R] \f[B]--querytags\f[R] .PP \f[B]rpm\f[R] {\f[B]-V|--verify\f[R]} [\f[B]select-options\f[R]] [\f[B]verify-options\f[R]] .SS INSTALLING, UPGRADING, AND REMOVING PACKAGES: .PP \f[B]rpm\f[R] {\f[B]-i|--install\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .PP \f[B]rpm\f[R] {\f[B]-U|--upgrade\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .PP \f[B]rpm\f[R] {\f[B]-F|--freshen\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .PP \f[B]rpm\f[R] {\f[B]--reinstall\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .PP \f[B]rpm\f[R] {\f[B]-e|--erase\f[R]} [\f[B]--allmatches\f[R]] [\f[B]--justdb\f[R]] [\f[B]--nodb\f[R]] [\f[B]--nodeps\f[R]] [\f[B]--noscripts\f[R]] [\f[B]--notriggers\f[R]] [\f[B]--test\f[R]] \f[I]PACKAGE_NAME ...\f[R] .SS MISCELLANEOUS: .PP \f[B]rpm\f[R] \f[B]--showrc\f[R] .PP \f[B]rpm\f[R] \f[B]--restore\f[R] [\f[B]select-options\f[R]] .SS select-options .PP [\f[I]PACKAGE_NAME\f[R]] [\f[B]-a,--all [\f[R]\f[I]SELECTOR\f[R]]] [\f[B]-f,--file \f[R]\f[I]FILE\f[R]] [\f[B]--path \f[R]\f[I]PATH\f[R]] [\f[B]-g,--group \f[R]\f[I]GROUP\f[R]] [\f[B]-p,--package \f[R]\f[I]PACKAGE_FILE\f[R]] [\f[B]--hdrid \f[R]\f[I]SHA1\f[R]] [\f[B]--pkgid \f[R]\f[I]MD5\f[R]] [\f[B]--tid \f[R]\f[I]TID\f[R]] [\f[B]--querybynumber \f[R]\f[I]HDRNUM\f[R]] [\f[B]--triggeredby \f[R]\f[I]PACKAGE_NAME\f[R]] [\f[B]--whatprovides \f[R]\f[I]CAPABILITY\f[R]] [\f[B]--whatrequires \f[R]\f[I]CAPABILITY\f[R]] [\f[B]--whatrecommends \f[R]\f[I]CAPABILITY\f[R]] [\f[B]--whatsuggests \f[R]\f[I]CAPABILITY\f[R]] [\f[B]--whatsupplements \f[R]\f[I]CAPABILITY\f[R]] [\f[B]--whatenhances \f[R]\f[I]CAPABILITY\f[R]] [\f[B]--whatobsoletes \f[R]\f[I]CAPABILITY\f[R]] [\f[B]--whatconflicts \f[R]\f[I]CAPABILITY\f[R]] .SS query-options .PP General: [\f[B]--changelog\f[R]] [\f[B]--changes\f[R]] [\f[B]--dupes\f[R]] [\f[B]-i,--info\f[R]] [\f[B]--last\f[R]] [\f[B]--qf,--queryformat \f[R]\f[I]QUERYFMT\f[R]] [\f[B]--xml\f[R]] .PP Dependencies: [\f[B]--conflicts\f[R]] [\f[B]--enhances\f[R]] [\f[B]--obsoletes\f[R]] [\f[B]--provides\f[R]] [\f[B]--recommends\f[R]] [\f[B]-R,--requires\f[R]] [\f[B]--suggests\f[R]] [\f[B]--supplements\f[R]] .PP Files: [\f[B]-c,--configfiles\f[R]] [\f[B]-d,--docfiles\f[R]] [\f[B]--dump\f[R]] [\f[B]--fileclass\f[R]] [\f[B]--filecolor\f[R]] [\f[B]--fileprovide\f[R]][\f[B]--filerequire\f[R]] [\f[B]--filecaps\f[R]] [\f[B]--filesbypkg\f[R]] [\f[B]-l,--list\f[R]] [\f[B]-s,--state\f[R]] [\f[B]--noartifact\f[R]] [\f[B]--noghost\f[R]] [\f[B]--noconfig\f[R]] .PP Scripts and triggers: [\f[B]--filetriggers\f[R]] [\f[B]--scripts\f[R]] [\f[B]--triggers,--triggerscripts\f[R]] .SS verify-options .PP [\f[B]--nodeps\f[R]] [\f[B]--nofiles\f[R]] [\f[B]--noscripts\f[R]] [\f[B]--nodigest\f[R]] [\f[B]--nosignature\f[R]] [\f[B]--nolinkto\f[R]] [\f[B]--nofiledigest\f[R]] [\f[B]--nosize\f[R]] [\f[B]--nouser\f[R]] [\f[B]--nogroup\f[R]] [\f[B]--nomtime\f[R]] [\f[B]--nomode\f[R]] [\f[B]--nordev\f[R]] [\f[B]--nocaps\f[R]] .SS install-options .PP [\f[B]--allfiles\f[R]] [\f[B]--badreloc\f[R]] [\f[B]--excludepath \f[R]\f[I]OLDPATH\f[R]] [\f[B]--excludedocs\f[R]] [\f[B]--force\f[R]] [\f[B]-h,--hash\f[R]] [\f[B]--ignoresize\f[R]] [\f[B]--ignorearch\f[R]] [\f[B]--ignoreos\f[R]] [\f[B]--includedocs\f[R]] [\f[B]--justdb\f[R]] [\f[B]\[en]nodb\f[R]] [\f[B]--nodeps\f[R]] [\f[B]--nodigest\f[R]] [\f[B]--noplugins\f[R]] [\f[B]--nocaps\f[R]] [\f[B]--noorder\f[R]] [\f[B]--noverify\f[R]] [\f[B]--nosignature\f[R]] [\f[B]--noscripts\f[R]] [\f[B]--notriggers\f[R]] [\f[B]--oldpackage\f[R]] [\f[B]--percent\f[R]] [\f[B]--prefix \f[R]\f[I]NEWPATH\f[R]] [\f[B]--relocate \f[R]\f[I]OLDPATH\f[R]\f[B]=\f[R]\f[I]NEWPATH\f[R]] [\f[B]--replacefiles\f[R]] [\f[B]--replacepkgs\f[R]] [\f[B]--test\f[R]] .SH DESCRIPTION .PP \f[B]rpm\f[R] is a powerful \f[B]Package Manager\f[R], which can be used to build, install, query, verify, update, and erase individual software packages. A \f[B]package\f[R] consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. \f[B]Packages\f[R] come in two varieties: binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages. .PP One of the following basic modes must be selected: \f[B]Query\f[R], \f[B]Verify\f[R], \f[B]Install/Upgrade/Freshen/Reinstall\f[R], \f[B]Uninstall\f[R], \f[B]Set Owners/Groups\f[R], \f[B]Show Querytags\f[R], and \f[B]Show Configuration\f[R]. .SS GENERAL OPTIONS .PP These options can be used in all the different modes. .TP \f[B]-?, --help\f[R] Print a longer usage message than normal. .TP \f[B]--version\f[R] Print a single line containing the version number of \f[B]rpm\f[R] being used. .TP \f[B]--quiet\f[R] Print as little as possible - normally only error messages will be displayed. .TP \f[B]-v, --verbose\f[R] Print verbose information - normally routine progress messages will be displayed. .TP \f[B]-vv\f[R] Print lots of ugly debugging information. .TP \f[B]--rcfile \f[R]\f[I]FILELIST\f[R] Replace the list of configuration files to be read. Each of the files in the colon separated \f[I]FILELIST\f[R] is read sequentially by \f[B]rpm\f[R] for configuration information. Only the first file in the list must exist, and tildes will be expanded to the value of \f[B]$HOME\f[R]. The default \f[I]FILELIST\f[R] is \f[I]/usr/lib/rpm/rpmrc\f[R]:\f[I]/usr/lib/rpm/redhat/rpmrc\f[R]:\f[I]/etc/rpmrc\f[R]:\f[I]\[ti]/.rpmrc\f[R]. .TP \f[B]--load \f[R]\f[I]FILE\f[R] Load an individual macro file. .TP \f[B]--macros \f[R]\f[I]FILELIST\f[R] Replace the list of macro files to be loaded. Each of the files in the colon separated \f[I]FILELIST\f[R] is read sequentially by \f[B]rpm\f[R] for macro definitions. Only the first file in the list must exist, and tildes will be expanded to the value of \f[B]$HOME\f[R]. The default \f[I]FILELIST\f[R] is \f[I]/usr/lib/rpm/macros\f[R]:\f[I]/usr/lib/rpm/macros.d/macros.*\f[R]:\f[I]/usr/lib/rpm/platform/%{_target}/macros\f[R]:\f[I]/usr/lib/rpm/fileattrs/*.attr\f[R]:\f[I]/usr/lib/rpm/redhat/macros\f[R]:\f[I]/etc/rpm/macros.*\f[R]:\f[I]/etc/rpm/macros\f[R]:\f[I]/etc/rpm/%{_target}/macros\f[R]:\f[I]\[ti]/.rpmmacros\f[R] .TP \f[B]--pipe \f[R]\f[I]CMD\f[R] Pipes the output of \f[B]rpm\f[R] to the command \f[I]CMD\f[R]. .TP \f[B]--dbpath \f[R]\f[I]DIRECTORY\f[R] Use the database in \f[I]DIRECTORY\f[R] rather than the default path \f[I]/var/lib/rpm\f[R] .TP \f[B]--root \f[R]\f[I]DIRECTORY\f[R] Use the file system tree rooted at \f[I]DIRECTORY\f[R] for all operations. Note that this means the database within \f[I]DIRECTORY\f[R] will be used for dependency checks and any scriptlet(s) (e.g.\ \f[B]%post\f[R] if installing, or \f[B]%prep\f[R] if building, a package) will be run after a chroot(2) to \f[I]DIRECTORY\f[R]. .RS .PP Note that rpm assumes the environment inside the root is set up by the caller, such as any mounts needed for the operation inside the root directory. .RE .TP \f[B]-D, --define=\[aq]\f[R]\f[I]MACRO EXPR\f[R]\f[B]\[aq]\f[R] Defines \f[I]MACRO\f[R] with value \f[I]EXPR\f[R]. .TP \f[B]--undefine=\[aq]\f[R]\f[I]MACRO\f[R]\f[B]\[aq]\f[R] Undefines \f[I]MACRO\f[R]. .TP \f[B]-E, --eval=\[aq]\f[R]\f[I]EXPR\f[R]\f[B]\[aq]\f[R] Prints macro expansion of \f[I]EXPR\f[R]. .PP More - less often needed - options can be found on the \f[B]rpm-misc(8)\f[R] man page. .SS INSTALL AND UPGRADE OPTIONS .PP In these options, \f[I]PACKAGE_FILE\f[R] can be either \f[B]rpm\f[R] binary file or ASCII package manifest (see \f[B]PACKAGE SELECTION OPTIONS\f[R]), and may be specified as an \f[B]ftp\f[R] or \f[B]http\f[R] URL, in which case the package will be downloaded before being installed. See \f[B]FTP/HTTP OPTIONS\f[R] for information on \f[B]rpm\f[R]\[aq]s \f[B]ftp\f[R] and \f[B]http\f[R] client support. .PP The general form of an rpm install command is .PP \f[B]rpm\f[R] {\f[B]-i|--install\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .PP This installs a new package. .PP The general form of an rpm upgrade command is .PP \f[B]rpm\f[R] {\f[B]-U|--upgrade\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .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 \f[B]rpm\f[R] {\f[B]-F|--freshen\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .PP This will upgrade packages, but only ones for which an earlier version is installed. .PP The general form of an rpm reinstall command is .PP \f[B]rpm\f[R] {\f[B]--reinstall\f[R]} [\f[B]install-options\f[R]] \f[I]PACKAGE_FILE ...\f[R] .PP This reinstalls a previously installed package. .TP \f[B]--allfiles\f[R] Installs or upgrades all the missingok files in the package, regardless if they exist. .TP \f[B]--badreloc\f[R] Used with \f[B]--relocate\f[R], permit relocations on all file paths, not just those \f[I]OLDPATH\f[R]\[aq]s included in the binary package relocation hint(s). .TP \f[B]--excludepath \f[R]\f[I]OLDPATH\f[R] Don\[aq]t install files whose name begins with \f[I]OLDPATH\f[R]. .TP \f[B]--excludeartifacts\f[R] Don\[aq]t install any files which are marked as artifacts, such as build-id links. .TP \f[B]--excludedocs\f[R] Don\[aq]t install any files which are marked as documentation (which includes man pages and texinfo documents). .TP \f[B]--force\f[R] Same as using \f[B]--replacepkgs\f[R], \f[B]--replacefiles\f[R], and \f[B]--oldpackage\f[R]. .TP \f[B]-h, --hash\f[R] Print 50 hash marks as the package archive is unpacked. Use with \f[B]-v|--verbose\f[R] for a nicer display. .TP \f[B]--ignoresize\f[R] Don\[aq]t check mount file systems for sufficient disk space before installing this package. .TP \f[B]--ignorearch\f[R] Allow installation or upgrading even if the architectures of the binary package and host don\[aq]t match. .TP \f[B]--ignoreos\f[R] Allow installation or upgrading even if the operating systems of the binary package and host don\[aq]t match. .TP \f[B]--includedocs\f[R] Install documentation files. This is the default behavior. .TP \f[B]--justdb\f[R] Update only the database, not the filesystem. .TP \f[B]--nodb\f[R] Update only the filesystem, not the database. .TP \f[B]--nodigest\f[R] Don\[aq]t verify package or header digests when reading. .TP \f[B]--nomanifest\f[R] Don\[aq]t process non-package files as manifests. .TP \f[B]--nosignature\f[R] Don\[aq]t verify package or header signatures when reading. .TP \f[B]--nodeps\f[R] Don\[aq]t do a dependency check before installing or upgrading a package. .TP \f[B]--nocaps\f[R] Don\[aq]t set file capabilities. .TP \f[B]--noorder\f[R] Don\[aq]t reorder the packages for an install. The list of packages would normally be reordered to satisfy dependencies. .TP \f[B]--noverify\f[R] Don\[aq]t perform verify package files prior to installation. .TP \f[B]--noplugins\f[R] Do not load and execute plugins. .TP \f[B]--noscripts\f[R], \f[B]--nopre\f[R], \f[B]--nopost\f[R], \f[B]--nopreun\f[R], \f[B]--nopostun\f[R], \f[B]--nopretrans\f[R], \f[B]--noposttrans\f[R] Don\[aq]t execute the scriptlet of the same name. The \f[B]--noscripts\f[R] option is equivalent to .PP \f[B]--nopre\f[R] \f[B]--nopost\f[R] \f[B]--nopreun\f[R] \f[B]--nopostun\f[R] \f[B]--nopretrans\f[R] \f[B]--noposttrans\f[R] .PP and turns off the execution of the corresponding \f[B]%pre\f[R], \f[B]%post\f[R], \f[B]%preun\f[R], \f[B]%postun\f[R] \f[B]%pretrans\f[R], and \f[B]%posttrans\f[R] scriptlet(s). .TP \f[B]--notriggers\f[R], \f[B]--notriggerin\f[R], \f[B]--notriggerun\f[R], \f[B]--notriggerprein\f[R], \f[B]--notriggerpostun\f[R] Don\[aq]t execute any trigger scriptlet of the named type. The \f[B]--notriggers\f[R] option is equivalent to .PP \f[B]--notriggerprein\f[R] \f[B]--notriggerin\f[R] \f[B]--notriggerun\f[R] \f[B]--notriggerpostun\f[R] .PP and turns off execution of the corresponding \f[B]%triggerprein\f[R], \f[B]%triggerin\f[R], \f[B]%triggerun\f[R], and \f[B]%triggerpostun\f[R] scriptlet(s). .TP \f[B]--oldpackage\f[R] Allow an upgrade to replace a newer package with an older one. .TP \f[B]--percent\f[R] Print percentages as files are unpacked from the package archive. This is intended to make \f[B]rpm\f[R] easy to run from other tools. .TP \f[B]--prefix \f[R]\f[I]NEWPATH\f[R] For relocatable binary packages, translate all file paths that start with the installation prefix in the package relocation hint(s) to \f[I]NEWPATH\f[R]. .TP \f[B]--relocate \f[R]\f[I]OLDPATH\f[R]\f[B]=\f[R]\f[I]NEWPATH\f[R] For relocatable binary packages, translate all file paths that start with \f[I]OLDPATH\f[R] in the package relocation hint(s) to \f[I]NEWPATH\f[R]. This option can be used repeatedly if several \f[I]OLDPATH\f[R]\[aq]s in the package are to be relocated. .TP \f[B]--replacefiles\f[R] Install the packages even if they replace files from other, already installed, packages. .TP \f[B]--replacepkgs\f[R] Install the packages even if some of them are already installed on this system. .TP \f[B]--test\f[R] 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 \f[B]rpm\f[R] {\f[B]-e|--erase\f[R]} [\f[B]--allmatches\f[R]] [\f[B]--justdb] [--nodeps\f[R]] [\f[B]--noscripts\f[R]] [\f[B]--notriggers\f[R]] [\f[B]--test\f[R]] \f[I]PACKAGE_NAME ...\f[R] .PP The following options may also be used: .TP \f[B]--allmatches\f[R] Remove all versions of the package which match \f[I]PACKAGE_NAME\f[R]. Normally an error is issued if \f[I]PACKAGE_NAME\f[R] matches multiple packages. .TP \f[B]--justdb\f[R] Update only the database, not the filesystem. .TP \f[B]--nodeps\f[R] Don\[aq]t check dependencies before uninstalling the packages. .TP \f[B]--noscripts\f[R], \f[B]--nopreun\f[R], \f[B]--nopostun\f[R] Don\[aq]t execute the scriptlet of the same name. The \f[B]--noscripts\f[R] option during package erase is equivalent to .PP \f[B]--nopreun\f[R] \f[B]--nopostun\f[R] .PP and turns off the execution of the corresponding \f[B]%preun\f[R], and \f[B]%postun\f[R] scriptlet(s). .TP \f[B]--notriggers\f[R], \f[B]--notriggerun\f[R], \f[B]--notriggerpostun\f[R] Don\[aq]t execute any trigger scriptlet of the named type. The \f[B]--notriggers\f[R] option is equivalent to .PP \f[B]--notriggerun\f[R] \f[B]--notriggerpostun\f[R] .PP and turns off execution of the corresponding \f[B]%triggerun\f[R], and \f[B]%triggerpostun\f[R] scriptlet(s). .TP \f[B]--test\f[R] Don\[aq]t really uninstall anything, just go through the motions. Useful in conjunction with the \f[B]-vv\f[R] option for debugging. .SS QUERY OPTIONS .PP The general form of an rpm query command is .PP \f[B]rpm\f[R] {\f[B]-q|--query\f[R]} [\f[B]select-options\f[R]] [\f[B]query-options\f[R]] .PP You may specify the format that package information should be printed in. To do this, you use the .PP \f[B]--qf|--queryformat\f[R] \f[I]QUERYFMT\f[R] .PP option, followed by the \f[I]QUERYFMT\f[R] format string. Query formats are modified versions of the standard \f[B]printf(3)\f[R] formatting. The format is made up of static strings (which may include standard C character escapes for newlines, tabs, and other special characters (not including \[rs]0)) and \f[B]printf(3)\f[R] type formatters. As \f[B]rpm\f[R] already knows the type to print, the type specifier must be omitted however, and replaced by the name of the header tag to be printed, enclosed by \f[B]{}\f[R] characters. Tag names are case insensitive, and the leading \f[B]RPMTAG_\f[R] portion of the tag name may be omitted as well. .PP Alternate output formats may be requested by following the tag with \f[B]:\f[R]\f[I]typetag\f[R]. Currently, the following types are supported: .TP \f[B]:armor\f[R] Wrap a public key in ASCII armor. .TP \f[B]:arraysize\f[R] Display number of elements in array tags. .TP \f[B]:base64\f[R] Encode binary data using base64. .TP \f[B]:date\f[R] Use strftime(3) \[dq]%c\[dq] format. .TP \f[B]:day\f[R] Use strftime(3) \[dq]%a %b %d %Y\[dq] format. .TP \f[B]:depflags\f[R] Format dependency comparison operator. .TP \f[B]:deptype\f[R] Format dependency type. .TP \f[B]:expand\f[R] Perform macro expansion. .TP \f[B]:fflags\f[R] Format file flags. .TP \f[B]:fstate\f[R] Format file state. .TP \f[B]:fstatus\f[R] Format file verify status. .TP \f[B]:hex\f[R] Format in hexadecimal. .TP \f[B]:octal\f[R] Format in octal. .TP \f[B]:humaniec\f[R] Human readable number (in IEC 80000). The suffix K = 1024, M = 1048576, ... .TP \f[B]:humansi\f[R] Human readable number (in SI). The suffix K = 1000, M = 1000000, ... .TP \f[B]:perms\f[R] Format file permissions. .TP \f[B]:pgpsig\f[R] Display signature fingerprint and time. .TP \f[B]:shescape\f[R] Escape single quotes for use in a script. .TP \f[B]:string\f[R] Display string format. (default) .TP \f[B]:tagname\f[R] Display tag name. .TP \f[B]:tagnum\f[R] Display tag number. .TP \f[B]:triggertype\f[R] Display trigger suffix. .TP \f[B]:vflags\f[R] File verification flags. .TP \f[B]:xml\f[R] Wrap data in simple xml markup. .PP For example, to print only the names of the packages queried, you could use \f[B]%{NAME}\f[R] as the format string. To print the packages name and distribution information in two columns, you could use \f[B]%-30{NAME}%{DISTRIBUTION}\f[R]. \f[B]rpm\f[R] will print a list of all of the tags it knows about when it is invoked with the \f[B]--querytags\f[R] argument. .PP There are three subsets of options for querying: package selection, file selection and information selection. .SS PACKAGE SELECTION OPTIONS: .TP \f[I]PACKAGE_NAME\f[R] Query installed package named \f[I]PACKAGE_NAME\f[R]. To specify the package more precisely the package name may be followed by the version or version and release both separated by a dash or an architecture name separated by a dot. See the output of \f[B]rpm -qa\f[R] or \f[B]rpm -qp \f[R]\f[I]PACKAGE_FILE\f[R] as an example. .TP \f[B]-a, --all [\f[R]\f[I]SELECTOR\f[R]] Query all installed packages. .PP An optional \f[I]SELECTOR\f[R] in the form of tag=pattern can be provided to narrow the selection, for example name=\[dq]b*\[dq] to query packages whose name starts with \[dq]b\[dq]. .TP \f[B]--dupes\f[R] List duplicated packages. .TP \f[B]-f, --file \f[R]\f[I]FILE\f[R] Query package owning installed \f[I]FILE\f[R]. .TP \f[B]--filecaps\f[R] List file names with POSIX1.e capabilities. .TP \f[B]--fileclass\f[R] List file names with their classes (libmagic classification). .TP \f[B]--filecolor\f[R] List file names with their colors (0 for noarch, 1 for 32bit, 2 for 64 bit). .TP \f[B]--fileprovide\f[R] List file names with their provides. .TP \f[B]--filerequire\f[R] List file names with their requires. .TP \f[B]-g, --group \f[R]\f[I]GROUP\f[R] Query packages with the group of \f[I]GROUP\f[R]. .TP \f[B]--hdrid \f[R]\f[I]SHA1\f[R] Query package that contains a given header identifier, i.e.\ the \f[I]SHA1\f[R] digest of the immutable header region. .TP \f[B]-p, --package \f[R]\f[I]PACKAGE_FILE\f[R] Query an (uninstalled) package \f[I]PACKAGE_FILE\f[R]. The \f[I]PACKAGE_FILE\f[R] may be specified as an \f[B]ftp\f[R] or \f[B]http\f[R] style URL, in which case the package header will be downloaded and queried. See \f[B]FTP/HTTP OPTIONS\f[R] for information on \f[B]rpm\f[R]\[aq]s \f[B]ftp\f[R] and \f[B]http\f[R] client support. The \f[I]PACKAGE_FILE\f[R] argument(s), if not a binary package, will be interpreted as an ASCII package manifest unless \f[B]--nomanifest\f[R] option is used. In manifests, comments are permitted, starting with a \[aq]#\[aq], and each line of a package manifest file may include white space separated glob expressions, including URL\[aq]s, that will be expanded to paths that are substituted in place of the package manifest as additional \f[I]PACKAGE_FILE\f[R] arguments to the query. .TP \f[B]--path \f[R]\f[I]PATH\f[R] Query package(s) owning \f[I]PATH\f[R], whether the file is installed or not. Multiple packages may own a \f[I]PATH\f[R], but the file is only owned by the package installed last. .TP \f[B]--pkgid \f[R]\f[I]MD5\f[R] Query package that contains a given package identifier, i.e.\ the \f[I]MD5\f[R] digest of the combined header and payload contents. .TP \f[B]--querybynumber \f[R]\f[I]HDRNUM\f[R] Query the \f[I]HDRNUM\f[R]th database entry directly; this is useful only for debugging. .TP \f[B]--specfile \f[R]\f[I]SPECFILE\f[R] Parse and query \f[I]SPECFILE\f[R] 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 \f[B]--tid \f[R]\f[I]TID\f[R] Query package(s) that have a given \f[I]TID\f[R] 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 \f[B]--triggeredby \f[R]\f[I]PACKAGE_NAME\f[R] Query packages that are triggered by package(s) \f[I]PACKAGE_NAME\f[R]. .TP \f[B]--whatobsoletes \f[R]\f[I]CAPABILITY\f[R] Query all packages that obsolete \f[I]CAPABILITY\f[R] for proper functioning. .TP \f[B]--whatprovides \f[R]\f[I]CAPABILITY\f[R] Query all packages that provide the \f[I]CAPABILITY\f[R] capability. .TP \f[B]--whatrequires \f[R]\f[I]CAPABILITY\f[R] Query all packages that require \f[I]CAPABILITY\f[R] for proper functioning. .TP \f[B]--whatconflicts \f[R]\f[I]CAPABILITY\f[R] Query all packages that conflict with \f[I]CAPABILITY\f[R]. .TP \f[B]--whatrecommends \f[R]\f[I]CAPABILITY\f[R] Query all packages that recommend \f[I]CAPABILITY\f[R]. .TP \f[B]--whatsuggests \f[R]\f[I]CAPABILITY\f[R] Query all packages that suggest \f[I]CAPABILITY\f[R]. .TP \f[B]--whatsupplements \f[R]\f[I]CAPABILITY\f[R] Query all packages that supplement \f[I]CAPABILITY\f[R]. .TP \f[B]--whatenhances \f[R]\f[I]CAPABILITY\f[R] Query all packages that enhance \f[I]CAPABILITY\f[R]. .SS PACKAGE QUERY OPTIONS: .TP \f[B]--changelog\f[R] Display change information for the package. .TP \f[B]--changes\f[R] Display change information for the package with full time stamps. .TP \f[B]--conflicts\f[R] List capabilities this package conflicts with. .TP \f[B]--dump\f[R] Dump file information as follows (implies \f[B]-l\f[R]): .RS .IP .nf \f[C] path size mtime digest mode owner group isconfig isdoc rdev symlink \f[R] .fi .RE .TP \f[B]--enhances\f[R] List capabilities enhanced by package(s) .TP \f[B]--filesbypkg\f[R] List all the files in each selected package. .TP \f[B]--filetriggers\f[R] List filetrigger scriptlets from package(s). .TP \f[B]-i, --info\f[R] Display package information, including name, version, and description. This uses the \f[B]--queryformat\f[R] if one was specified. .TP \f[B]--last\f[R] Orders the package listing by install time such that the latest packages are at the top. .TP \f[B]-l, --list\f[R] List files in package. .TP \f[B]--obsoletes\f[R] List packages this package obsoletes. .TP \f[B]--provides\f[R] List capabilities this package provides. .TP \f[B]--recommends\f[R] List capabilities recommended by package(s) .TP \f[B]-R, --requires\f[R] List capabilities on which this package depends. .TP \f[B]--suggests\f[R] List capabilities suggested by package(s) .TP \f[B]--supplements\f[R] List capabilities supplemented by package(s) .TP \f[B]--scripts\f[R] List the package specific scriptlet(s) that are used as part of the installation and uninstallation processes. .TP \f[B]-s, --state\f[R] Display the \f[I]states\f[R] of files in the package (implies \f[B]-l\f[R]). The state of each file is one of \f[I]normal\f[R], \f[I]not installed\f[R], or \f[I]replaced\f[R]. .TP \f[B]--triggers, --triggerscripts\f[R] Display the trigger scripts, if any, which are contained in the package. \f[B]--xml\f[R] Format package headers as XML. .SS FILE SELECTION OPTIONS: .TP \f[B]-A, --artifactfiles\f[R] Only include artifact files (implies \f[B]-l\f[R]). .TP \f[B]-c, --configfiles\f[R] Only include configuration files (implies \f[B]-l\f[R]). .TP \f[B]-d, --docfiles\f[R] Only include documentation files (implies \f[B]-l\f[R]). .TP \f[B]-L, --licensefiles\f[R] Only include license files (implies \f[B]-l\f[R]). .TP \f[B]--noartifact\f[R] Exclude artifact files. .TP \f[B]--noconfig\f[R] Exclude config files. .TP \f[B]--noghost\f[R] Exclude ghost files. .SS VERIFY OPTIONS .PP The general form of an rpm verify command is .PP \f[B]rpm\f[R] {\f[B]-V|--verify\f[R]} [\f[B]select-options\f[R]] [\f[B]verify-options\f[R]] .PP Verifying a package compares information about the installed files in the package with information about the files taken from the package metadata stored in the rpm database. Among other things, verifying compares the size, digest, permissions, type, owner and group of each file. Any discrepancies are displayed. Files that were not installed from the package, for example, documentation files excluded on installation using the \[dq]\f[B]--excludedocs\f[R]\[dq] option, will be silently ignored. .PP The package and file selection options are the same as for package querying (including package manifest files as arguments). Other options unique to verify mode are: .TP \f[B]--nodeps\f[R] Don\[aq]t verify dependencies of packages. .TP \f[B]--nodigest\f[R] Don\[aq]t verify package or header digests when reading. .TP \f[B]--nofiles\f[R] Don\[aq]t verify any attributes of package files. .TP \f[B]--noscripts\f[R] Don\[aq]t execute the \f[B]%verifyscript\f[R] scriptlet (if any). .TP \f[B]--nosignature\f[R] Don\[aq]t verify package or header signatures when reading. .TP \f[B]--nolinkto\f[R] .TP \f[B]--nofiledigest\f[R] (formerly \f[B]--nomd5\f[R]) .TP \f[B]--nosize\f[R] .TP \f[B]--nouser\f[R] .TP \f[B]--nogroup\f[R] .TP \f[B]--nomtime\f[R] .TP \f[B]--nomode\f[R] .TP \f[B]--nordev\f[R] Don\[aq]t verify the corresponding file attribute. .TP \f[B]--nocaps\f[R] Don\[aq]t verify file capabilities. .PP The format of the output is a string of 9 characters, a possible attribute marker: .IP .nf \f[C] c %config configuration file. d %doc documentation file. g %ghost file (i.e. the file contents are not included in the package payload). l %license license file. r %readme readme file. \f[R] .fi .PP from the package header, followed by the file name. Each of the 9 characters denotes the result of a comparison of attribute(s) of the file to the value of those attribute(s) recorded in the database. A single \[dq]\f[B].\f[R]\[dq] (period) means the test passed, while a single \[dq]\f[B]?\f[R]\[dq] (question mark) indicates the test could not be performed (e.g.\ file permissions prevent reading). Otherwise, the (mnemonically em\f[B]B\f[R]oldened) character denotes failure of the corresponding \f[B]--verify\f[R] test: .IP .nf \f[C] S file Size differs M Mode differs (includes permissions and file type) 5 digest (formerly MD5 sum) differs D Device major/minor number mismatch L readLink(2) path mismatch U User ownership differs G Group ownership differs T mTime differs P caPabilities differ \f[R] .fi .SS MISCELLANEOUS COMMANDS .TP \f[B]rpm\f[R] \f[B]--showrc\f[R] shows the values \f[B]rpm\f[R] will use for all of the options are currently set in \f[I]rpmrc\f[R] and \f[I]macros\f[R] configuration file(s). .TP \f[B]rpm\f[R] \f[B]--setperms\f[R] | \f[B]--setugids\f[R] | \f[B]--setcaps\f[R] \f[I]PACKAGE_NAME\f[R] obsolete aliases for \f[B]--restore\f[R] .TP \f[B]rpm\f[R] \f[B]--restore\f[R] [\f[B]select-options\f[R]] The option restores file metadata such as timestamp, owner, group, permissions and capabilities of files in packages. .SS FTP/HTTP OPTIONS .PP \f[B]rpm\f[R] can act as an FTP and/or HTTP client so that packages can be queried or installed from the internet. Package files for install, upgrade, and query operations may be specified as an \f[B]ftp\f[R] or \f[B]http\f[R] style URL: .PP http://HOST[:PORT]/path/to/package.rpm .PP ftp://[USER:PASSWORD]\[at]HOST[:PORT]/path/to/package.rpm .PP If both the user and password are omitted, anonymous \f[B]ftp\f[R] is used. .PP \f[B]rpm\f[R] allows the following options to be used with ftp URLs: .TP \f[B]rpm\f[R] allows the following options to be used with \f[B]http\f[R] and \f[B]ftp\f[R] URLs: .TP \f[B]--httpproxy \f[R]\f[I]HOST\f[R] The host \f[I]HOST\f[R] will be used as a proxy server for all \f[B]http\f[R] and \f[B]ftp\f[R] transfers. This option may also be specified by configuring the macro \f[B]%_httpproxy\f[R]. .TP \f[B]--httpport \f[R]\f[I]PORT\f[R] The TCP \f[I]PORT\f[R] number to use for the \f[B]http\f[R] connection on the proxy http server instead of the default port. This option may also be specified by configuring the macro \f[B]%_httpport\f[R]. .SH LEGACY ISSUES .SS Executing rpmbuild .PP The build modes of rpm are now resident in the \f[I]/usr/bin/rpmbuild\f[R] executable. Install the package containing \f[B]rpmbuild\f[R] (usually \f[B]rpm-build\f[R]) and see \f[B]rpmbuild\f[R](8) for documentation of all the \f[B]rpm\f[R] build modes. .SH FILES .SS rpmrc Configuration .IP .nf \f[C] /usr/lib/rpm/rpmrc /usr/lib/rpm//rpmrc /etc/rpmrc \[ti]/.rpmrc \f[R] .fi .SS Macro Configuration .IP .nf \f[C] /usr/lib/rpm/macros /usr/lib/rpm//macros /etc/rpm/macros \[ti]/.rpmmacros \f[R] .fi .SS Database .IP .nf \f[C] /var/lib/rpm/Basenames /var/lib/rpm/Conflictname /var/lib/rpm/Dirnames /var/lib/rpm/Group /var/lib/rpm/Installtid /var/lib/rpm/Name /var/lib/rpm/Obsoletename /var/lib/rpm/Packages /var/lib/rpm/Providename /var/lib/rpm/Requirename /var/lib/rpm/Sha1header /var/lib/rpm/Sigmd5 /var/lib/rpm/Triggername \f[R] .fi .SS Temporary .PP \f[I]/var/tmp/rpm*\f[R] .SH SEE ALSO .PP \f[B]rpm-misc\f[R](8), \f[B]popt\f[R](3), \f[B]rpm2cpio\f[R](8), \f[B]rpmbuild\f[R](8), \f[B]rpmdb\f[R](8), \f[B]rpmkeys\f[R](8), \f[B]rpmsign\f[R](8), \f[B]rpmspec\f[R](8) .PP \f[B]rpm --help\f[R] - as rpm supports customizing the options via popt aliases it\[aq]s impossible to guarantee that what\[aq]s described in the manual matches what\[aq]s available. .PP \f[B]http://www.rpm.org/ \f[R] .SH AUTHORS .IP .nf \f[C] Marc Ewing Jeff Johnson Erik Troan \f[R] .fi