How To Install libosip2-dev on Debian 10

Learn how to install libosip2-dev on Debian 10 with this tutorial. libosip2-dev is development files for the SIP library

Introduction

In this tutorial we learn how to install libosip2-dev on Debian 10.

What is libosip2-dev

libosip2-dev is:

libosip2 header files and static libraries to assist in development of programs wishing to use SIP.

The oSIP library is written in C, is thread safe and has no dependencies except the standard C library.

oSIP could be used to implement an IP soft-phone as well as embedded SIP software. oSIP is not limited to endpoint agents implementations and can also be used to implement SIP proxies or registration services.

oSIP currently provides an API for the SIP message parser, SDP message parser, and library to handle “SIP transactions” as defined by the SIP standards (RFC3261).

There are three methods to install libosip2-dev on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libosip2-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libosip2-dev using apt-get by running the following command:

sudo apt-get -y install libosip2-dev

Install libosip2-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libosip2-dev

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

sudo aptitude -y install libosip2-dev

How To Uninstall libosip2-dev on Debian 10

To uninstall only the libosip2-dev package we can use the following command:

sudo apt-get remove libosip2-dev

Uninstall libosip2-dev And Its Dependencies

To uninstall libosip2-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libosip2-dev

Remove libosip2-dev Configurations and Data

To remove libosip2-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libosip2-dev

Remove libosip2-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libosip2-dev

Dependencies

libosip2-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libosip2-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.