How To Install python-starpy on Debian 9

In this tutorial we learn how to install python-starpy on Debian 9. python-starpy is Asterisk (AMI) protocols for Twisted Python

Introduction

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

What is python-starpy

python-starpy is:

A Twisted Python protocol that provides access to the Asterisk PBX’s Manager Interface (AMI) and Fast Asterisk Gateway Interface (FastAGI). Together these allow you to write both command-and-control interfaces (used, for example to generate new calls) and to customize user interactions from the dial-plan.

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

sudo apt-get -y install python-starpy

Install python-starpy Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-starpy

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

sudo aptitude -y install python-starpy

How To Uninstall python-starpy on Debian 9

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

sudo apt-get remove python-starpy

Uninstall python-starpy And Its Dependencies

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

sudo apt-get -y autoremove python-starpy

Remove python-starpy Configurations and Data

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

sudo apt-get -y purge python-starpy

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

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

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

Dependencies

python-starpy have the following dependencies:

References

Summary

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