Yum Package Manager Commands - Install, Search, Remove

Learn essential Yum package manager commands for Linux. Easily install, remove, search, and manage packages with clear examples for Yum.

Yum Package Manager Commands

Yum (Yellowdog Updater, Modified) is a powerful command-line package management utility for RPM-based Linux distributions like Fedora, CentOS, and RHEL. It simplifies the process of installing, updating, removing, and managing software packages.

Yum Install and Local Install

To install the latest version of a package from configured repositories:

yum install <package>

To perform a local install from an RPM file:

yum localinstall <package.rpm>

Yum Remove Package

To remove a package and its dependencies (if no other package requires them):

yum remove <package>

Yum Search and Info

To search for a package by name or description:

yum search <package>

To find out which package provides a specific executable or file:

yum whatprovides <executable>

To get detailed information about a package:

yum info <package>

Yum List and Dependencies

To list all available packages matching a phrase:

yum list <phrase>

To find the dependencies of a package:

yum deplist <package>

Yum Repositories and Utilities

To list currently enabled Yum repositories:

yum repolist

To download the source RPM for a package (requires yum-utils package):

yumdownloader --source <package>

You can install yum-utils using: yum install yum-utils

Yum is a fundamental tool for system administration on many Linux distributions, enabling efficient software management.

External Resources: