How To Install libortp-dev on Ubuntu 18.04

In this tutorial we learn how to install libortp-dev on Ubuntu 18.04. libortp-dev is Real-time Transport Protocol stack - development files

Introduction

In this tutorial we learn how to install libortp-dev on Ubuntu 18.04.

What is libortp-dev

libortp-dev is:

This library implements the RFC 1889 (RTP) with a easy to use API with high and low level access.

The main features are:

  • support for multiple profiles, AV profile (RFC 1890) being the default one;
  • an optional packet scheduler for synchronizing RTP recv and send;
  • implements blocking and non blocking IO for RTP sessions;
  • supports multiplexing IO;
  • supports part of RFC 2833 for telephone events over RTP.

This package contains the development files.

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

sudo apt-get -y install libortp-dev

Install libortp-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libortp-dev

Install libortp-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libortp-dev

How To Uninstall libortp-dev on Ubuntu 18.04

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

sudo apt-get remove libortp-dev

Uninstall libortp-dev And Its Dependencies

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

sudo apt-get -y autoremove libortp-dev

Remove libortp-dev Configurations and Data

To remove libortp-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libortp-dev

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

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

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

References

Summary

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