rpm
RPM Package Manager. For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
More info →Subcommands (1)
Options (7)
-q, --querybooleanShow version of httpd package
rpm {{[-q|--query]}} httpdbooleanList versions of all matching packages
rpm {{[-qa|--query --all]}} '{{mariadb*}}'-U, --upgradebooleanForcibly install a package regardless of currently installed versions
rpm {{[-U|--upgrade]}} {{path/to/package.rpm}} --forcebooleanIdentify owner of a file and show version of the package
rpm {{[-qf|--query --file]}} {{/etc/postfix/main.cf}}booleanList package-owned files
rpm {{[-ql|--query --list]}} {{kernel}}booleanShow scriptlets from an RPM file
rpm {{[-qp|--query --package]}} --scripts {{package.rpm}}booleanShow changed, missing and/or incorrectly installed files of matching packages
rpm {{[-Va|--verify --all]}} '{{php-*}}'Examples (8)
Show version of httpd package
rpm [-q|--query] httpdList versions of all matching packages
rpm [-qa|--query --all] 'mariadb*'Forcibly install a package regardless of currently installed versions
rpm [-U|--upgrade] path/to/package.rpm --forceIdentify owner of a file and show version of the package
rpm [-qf|--query --file] /etc/postfix/main.cfList package-owned files
rpm [-ql|--query --list] kernelShow scriptlets from an RPM file
rpm [-qp|--query --package] --scripts package.rpmShow changed, missing and/or incorrectly installed files of matching packages
rpm [-Va|--verify --all] 'php-*'Display the changelog of a specific package
rpm [-q|--query] --changelog package