How To Install python-texttable on Debian 9

In this tutorial we learn how to install python-texttable on Debian 9. python-texttable is Module for creating simple ASCII tables ?? python2

Introduction

In this tutorial we learn how to install python-texttable on Debian 9.

What is python-texttable

python-texttable is:

texttable is a module to generate a formatted text table, using ASCII characters. It provides nice human-readable output for arrays when designing a CLI or just output data.

This package contains the Python 2 module.

There are three methods to install python-texttable 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-texttable 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-texttable using apt-get by running the following command:

sudo apt-get -y install python-texttable

Install python-texttable Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-texttable

Install python-texttable 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-texttable using aptitude by running the following command:

sudo aptitude -y install python-texttable

How To Uninstall python-texttable on Debian 9

To uninstall only the python-texttable package we can use the following command:

sudo apt-get remove python-texttable

Uninstall python-texttable And Its Dependencies

To uninstall python-texttable and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python-texttable

Remove python-texttable Configurations and Data

To remove python-texttable configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-texttable

Remove python-texttable configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-texttable

Dependencies

python-texttable have the following dependencies:

References

Summary

In this tutorial we learn how to install python-texttable package on Debian 9 using different package management tools: apt, apt-get and aptitude.