How To Install libgsl-dev on Debian 9

In this tutorial we learn how to install libgsl-dev on Debian 9. libgsl-dev is GNU Scientific Library (GSL) – development package

Introduction

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

What is libgsl-dev

libgsl-dev is:

The GNU Scientific Library (GSL) is a collection of routines for numerical analysis. The routines are written from scratch by the GSL team in C, and present a modern API for C programmers, while allowing wrappers to be written for very high level languages.

This package contains the header files, static libraries and symbolic links that developers using GNU GSL will need.

URL: http://www.gnu.org/software/gsl/

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

sudo apt-get -y install libgsl-dev

Install libgsl-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgsl-dev

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

sudo aptitude -y install libgsl-dev

How To Uninstall libgsl-dev on Debian 9

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

sudo apt-get remove libgsl-dev

Uninstall libgsl-dev And Its Dependencies

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

sudo apt-get -y autoremove libgsl-dev

Remove libgsl-dev Configurations and Data

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

sudo apt-get -y purge libgsl-dev

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

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

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

Dependencies

libgsl-dev have the following dependencies:

References

Summary

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