YUM PACKAGE MANAGER IN RHEL/CENTOS

It is used to install, uninstall, update, list the available packages and search the rpm packages from the database. Purpose of yum is to install rpm packages easily with all required dependencies for administrators.

1. Install a Package

Installing httpd package:

# yum install httpd* -y (yes confirmation)

2. Update all Installed Packages or a Single Package

We can use yum command to update a already installed package from its lower version to upper released version.

To update all installed Packages and Repositories use yum update.

# yum update httpd -y

3. YUM Help for More Options

To refer more yum command options and features you can use yum help.

# yum help

4. List Packages using yum command

To list all installed packages in system and available packages in YUM repository server use the yum list