How To Install opensips-berkeley-bin on Ubuntu 18.04

In this tutorial we learn how to install opensips-berkeley-bin on Ubuntu 18.04. opensips-berkeley-bin is Berkeley Database module for OpenSIPS - helper program

Introduction

In this tutorial we learn how to install opensips-berkeley-bin on Ubuntu 18.04.

What is opensips-berkeley-bin

opensips-berkeley-bin 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 the berkeley database module for OpenSIPS, a high-performance embedded DB kernel. You should normally install opensips-berkeley-module and not this package directly.

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

sudo apt-get -y install opensips-berkeley-bin

Install opensips-berkeley-bin Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install opensips-berkeley-bin

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

sudo aptitude -y install opensips-berkeley-bin

How To Uninstall opensips-berkeley-bin on Ubuntu 18.04

To uninstall only the opensips-berkeley-bin package we can use the following command:

sudo apt-get remove opensips-berkeley-bin

Uninstall opensips-berkeley-bin And Its Dependencies

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

sudo apt-get -y autoremove opensips-berkeley-bin

Remove opensips-berkeley-bin Configurations and Data

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

sudo apt-get -y purge opensips-berkeley-bin

Remove opensips-berkeley-bin configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge opensips-berkeley-bin

References

Summary

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