The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager. Though yum has a command-line interface, several other tools provide graphical user interfaces to yum functionality.

Yum allows automatic updates, package and dependency management, on RPM-based distributions. Like the Advanced Packaging Tool (APT) from Debian, yum works with software repositories (collections of packages), which can be accessed locally or over a network connection. Under the hood, yum depends on RPM, which is a packaging standard for digital distribution of software, which automatically uses hashes and digisigs to verify the authorship and integrity of said software.

Yum searches numerous repositories for packages and their dependencies so they may be installed together in an effort to alleviate dependency issues. Yum uses a configuration file at /etc/yum.conf.

Yum commands

# Install a package
yum install firefox
# Removing a package
yum remove firefox
# Updating a package
yum update firefox
# List a package
yum list firefox
# Search for a package
yum search firefox
# Get information of a package
yum info firefox
# List all available packages
yum list installed | less
# Yum provides function - find which package a specific file belongs to
yum provides /etc/httpd/conf/httpd.conf
# Check for available updates
yum check-update
# Update system
yum update
# List all available group packages - number of packages are bundled to particular group
yum grouplist
# Install a group packages - install particular group that will install all the related packages that belongs to the group
yum groupinstall 'MySQL Database'
# Update a group packages
yum groupupdate 'MySQL Database'
# Remove a group packages
yum groupremove 'MySQL Database'
# List enabled Yum repositories
yum repolist
# List all enabled and disabled Yum repositories
yum repolist all
# Install a package from specific repository
yum --enablerepo=epel install phpmyadmin
# Interactive Yum shell
yum shell
# Clean Yum cache - yum keeps all the repository enabled package data in /var/cache/yum/
yum clean all
# View history of Yum
yum history

Leave a Reply