How To Install python-stestr on Debian 10
Introduction
In this tutorial we learn how to install python-stestr
on Debian 10.
What is python-stestr
python-stestr is:
Stestr stands for Slim/Super Test Repository. It is a fork of the testrepository that concentrates on being a dedicated test runner for Python projects. The generic abstraction layers which enabled testr to work with any subunit emitting runner are gone. Stestr hard codes python-subunit-isms into how it works. The code base is also designed to try and be explicit, and to provide a Python API that is documented and has examples.
While stestr was originally forked from testrepository it is not 100% backwards compatible with testrepository. At a high level the basic concepts of operation are shared between the 2 projects but the actual usage between the 2 is not exactly the same.
This package contains the Python 2.7 module.
There are three methods to install python-stestr
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 python-stestr 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-stestr
using apt-get
by running the following command:
sudo apt-get -y install python-stestr
Install python-stestr Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-stestr
using apt
by running the following command:
sudo apt -y install python-stestr
Install python-stestr 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-stestr
using aptitude
by running the following command:
sudo aptitude -y install python-stestr
How To Uninstall python-stestr on Debian 10
To uninstall only the python-stestr
package we can use the following command:
sudo apt-get remove python-stestr
Uninstall python-stestr And Its Dependencies
To uninstall python-stestr
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove python-stestr
Remove python-stestr Configurations and Data
To remove python-stestr
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge python-stestr
Remove python-stestr configuration, data, and all of its dependencies
We can use the following command to remove python-stestr
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-stestr
Dependencies
python-stestr have the following dependencies:
- python-cliff
- python-fixtures
- python-future
- python-pbr
- python-six
- python-testtools
- python-voluptuous
- python-yaml
- subunit
- python-subunit
- python2.7
References
Summary
In this tutorial we learn how to install python-stestr
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.