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

Undoing package installations

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.

Low-level package operations

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