How To Install libgsl27 on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 439 words
Introduction
In this tutorial we learn how to install libgsl27
on Ubuntu.
What is libgsl27
libgsl27 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 libgsl-dev.
URL: http://www.gnu.org/software/gsl/
There are three methods to install libgsl27
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libgsl27 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgsl27
using apt-get
by running the following command:
sudo apt-get -y install libgsl27
Install libgsl27 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgsl27
using apt
by running the following command:
sudo apt -y install libgsl27
Install libgsl27 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 libgsl27
using aptitude
by running the following command:
sudo aptitude -y install libgsl27
How To Uninstall libgsl27 on Ubuntu
To uninstall only the libgsl27
package we can use the following command:
sudo apt-get remove libgsl27
Uninstall libgsl27 And Its Dependencies
To uninstall libgsl27
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libgsl27
Remove libgsl27 Configurations and Data
To remove libgsl27
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libgsl27
Remove libgsl27 configuration, data, and all of its dependencies
We can use the following command to remove libgsl27
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgsl27
Dependencies
libgsl27 have the following dependencies:
References
Summary
In this tutorial we learn how to install libgsl27
package on Ubuntu using different package management tools: apt, apt-get and aptitude.