How To Install python-stomp on Debian 10

Learn how to install python-stomp on Debian 10 with this tutorial. python-stomp is STOMP client library for Python 2

Introduction

In this tutorial we learn how to install python-stomp on Debian 10.

What is python-stomp

python-stomp is:

This package contains stomp.py, a Python client library for accessing messaging servers (such as Apollo or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2).

This package installs the library for Python 2.

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

sudo apt-get -y install python-stomp

Install python-stomp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-stomp

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

sudo aptitude -y install python-stomp

How To Uninstall python-stomp on Debian 10

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

sudo apt-get remove python-stomp

Uninstall python-stomp And Its Dependencies

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

sudo apt-get -y autoremove python-stomp

Remove python-stomp Configurations and Data

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

sudo apt-get -y purge python-stomp

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

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

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

Dependencies

python-stomp have the following dependencies:

References

Summary

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