Commands · Command

CommandLinux

yum

yum [command] package

The package manager for older Red Hat-based distributions (RHEL/CentOS 7 and earlier) — installs, updates, and removes RPM packages along with their dependencies.

// FLAGS

installinstall a package
removeuninstall a package
updateupgrade installed packages
searchfind a package by name/keyword

// EXAMPLE

yum install httpd — installs the Apache web server package and any dependencies it needs.

// GOTCHA

yum has been replaced by dnf on RHEL/CentOS 8+ (and Fedora even earlier) — on those systems yum is usually just a symlink to dnf for backward compatibility, not the original tool.

// RELATED COMMANDS