Marcus Beach

Yum Command CentOS

Home »  Linux »  Yum Command CentOS

Yum Command CentOS

On July 31, 2015, Posted by , In Linux, By ,,, , With No Comments

YUM, What Is It?

YUM is a command line package management tool. You will commonly see YUM on RedHat systems such as  RedHat, CentOS, and Fedora. According to Wikipedia, “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.”

How to use YUM

The YUM command is as has simple as typing “yum.” Here is one of the first commands you will type when installing a new Linux system:

# yum update

The command above will update all packages on a Linux system. Now don’t go around and start to update every Linux system you log into. Updating libraries without knowing what will happen or without the proper research can cause all types of issues you may not find for many weeks.

Common YUM commands

Search for install packages:

# yum list installed

List repository:

# yum repolist

Search to see if you can install a package:

# yum search

To install a package with yum:

# yum install package-name

Clean up all YUM databases:

# yum clean all

Now, YUM is only one of the many package management tools you will find in the Linux world. Most package managers follow this same process to install and search for packages. I personally prefer the RedHat/CentOS flavor; therefore, I believe YUM is among the best package management systems. Now if you ask the Ubuntu pros, they will most likely say apt-get is the best. Like everything else in life, we all have our favorites.

References and recommended sites:

https://en.wikipedia.org/wiki/Yellowdog_Updater,_Modified

http://www.linuxcommand.org/man_pages/yum8.html

Leave a Reply

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