How To Install libsip-api-java on Ubuntu 18.04

In this tutorial we learn how to install libsip-api-java on Ubuntu 18.04. libsip-api-java is SIP API for Java

Introduction

In this tutorial we learn how to install libsip-api-java on Ubuntu 18.04.

What is libsip-api-java

libsip-api-java is:

The SIP API specification provides a standard portable interface to share information between SIP Clients and SIP Servers, providing call control elements enabling converged-network applications.

This is a reimplementation of the JSR 32 specification due to a non-free license of the reference implementation.

There are three methods to install libsip-api-java 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 libsip-api-java Using apt-get

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

sudo apt-get update

After updating apt database, We can install libsip-api-java using apt-get by running the following command:

sudo apt-get -y install libsip-api-java

Install libsip-api-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libsip-api-java using apt by running the following command:

sudo apt -y install libsip-api-java

Install libsip-api-java 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 libsip-api-java using aptitude by running the following command:

sudo aptitude -y install libsip-api-java

How To Uninstall libsip-api-java on Ubuntu 18.04

To uninstall only the libsip-api-java package we can use the following command:

sudo apt-get remove libsip-api-java

Uninstall libsip-api-java And Its Dependencies

To uninstall libsip-api-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libsip-api-java

Remove libsip-api-java Configurations and Data

To remove libsip-api-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libsip-api-java

Remove libsip-api-java configuration, data, and all of its dependencies

We can use the following command to remove libsip-api-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libsip-api-java

References

Summary

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