How To Install python-carrot on Debian 9

In this tutorial we learn how to install python-carrot on Debian 9. python-carrot is AMQP messaging queue framework

Introduction

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

What is python-carrot

python-carrot is:

AMQP is the Advanced Message Queuing Protocol, an open standard protocol for message orientation, queuing, routing, reliability and security.

The aim of carrot is to make messaging in Python as easy as possible by providing a high-level interface for producing and consuming messages. At the same time it is a goal to re-use what is already available as much as possible.

carrot has pluggable messaging back-ends, so it is possible to support several messaging systems. Currently, there is support for AMQP (py-amqplib) and STOMP (python-stomp). There is also a in-memory backend for testing purposes that uses the Python queue module.

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

sudo apt-get -y install python-carrot

Install python-carrot Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-carrot

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

sudo aptitude -y install python-carrot

How To Uninstall python-carrot on Debian 9

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

sudo apt-get remove python-carrot

Uninstall python-carrot And Its Dependencies

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

sudo apt-get -y autoremove python-carrot

Remove python-carrot Configurations and Data

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

sudo apt-get -y purge python-carrot

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

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

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

Dependencies

python-carrot have the following dependencies:

References

Summary

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