How To Install yum-utils on Ubuntu 18.04
Introduction
In this tutorial we learn how to install yum-utils
on Ubuntu 18.04.
What is yum-utils
yum-utils is:
Yum-utils is a collection of utilities and examples for the yum package manager. It includes utilities by different authors that make yum easier and more powerful to use. The commands provided are:
- repo-graph: output a full package dependency graph in dot format
- repo-rss: generate an RSS feed from one or more yum repositories
- repoclosure: display a list of unresolved dependencies for a yum repository
- repodiff: list differences between two or more yum repositories
- repomanage: list the newest or oldest packages in a yum repository
- repoquery: query information from yum repositories
- reposync: synchronize yum repositories to a local directory
- repotrack: track a package and its dependencies and download them
- yum-builddep: install missing dependencies for building an RPM package
- yum-complete-transaction: attempt to complete failed or aborted yum transactions
- yum-config-manager: manage yum configuration options and yum repositories
- yum-groups-manager: create and edit group metadata for a yum repository
- yumdb: query and alter the yum database
- yumdownloader: download RPM packages from yum repositories
On Debian and derived systems, this package can be useful for installing and managing chroots or lxc containers of yum-based distributions. The utilities for querying and managing yum repositories may also be useful for maintaining repositories of RPM packages on a Debian host.
There are three methods to install yum-utils
on Ubuntu 18.04. 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-utils 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-utils
using apt-get
by running the following command:
sudo apt-get -y install yum-utils
Install yum-utils Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install yum-utils
using apt
by running the following command:
sudo apt -y install yum-utils
Install yum-utils 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install yum-utils
using aptitude
by running the following command:
sudo aptitude -y install yum-utils
How To Uninstall yum-utils on Ubuntu 18.04
To uninstall only the yum-utils
package we can use the following command:
sudo apt-get remove yum-utils
Uninstall yum-utils And Its Dependencies
To uninstall yum-utils
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove yum-utils
Remove yum-utils Configurations and Data
To remove yum-utils
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge yum-utils
Remove yum-utils configuration, data, and all of its dependencies
We can use the following command to remove yum-utils
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge yum-utils
References
Summary
In this tutorial we learn how to install yum-utils
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.