How To Install libopus-dev on Ubuntu 18.04

In this tutorial we learn how to install libopus-dev on Ubuntu 18.04. libopus-dev is Opus codec library development files

Introduction

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

What is libopus-dev

libopus-dev is:

The Opus codec is designed for interactive speech and audio transmission over the Internet. It is designed by the IETF Codec Working Group and incorporates technology from Skype’s SILK codec and Xiph.Org’s CELT codec.

It is intended to suit a wide range of interactive audio applications, including Voice over IP, videoconferencing, in-game chat, and even remote live music performances. It can scale from low bit-rate narrowband speech to very high quality stereo music. The current features are:

Bit-rates from 6 kb/s 510 kb/s Sampling rates from 8 to 48 kHz Frame sizes from 2.5 ms to 60 ms Support for both constant bit-rate (CBR) and variable bit-rate (VBR) Audio bandwidth from narrowband to full-band Support for speech and music Support for mono and stereo Support for up to 255 channels (multistream frames) Dynamically adjustable bitrate, audio bandwidth, and frame size Good loss robustness and packet loss concealment (PLC) Floating point and fixed-point implementation

This package provides the Opus library headers and development files.

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

sudo apt-get -y install libopus-dev

Install libopus-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libopus-dev

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

sudo aptitude -y install libopus-dev

How To Uninstall libopus-dev on Ubuntu 18.04

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

sudo apt-get remove libopus-dev

Uninstall libopus-dev And Its Dependencies

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

sudo apt-get -y autoremove libopus-dev

Remove libopus-dev Configurations and Data

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

sudo apt-get -y purge libopus-dev

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

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

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

References

Summary

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