How To Install libsoxr-dev on Debian 9

In this tutorial we learn how to install libsoxr-dev on Debian 9. libsoxr-dev is High quality 1D sample-rate conversion library (development files)

Introduction

In this tutorial we learn how to install libsoxr-dev on Debian 9.

What is libsoxr-dev

libsoxr-dev is:

The SoX Resampler library `libsoxr’ performs one-dimensional sample-rate conversion - it may be used, for example, to resample PCM-encoded audio.

It aims to give fast and high quality results for any constant (rational or irrational) resampling ratio. Phase-response, preserved bandwidth, aliasing, and rejection level parameters are all configurable; alternatively, simple `preset’ configurations may be selected.

A simple API is provided that allows interfacing using commonly-used sample formats and buffering schemes.

This package contains the development files.

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

Install libsoxr-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 libsoxr-dev using apt-get by running the following command:

sudo apt-get -y install libsoxr-dev

Install libsoxr-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsoxr-dev

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

sudo aptitude -y install libsoxr-dev

How To Uninstall libsoxr-dev on Debian 9

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

sudo apt-get remove libsoxr-dev

Uninstall libsoxr-dev And Its Dependencies

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

sudo apt-get -y autoremove libsoxr-dev

Remove libsoxr-dev Configurations and Data

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

sudo apt-get -y purge libsoxr-dev

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

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

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

Dependencies

libsoxr-dev have the following dependencies:

References

Summary

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