Package Management

rpm

Queries and manipulates RPM package files and database entries.

rpm is the low-level RPM tool. High-level managers such as dnf and zypper resolve dependencies; rpm is often used for queries and verification.

Syntax
rpm [options] [package-or-file]

Arguments explained

  • -qa lists installed packages.
  • -qi shows package info.
  • -ql lists files from a package.
  • -qf finds which package owns a file.
  • -V verifies installed files.

Common examples

Find owner of a file
rpm -qf /usr/bin/bash

Shows the package that installed /usr/bin/bash.

List package files
rpm -ql bash

Displays files owned by the installed bash package.

rpm Command
FieldDetails
Commandrpm
CategoryPackage Management
Primary useQueries and manipulates RPM package files and database entries.
Syntaxrpm [options] [package-or-file]