How To Install python3-stestr on Kali Linux

In this tutorial we learn how to install python3-stestr on Kali Linux. python3-stestr is test runner similar to testrepository - Python 3.x

Introduction

In this tutorial we learn how to install python3-stestr on Kali Linux.

What is python3-stestr

python3-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 3.x module.

There are three methods to install python3-stestr on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python3-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 python3-stestr using apt-get by running the following command:

sudo apt-get -y install python3-stestr

Install python3-stestr Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python3-stestr using apt by running the following command:

sudo apt -y install python3-stestr

Install python3-stestr Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python3-stestr using aptitude by running the following command:

sudo aptitude -y install python3-stestr

How To Uninstall python3-stestr on Kali Linux

To uninstall only the python3-stestr package we can use the following command:

sudo apt-get remove python3-stestr

Uninstall python3-stestr And Its Dependencies

To uninstall python3-stestr and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove python3-stestr

Remove python3-stestr Configurations and Data

To remove python3-stestr configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge python3-stestr

Remove python3-stestr configuration, data, and all of its dependencies

We can use the following command to remove python3-stestr configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python3-stestr

Dependencies

python3-stestr have the following dependencies:

References

Summary

In this tutorial we learn how to install python3-stestr package on Kali Linux using different package management tools: apt, apt-get and aptitude.