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:
- Using DNF Package Manager (RHEL 8+) - DNF is the successor to Yum, but many concepts are similar.
- RPM Package Manager - The underlying package format used by Yum.
- Yum (package manager) on Wikipedia