yum: rpm-based package manager // superseded by dnf in recent releases
rpm: rpm package manager // low-level package management operations
Favoured by Fedora-based distros
yum history
Show history of various yum commands; extremely useful in a pinch.
yum history info <id>
Show the actual command used and resulting package changes.
yum history undo <id>
Roll back transactions.
rpm -ql
View all files installed by an installed package
rpm -qf
List the package that a file belongs to
-p package.rpm
can be used to query a .rpm
file rather than an installed package