Pcornel
Linux · Package Management › RHEL / Rocky / AlmaLinux

YUM

Cheat sheet · https://pcornel.dk/topic.php?topic=2743

Back to the Topic

Answer

YUM is the older RPM package manager used up to RHEL/CentOS 7. On RHEL 8 and later yum is a compatibility alias for DNF.

Remember

Commands map directly to dnf (install, update, remove, history). RHEL/CentOS 7 is out of standard support — plan upgrades.

First checks

  • apt policy <pkg> / dnf info <pkg> — installed and candidate versions
  • dpkg -l <pkg> / rpm -q <pkg> — installed package
  • apt-cache depends <pkg> / dnf repoquery --requires <pkg> — dependencies
  • dpkg -S <file> / rpm -qf <file> — package owning a file

Verify in this order

yum (or dnf alias) reads repos → resolves → rpm installs

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2743

Confirmation

Confirm action

Continue?