Useful yum commands

By | March 14, 2018

                         In this article, we will discussed about the YUM commands for package management like install,update,find,manage and remove packages

What is YUM?

The Yellowdog Updater, Modified (YUM) is open-source command-line package-management utility for computers running the GNU/Linux operating system using the RPM Package Manager.It allows user and administrator to easily install,update and remove packages. Also It uses numerous third party repositories to install packages automatically by resolving their dependencies issues.

Install a package with YUM

Run the below command to install http service automatically

yum install httpd

Removing a package with yum

By using the below command to remove the http package-management

yum remove httpd

List a package with yum

Use the list function to search for the specific package with name. For example to search for a package called vsftpd, use the command.

Search for a Package using YUM

If you don’t remember the exact name of the package, then use search function to search all the available packages to match the name of the package you specified

To search all the package that should match the word.By using below command to search the package http

yum search httpd

Get Information of a Package using YUM

If you would like to know information of a package before installing it,you can get information of a package just type the below command.

yum info firefox


List all Available Packages using YUM

To list all the available packages in the Yum database, use the below command.

yum list

List all Installed Packages using YUM

To list all the installed packages on a system, just issue below command, it will display all the installed packages.

Check for Available Updates using Yum

To find how many of installed packages on your system have updates available, to check use the following command.

yum check-update


Update System using Yum

To keep your system up-to-date with all security and binary package updates, run the following command. It will install all latest patches and security updates to your system.

yum update



We have tried to cover all the basic to advance yum commands with their examples.



Category: VPS

Leave a Reply

Your email address will not be published. Required fields are marked *