How To Install python-pika-pool on Ubuntu 18.04

In this tutorial we learn how to install python-pika-pool on Ubuntu 18.04. python-pika-pool is Pika connection pooling - Python 2.7

Introduction

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

What is python-pika-pool

python-pika-pool is:

Pika-pool is a Pika connection pooling inspired by flask-pika and SQLAlchemy pool.Pool. Typically you’ll go with local RabbitMQ shovels, krazee-eyez kombu, etc. But this works too.

This package contains the Python 2.7 module.

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

sudo apt-get -y install python-pika-pool

Install python-pika-pool Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-pika-pool

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

sudo aptitude -y install python-pika-pool

How To Uninstall python-pika-pool on Ubuntu 18.04

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

sudo apt-get remove python-pika-pool

Uninstall python-pika-pool And Its Dependencies

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

sudo apt-get -y autoremove python-pika-pool

Remove python-pika-pool Configurations and Data

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

sudo apt-get -y purge python-pika-pool

Remove python-pika-pool configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-pika-pool

References

Summary

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