How To Install Yum In Linux

YUM (Yellowdog Updater, Modified) is an open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager. If you’re running a Linux distribution that uses .rpm packages (such as CentOS, Fedora, or RHEL), the YUM package manager can help you quickly install software and keep your system up to date. In this blog post, we will guide you through the steps to install YUM on your Linux system.

Pre-Installation Check

Before starting with the installation, it’s necessary to check whether YUM is already installed in your system or not. Use the following command:

            rpm -q yum

If YUM is already installed, you’ll see the version of YUM printed out. If it’s not installed, you’ll see no packages, and you can proceed with the installation.

Installing YUM

Generally, YUM comes preinstalled with many Linux distributions. However, in the case it doesn’t, you can install it using RPM. Here are the steps to install YUM:

Step 1: Download the YUM Package

You can download the latest version of the YUM package from the official YUM download page.

Step 2: Install the Package Using RPM

Once you have downloaded the package, you can install it using the RPM command:

            sudo rpm -Uvh yum-*.rpm

Here, sudo allows you to run the command as an administrator, rpm -Uvh is the command to install the package, and yum-*.rpm is the YUM package you downloaded.

Step 3: Verify the Installation

After the installation is complete, you can verify it by running:


If the installation was successful, you’ll see a list of YUM commands printed out.


And that’s it! You have successfully installed YUM on your Linux system. Now, you can install, update, and manage your software packages much easier with YUM!