How To Install python-tdb on Debian 9

In this tutorial we learn how to install python-tdb on Debian 9. python-tdb is Python bindings for TDB

Introduction

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

What is python-tdb

python-tdb is:

This is a simple database API. It is modelled after the structure of GDBM. TDB features, unlike GDBM, multiple writers support with appropriate locking and transactions.

This package contains the Python bindings.

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

sudo apt-get -y install python-tdb

Install python-tdb Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-tdb

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

sudo aptitude -y install python-tdb

How To Uninstall python-tdb on Debian 9

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

sudo apt-get remove python-tdb

Uninstall python-tdb And Its Dependencies

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

sudo apt-get -y autoremove python-tdb

Remove python-tdb Configurations and Data

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

sudo apt-get -y purge python-tdb

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

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

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

Dependencies

python-tdb have the following dependencies:

References

Summary

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