RPM VERSION 4.0.4 - REDHAT ENTERPRISE LINUX 2.1 Usage: rpm [OPTION...] Query options (with -q or --query): -c, --configfiles list all configuration files -d, --docfiles list all documentation files --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 -v, --verbose display a verbose file listing -a, --all query/verify all packages -f, --file query/verify package(s) owning file -g, --group query/verify package(s) in group -p, --package query/verify a package file (i.e. a binary *.rpm file) --querytags display known query tags --specfile query a spec file --whatrequires query/verify the package(s) which require a dependency --whatprovides query/verify the package(s) which provide a dependency Verify options (with -V or --verify): --nomd5[|=0x1] don't verify MD5 digest of files --nofiles[|=0x10000] don't verify files in package --nodeps[|=0x20000] don't verify package dependencies --noscript[|=0x40000] don't execute %verifyscript (if any) -a, --all query/verify all packages -f, --file query/verify package(s) owning file -g, --group query/verify package(s) in group -p, --package query/verify a package file (i.e. a binary *.rpm file) --querytags display known query tags --specfile query a spec file --whatrequires query/verify the package(s) which require a dependency --whatprovides query/verify the package(s) which provide a dependency Signature options: --addsign add a signature to a package --resign sign a package (discard current signature) -K, --checksig verify package signature --nogpg[&=~0x4] skip any GPG signatures --nomd5[&=~0x2] do not verify file md5 checksums Database options: --initdb initialize database --rebuilddb rebuild database inverted lists from installed package headers Install/Upgrade/Erase options: --allfiles[|=0x40] install all files, even configurations which might otherwise be skipped --allmatches[|=0x2] remove all packages which match (normally an error is generated if specified multiple packages) --badreloc[|=0x8] relocate files in non-relocateable package -e, --erase=+ erase (uninstall) package --excludedocs[|=0x20] do not install documentation --excludepath= skip files with leading component --force[|=0x74] short hand for --replacepkgs --replacefiles -F, --freshen=+ upgrade package(s) if already installed -h, --hash[|=0x2] print hash marks as package installs (good with -v) --ignorearch[|=0x2] don't verify package architecture --ignoreos[|=0x1] don't verify package operating system --ignoresize[|=0x180] don't check disk space before installing --includedocs install documentation --install=+ install package --justdb[|=0x8] update the database, but do not modify the filesystem --nodeps do not verify package dependencies --noorder[|=0x8] do not reorder package installation to satisfy dependencies --noscripts[|=0xff0000] do not execute package scriptlet(s) --notriggers[|=0x990000] do not execute any scriptlet(s) triggered by this package --oldpackage[|=0x40] upgrade to an old version of the package (--force on upgrades does this automatically) --percent[|=0x1] print percentages as package installs --prefix= relocate the package to , if relocatable --relocate== relocate files from path to --repackage[|=0x400] save erased package files by repackaging --replacefiles[|=0x30] install even if the package replaces installed files --replacepkgs[|=0x4] reinstall if the package is already present --test[|=0x1] don't install, but tell if it would work or not -U, --upgrade=+ upgrade package(s) Common options for all rpm modes: --version print the version of rpm being used --quiet provide less detailed output -v, --verbose provide more detailed output --define=' ' define macro with value --eval=+ print macro expansion of + -r, --root= use as the top level directory (default: "/") --macros= read instead of default macro file(s) --rcfile= read instead of default rpmrc file(s) --showrc display final rpmrc and macro configuration Options implemented via popt alias/exec: --scripts list install/erase scriptlets from package(s) --setperms set permissions of files in a package --setugids set user/group ownership of files in a package --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) --info list descriptive information from package(s) --changelog list change logs for this package --triggers list trigger scriptlets from package(s) --last list package(s) by install time, most recent first --filesbypkg list all files from each package --redhatprovides find package name that contains a provided capability (needs rpmdb-redhat package installed) --redhatrequires find package name that contains a required capability (needs rpmdb-redhat package installed) --buildpolicy= set buildroot (e.g. compress man pages) --with=