How To Install libgsl2 on Debian 9
Introduction
In this tutorial we learn how to install libgsl2
on Debian 9.
What is libgsl2
libgsl2 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.
GSL includes data types and routines for complex numbers, vectors, matrices, basic linear algebra subroutines (BLAS), eigensystems, simulated annealing, minimization, root finding, pseudo-random numbers, least-squares fitting, fast Fourier transforms (FFT), differential equations, quadrature, Monte Carlo integration, special functions, physical constants, and much more.
This package provides the shared libraries required to run programs compiled with GNU GSL. To compile your own programs you also need to install libgsl0-dev.
URL: http://www.gnu.org/software/gsl/
There are three methods to install libgsl2
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 libgsl2 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgsl2
using apt-get
by running the following command:
sudo apt-get -y install libgsl2
Install libgsl2 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgsl2
using apt
by running the following command:
sudo apt -y install libgsl2
Install libgsl2 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 libgsl2
using aptitude
by running the following command:
sudo aptitude -y install libgsl2
How To Uninstall libgsl2 on Debian 9
To uninstall only the libgsl2
package we can use the following command:
sudo apt-get remove libgsl2
Uninstall libgsl2 And Its Dependencies
To uninstall libgsl2
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libgsl2
Remove libgsl2 Configurations and Data
To remove libgsl2
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libgsl2
Remove libgsl2 configuration, data, and all of its dependencies
We can use the following command to remove libgsl2
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgsl2
Dependencies
libgsl2 have the following dependencies:
References
Summary
In this tutorial we learn how to install libgsl2
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.