Linux Package Management Cheat Sheet/Query installed package

Inspect installed rpm metadata.

Section: DNF and Yum for RHEL family

Query installed package

bash
bash
rpm -qi openssh-server
Explanation

Useful even when yum or dnf is unavailable.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing DNF and Yum for RHEL family
Find package owning a file
Identify which rpm package owns a path.
OpenIn sheetbashsame section
Check available updates
Query repositories for updates.
OpenIn sheetbashsame section
Upgrade packages
Upgrade installed packages to latest versions.
OpenIn sheetbashsame section
Install package
Install packages with dependencies.
OpenIn sheetbashsame section
Remove package
Uninstall packages from the system.
OpenIn sheetbashsame section
Search packages
Search by name or summary.
OpenIn sheetbashsame section