How To Install python-txzookeeper on Ubuntu 18.04

In this tutorial we learn how to install python-txzookeeper on Ubuntu 18.04. python-txzookeeper is Twisted-based Asynchronous Libraries for Apache Zookeeper.

Introduction

In this tutorial we learn how to install python-txzookeeper on Ubuntu 18.04.

What is python-txzookeeper

python-txzookeeper is:

This project’s goal is to have a complete Twisted API representing the spectrum of the underlying zookeeper api for constructing distributed applications.

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

sudo apt-get -y install python-txzookeeper

Install python-txzookeeper Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-txzookeeper

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

sudo aptitude -y install python-txzookeeper

How To Uninstall python-txzookeeper on Ubuntu 18.04

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

sudo apt-get remove python-txzookeeper

Uninstall python-txzookeeper And Its Dependencies

To uninstall python-txzookeeper and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-txzookeeper

Remove python-txzookeeper Configurations and Data

To remove python-txzookeeper configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-txzookeeper

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

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

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

References

Summary

In this tutorial we learn how to install python-txzookeeper package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.