How To Install python-dtest on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-dtest
on Ubuntu 18.04.
What is python-dtest
python-dtest is:
The DTest framework is a testing framework, similar to the standard unittest package provided by Python. The value-add for DTest, however, is that test execution is threaded, through use of the eventlet package. The DTest package also provides the concept of “dependencies” between tests and test fixtures – thus the “D” in “DTest” – which ensure that tests don’t run until the matching set up test fixtures have completed, and that the tear down test fixtures don’t run until all the associated tests have completed. Dependencies may also be used to ensure that tests requiring the availability of certain functionality don’t run if the tests of that specific functionality fail.
There are three methods to install python-dtest
on Ubuntu 18.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-dtest 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-dtest
using apt-get
by running the following command:
sudo apt-get -y install python-dtest
Install python-dtest Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-dtest
using apt
by running the following command:
sudo apt -y install python-dtest
Install python-dtest 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-dtest
using aptitude
by running the following command:
sudo aptitude -y install python-dtest
How To Uninstall python-dtest on Ubuntu 18.04
To uninstall only the python-dtest
package we can use the following command:
sudo apt-get remove python-dtest
Uninstall python-dtest And Its Dependencies
To uninstall python-dtest
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-dtest
Remove python-dtest Configurations and Data
To remove python-dtest
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-dtest
Remove python-dtest configuration, data, and all of its dependencies
We can use the following command to remove python-dtest
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-dtest
References
Summary
In this tutorial we learn how to install python-dtest
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.