How To Install yum on Debian 10

Learn how to install yum on Debian 10 with this tutorial. yum is Advanced front-end for rpm

Introduction

In this tutorial we learn how to install yum on Debian 10.

What is yum

yum is:

Yum (Yellow dog Updater, Modified) is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm.

Features include:

 * Multiple Repositories
 * Simple config file
 * Correct dependency calculation
 * Fast operation
 * rpm-consistent behavior
 * comps.xml group support, including multiple repository groups
 * Simple interface

There are three methods to install yum on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install yum Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install yum using apt-get by running the following command:

sudo apt-get -y install yum

Install yum Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install yum using apt by running the following command:

sudo apt -y install yum

Install yum Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install yum using aptitude by running the following command:

sudo aptitude -y install yum

How To Uninstall yum on Debian 10

To uninstall only the yum package we can use the following command:

sudo apt-get remove yum

Uninstall yum And Its Dependencies

To uninstall yum and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove yum

Remove yum Configurations and Data

To remove yum configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge yum

Remove yum configuration, data, and all of its dependencies

We can use the following command to remove yum configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge yum

Dependencies

yum have the following dependencies:

References

Summary

In this tutorial we learn how to install yum package on Debian 10 using different package management tools: apt, apt-get and aptitude.