Identify which rpm package owns a path.
Section: DNF and Yum for RHEL family
Find package owning a file
bash
bash
rpm -qf /usr/sbin/sshdExplanation
Useful for auditing binaries and config origins.
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