How To Install python-stestr-doc on Ubuntu 20.04
Introduction
In this tutorial we learn how to install python-stestr-doc on Ubuntu 20.04.
What is python-stestr-doc
python-stestr-doc 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 documentation.
There are three methods to install python-stestr-doc on Ubuntu 20.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 python-stestr-doc 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-doc using apt-get by running the following command:
sudo apt-get -y install python-stestr-doc
Install python-stestr-doc Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install python-stestr-doc using apt by running the following command:
sudo apt -y install python-stestr-doc
Install python-stestr-doc 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 python-stestr-doc using aptitude by running the following command:
sudo aptitude -y install python-stestr-doc
How To Uninstall python-stestr-doc on Ubuntu 20.04
To uninstall only the python-stestr-doc package we can use the following command:
sudo apt-get remove python-stestr-doc
Uninstall python-stestr-doc And Its Dependencies
To uninstall python-stestr-doc and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove python-stestr-doc
Remove python-stestr-doc Configurations and Data
To remove python-stestr-doc configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge python-stestr-doc
Remove python-stestr-doc configuration, data, and all of its dependencies
We can use the following command to remove python-stestr-doc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-stestr-doc
References
Summary
In this tutorial we learn how to install python-stestr-doc package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.