How To Install Yum Command In Linux

Welcome back to our blog! Today, we’ll be steering you through a concise and simple walk-through on how to install the Yum command on your Linux system. In case you’re wondering, Yum, which stands for Yellowdog Updater Modified, is an open-source command-line package-management utility for Linux that uses the RPM Package Manager. With Yum, you can handle packages on your system conveniently, including installation, upgrade, and removal.


Before starting with the installation process, you need to have root user access to your system. If you are logged in as a non-root user, you can run sudo -i to switch to root user.

Installing Yum

On most Linux distributions, Yum comes pre-installed. However, if it’s not available on your system, here’s how you can install it. Please note, these instructions are for CentOS and Fedora Linux distributions. For other distributions, please refer to their respective official documentation.

Step 1: Update your system

First and foremost, update your system to have the latest updates and security patches using the following command:

sudo apt-get update -y
sudo apt-get upgrade -y

Step 2: Install Yum

Once your system is updated, run the following command to install Yum:

sudo apt-get install yum -y

Step 3: Verify the installation

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

yum --version

This command will display the version of Yum installed, indicating that the installation was successful.


And there you have it! You’ve successfully installed Yum on your Linux system. Now you can manage your system’s packages more efficiently and effortlessly. For more Linux how-tos and guides, keep following our blog. Happy Linuxing!