[[linux_wiki:rpm]]

RPM

General Information

RPM (RedHat Package Manager) has some very useful commands, despite having yum as a frontend.

Checklist

  • Distro(s): Enterprise Linux

Query Commands

Some useful commands for querying the RPM database and packages.

Determine if a package is installed

rpm -q postfix


Find duplicate packages

rpm -qa --qf "%{NAME}.%{arch}\n" | sort | uniq -d


Show the contents of a RPM file on the local system that is not installed

rpm -qlp <package-name>.rpm

  • linux_wiki/rpm.txt
  • Last modified: 2019/05/26 03:50
  • (external edit)