How To Install python-pydoubles on Debian 9
Introduction
In this tutorial we learn how to install python-pydoubles on Debian 9.
What is python-pydoubles
python-pydoubles is:
pyDoubles is a test doubles framework for the Python platform. Test doubles frameworks are also called mocking or isolation frameworks. pyDoubles can be used as a testing tool or as a Test Driven Development tool.
It generates stubs, spies, and mock objects using a fluent interface that will make your unit tests more readable. Moreover, it??s been designed to make your tests less fragile when possible.
There are three methods to install python-pydoubles 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-pydoubles 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-pydoubles using apt-get by running the following command:
sudo apt-get -y install python-pydoubles
Install python-pydoubles Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install python-pydoubles using apt by running the following command:
sudo apt -y install python-pydoubles
Install python-pydoubles 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-pydoubles using aptitude by running the following command:
sudo aptitude -y install python-pydoubles
How To Uninstall python-pydoubles on Debian 9
To uninstall only the python-pydoubles package we can use the following command:
sudo apt-get remove python-pydoubles
Uninstall python-pydoubles And Its Dependencies
To uninstall python-pydoubles and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-pydoubles
Remove python-pydoubles Configurations and Data
To remove python-pydoubles configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-pydoubles
Remove python-pydoubles configuration, data, and all of its dependencies
We can use the following command to remove python-pydoubles configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-pydoubles
Dependencies
python-pydoubles have the following dependencies:
References
Summary
In this tutorial we learn how to install python-pydoubles package on Debian 9 using different package management tools: apt, apt-get and aptitude.