Back to the command reference

yum

SystemFundamentalsReference only

Package manager for CentOS/RHEL (older)

Name: yum = Yellowdog Updater, Modified

This command is outside what the site lets you practise (mostly distribution-specific or rarely used tools). This page describes how to use it; try it on your own Linux system.

Description

yum is the package manager of older Red Hat family systems such as CentOS 7 and RHEL 7, built on rpm, installing from repositories with dependency resolution. Newer releases replaced it with dnf, and yum is usually just a link to it.

Syntax

yum [OPTION]... COMMAND

Common options

install / removeInstall / remove
updateUpdate packages
searchSearch
infoShow a package’s details
list installedList installed packages
providesWhich package provides a file, e.g. yum provides /usr/bin/dig
-yAnswer yes to every question

Examples

  • $ sudo yum install httpd

    Install Apache

    Explain

Related