tldr/pages/linux/rpm.md

598 B

rpm

RPM Package Manager.

  • Show version of httpd package:

rpm -q {{httpd}}

  • List versions of all matching packages:

rpm -qa '{{mariadb*}}'

  • Forcibly install a package regardless of currently installed versions:

rpm -U {{package_name.rpm}} --force

  • Identify owner of a file and show version of the package:

rpm -qf {{/etc/postfix/main.cf}}

  • List package-owned files:

rpm -ql {{kernel}}

  • Show scriptlets from an RPM file:

rpm -qp --scripts {{package_name.rpm}}

  • Show changed, missing and/or incorrectly installed files of matching packages:

rpm -Va '{{php-*}}'