How To Install opensips-cpl-module on Ubuntu 18.04

In this tutorial we learn how to install opensips-cpl-module on Ubuntu 18.04. opensips-cpl-module is CPL module (CPL interpreter engine) for OpenSIPS

Introduction

In this tutorial we learn how to install opensips-cpl-module on Ubuntu 18.04.

What is opensips-cpl-module

opensips-cpl-module is:

OpenSIPS is a very fast and flexible SIP (RFC3261) server. Written entirely in C, OpenSIPS can handle thousands calls per second even on low-budget hardware.

This package provides a CPL (Call Processing Language) interpreter for OpenSIPS, turning OpenSIPS into a CPL server (storage and interpreter).

There are three methods to install opensips-cpl-module 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 opensips-cpl-module Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install opensips-cpl-module using apt-get by running the following command:

sudo apt-get -y install opensips-cpl-module

Install opensips-cpl-module Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install opensips-cpl-module using apt by running the following command:

sudo apt -y install opensips-cpl-module

Install opensips-cpl-module 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 opensips-cpl-module using aptitude by running the following command:

sudo aptitude -y install opensips-cpl-module

How To Uninstall opensips-cpl-module on Ubuntu 18.04

To uninstall only the opensips-cpl-module package we can use the following command:

sudo apt-get remove opensips-cpl-module

Uninstall opensips-cpl-module And Its Dependencies

To uninstall opensips-cpl-module and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove opensips-cpl-module

Remove opensips-cpl-module Configurations and Data

To remove opensips-cpl-module configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge opensips-cpl-module

Remove opensips-cpl-module configuration, data, and all of its dependencies

We can use the following command to remove opensips-cpl-module configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge opensips-cpl-module

References

Summary

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