Tutorial Get to know the features, functions of Yum and how to use it on Linux OS

YUM Command stands for Yellowdog Updater Modified Command. It is quite familiar among system administrators (sysadmins) or developer programmers who are used to using CentOS. Here we want to explain in simple terms the features and examples of using the YUM command. Let's take a look at the following article.

 

YUM Command

Yellowdog Updater Modified or YUM has been provided in Red Hat Enterprise Linux (RHEL) based systems to install, remove and search packages. YUM will also install dependency packages automatically if needed. For example, when we install mysql with "yum install mysql", other libraries related to mysql will also be installed. Generally, you only need to answer Yes or No if you want to continue the installation process.

This is different from RPM, which requires you to download all dependencies first before the installation can run again.

 

YUM Fungction

In short, YUM is the main tool for getting, installing, querying, deleting and managing RHEL RPMs from the official Red Hat software repository and other third-party repos.

 

YUM Feature

Some of the YUM features that you can use are:

  • List Software Package: You can list or search for software available in the repository.
  • Check for packages dependency: You can also check whether the software you have installed needs to be updated or not, along with its dependencies / derivatives.
  • Create new repository : Create a new repository.

 

YUM Usage

Example commands for using YUM:

  • Install software

    yum install vim

    The above command is to install the vim software, which is for text editor purposes.


  • Reinstall software

    yum reinstall vim

    The command to reinstall the vim software.


  • remove software

    yum remove vim

    Command to remove software vim.

  • List of available repos

    yum repolist

    A command to display all used repos including alternate repos.


  • List whether the package is available or not

    yum list available | grep mysql
  • List of software that has been installed

    yum list installed | grep mysql

    Example command to list software that has been installed with grep mysql words.

    RPM users usually command rpm -qa | grep mysql

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.