General Information

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


  • 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/25 23:50
  • (external edit)