RPM(8) System Manager's Manual RPM(8) (NAME) rpm - RPM (SYNOPSIS) (Querying and verifying packages) rpm {-q|--query} [select-options] [query-options] [PACKAGE_FILE ...] [PACKAGE_NAME ...] rpm {-V|--verify} [select-options] [verify-options] [PACKAGE_NAME ...] (Installing, upgrading and removing packages) rpm {-i|--install} [transaction-options] [install-options] PACKAGE_FILE ... rpm {-U|--upgrade} [transaction-options] [install-options] PACKAGE_FILE ... rpm {-F|--freshen} [transaction-options] [install-options] PACKAGE_FILE ... rpm --reinstall [transaction-options] [install-options] PACKAGE_FILE ... rpm --restore [transaction-options] [select-options] PACKAGE_NAME ... rpm {-e|--erase} [transaction-options] [erase-options] PACKAGE_NAME ... (Misc operations) rpm --querytags rpm rpm-common(8) . (DESCRIPTION) rpm . . . : () . (OPERATIONS) (Querying and verifying packages) -V, --verify () rpm . / . . -q, --query () . (Installing, upgrading and removing packages) -i, --install () . --upgrade . -U, --upgrade () . () . -F, --freshen () . --reinstall () . --restore / (capabilities) () . -e, --erase . (Misc operations) --querytags (querytags) . --queryformat . (Obsolete compatibility aliases) popt(3) . --initdb, --rebuilddb, --verifydb rpmdb(8) . --addsign, --delsign, --resign rpmsign(1) . -K, --checksig, --import rpmkeys(8) . --specfile rpmspec(1) . rpm rpm-common(8) . (ARGUMENTS) PACKAGE_FILE rpm rpm- manifest(5) . URL ftp http . ftp http rpm FTP/HTTP OPTIONS . PACKAGE_NAME PACKAGE_NAME. ( ) ( ) . rpm -qa rpm -qp PACKAGE_FILE . (OPTIONS) rpm-common(8) . (INSTALL AND UPGRADE OPTIONS) --allfiles missingok . --badreloc --relocate OLDPATH () . --excludepath OLDPATH OLDPATH . --excludeartifacts build-id . --excludeconfigs, --noconfigs . --excludedocs ( texinfo) . --force --replacepkgs --replacefiles --oldpackage . --ignoresize . --ignorearch . --ignoreos . --includedocs . . --nocontexts SELinux . rpm-plugin-selinux(8) . --nocaps (file capabilities) . --noverify . --nosysusers (sysusers) . --oldpackage . --prefix NEWPATH () NEWPATH . --relocate OLDPATH=NEWPATH () OLDPATH NEWPATH . OLDPATH . --replacefiles . --replacepkgs . (ERASE OPTIONS) --allmatches PACKAGE_NAME . PACKAGE_NAME . (TRANSACTION OPTIONS) --install --upgrade --reinstall --erase . --deploops . -h, --hash . -v --verbose . --justdb . --nodb . --nodeps . --noorder . . --noplugins . --noscripts . : --nopre --nopost --nopreun --nopostun --nopretrans --noposttrans --nopreuntrans --nopostuntrans --nopre --nopost --nopreun --nopostun --nopretrans --noposttrans --nopreuntrans --nopostuntrans . --notriggers . : --notriggerprein --notriggerin --notriggerun --notriggerpostun --notriggerin --notriggerun --notriggerprein --notriggerpostun . --percent . rpm . --test . -vv . (QUERY OPTIONS) --qf QUERYFMT, --queryformat QUERYFMT rpm-queryformat(7) . %_query_all_fmt rpm-config(5) . : . (PACKAGE SELECTION OPTIONS) -a, --all [SELECTOR ...] . SELECTOR tag=pattern name="b*" "b" . --dupes . -f, --file FILE FILE . --filecaps POSIX1.e. --fileclass ( libmagic). --filecolor ( noarch ). --fileprovide (provides) . --filerequire (requires) . -g, --group GROUP GROUP. --noglob (glob) . --nomanifest rpm-manifest(5) . -p, --package PACKAGE_FILE PACKAGE_FILE (). --path PATH () PATH . PATH . --querybynumber HDRNUM HDRNUM . --specfile SPECFILE rpmspec(1) . --tid TID () TID . . () . --triggeredby PACKAGE_NAME () PACKAGE_NAME (trigger) . --whatobsoletes CAPABILITY CAPABILITY . --whatprovides CAPABILITY CAPABILITY (provide) . --whatrequires CAPABILITY CAPABILITY . --whatconflicts CAPABILITY CAPABILITY . --whatrecommends CAPABILITY CAPABILITY . --whatsuggests CAPABILITY CAPABILITY . --whatsupplements CAPABILITY CAPABILITY . --whatenhances CAPABILITY CAPABILITY . (PACKAGE QUERY OPTIONS) --changelog (changelog) . --changes . --conflicts . --dump ( -l ): path size mtime digest mode owner group isconfig isdoc rdev symlink --enhances () . --filesbypkg . --filetriggers (filetrigger) (). -i, --info . --queryformat . --last . -l, --list . --obsoletes . --provides . --recommends (). -R, --requires . --suggests (). --supplements (). --scripts () . -s, --state ( -l ). normal not installed replaced . --triggers, --triggerscripts (trigger scripts) . --xml XML. (FILE SELECTION OPTIONS) -A, --artifactfiles / (artifact) ( -l ). -c, --configfiles ( -l ). -d, --docfiles ( -l ). -L, --licensefiles / ( -l ). --noartifact / (artifact). --noconfig . --noghost (ghost). (VERIFY OPTIONS) ( rpm-manifest(5) ). : --nodeps . --nodigest . --nofiles . --noscripts %verifyscript ( ) . --nosignature . --nolinkto --nofiledigest ( --nomd5) --nosize --nomtime --nomode --nordev . --nouser --nogroup / . passwd(5) group(5) . --nocaps . (OUTPUT) --verify . () () . <<.>> <> ( ). ( ) --verify : S (Size) M (Mode ) 5 ( MD5) D / (Device) L readLink(2) U (User) G (Group) T (mTime) P (caPabilities) a %artifact - ( build-id) c (%configuration) d (%documentation) g (%ghost) l / (%license) m %missingok - n %config(noreplace) - ( %config) r %readme s rpm-spec(5) (EXIT STATUS) . (EXAMPLES) rpm -Uvh hello-2.0-1.noarch.rpm hello-2.0-1.noarch.rpm . -Uvh rpm . rpm -Uvh --excludedocs --root /srv/test mydist-23.mft rpm-manifest(5) mydist-23.mft /srv/test . rpm -Fvh *.rpm (freshen) . rpm -i kernel-6.15.4-200.x86_64.rpm kernel-6.15.4-200.x86_64.rpm . . -i . rpm -evh --allmatches libhello libhello . --allmatches . rpm -vh --reinstall hello-2.0-1.noarch.rpm hello-2.0-1.noarch.rpm . . rpm -v --restore --all . rpm --verify --noconfig openssh-server openssh-server . rpm -qa . rpm -qlv --noartifact glibc glibc ls(1) ls -l <<>> (artifact) build-id . rpm -q --qf "[%{filenames} %{filedigests}\n]" openssh-server openssh-server. rpm -qp --scripts --triggers --filetriggers myserver-1.0-1.x86_64.rpm myserver-1.0-1.x86_64.rpm. ! rpm --target ppc64le --eval "%optflags" %optflags ppc64le. (FILES) rpm-common(8) rpm-config(5) rpm-rpmrc(5) . (SEE ALSO) rpm-common(8), popt(3), rpm2cpio(1), rpmbuild(1), rpmdb(8), rpmkeys(8), rpmsign(1), rpmspec(1), rpm-queryformat(7) rpm-manifest(5) rpm- version(7) rpm-plugins(8) rpm --help - rpm popt . http://www.rpm.org RPM 6.0.1 2026-03-06 RPM(8)