How To Install python-messaging on Debian 9

In this tutorial we learn how to install python-messaging on Debian 9. python-messaging is SMS/MMS encoder/decoder

Introduction

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

What is python-messaging

python-messaging is:

SMS Features * Supports 7bit, 8bit and UCS2 encodings * Multipart encoding/decoding * Status report encoding/decoding * Relative validity * Alphanumeric address decoding * Supports Python 2.x

MMS Features * SMIL support * Main formats supported: jpg, gif, arm, 3gp, midi, etc. * Supports MMS 1.0-1.4 decoding/encoding * Supports Python 2.x

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

sudo apt-get -y install python-messaging

Install python-messaging Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-messaging

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

sudo aptitude -y install python-messaging

How To Uninstall python-messaging on Debian 9

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

sudo apt-get remove python-messaging

Uninstall python-messaging And Its Dependencies

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

sudo apt-get -y autoremove python-messaging

Remove python-messaging Configurations and Data

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

sudo apt-get -y purge python-messaging

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

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

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

Dependencies

python-messaging have the following dependencies:

References

Summary

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