How To Install python-dib-utils on Debian 9
Introduction
In this tutorial we learn how to install python-dib-utils
on Debian 9.
What is python-dib-utils
python-dib-utils is:
These tools were originally part of the diskimage-builder project, but they have uses outside of that project as well. Because disk space is at a premium in base cloud images, pulling in all of diskimage-builder and its dependencies just to use something like dib-run-parts is not desirable. This project allows consumers to use the tools while pulling in only one small package with few/no additional dependencies.
This package contains the Python 2.x module.
There are three methods to install python-dib-utils
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-dib-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 python-dib-utils
using apt-get
by running the following command:
sudo apt-get -y install python-dib-utils
Install python-dib-utils Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-dib-utils
using apt
by running the following command:
sudo apt -y install python-dib-utils
Install python-dib-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-dib-utils
using aptitude
by running the following command:
sudo aptitude -y install python-dib-utils
How To Uninstall python-dib-utils on Debian 9
To uninstall only the python-dib-utils
package we can use the following command:
sudo apt-get remove python-dib-utils
Uninstall python-dib-utils And Its Dependencies
To uninstall python-dib-utils
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-dib-utils
Remove python-dib-utils Configurations and Data
To remove python-dib-utils
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-dib-utils
Remove python-dib-utils configuration, data, and all of its dependencies
We can use the following command to remove python-dib-utils
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-dib-utils
Dependencies
python-dib-utils have the following dependencies:
References
Summary
In this tutorial we learn how to install python-dib-utils
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.