How To Install gsl on CentOS 8

gsl is The GNU Scientific Library for numerical analysis The GNU Scientific Library for numerical analysis

Introduction

In this tutorial we learn how to install gsl on CentOS 8.

What is gsl

The GNU Scientific Library (GSL) is a collection of routines for numerical analysis, written in C. gsl 2.5 1.el8 x86_64 1.0 M gsl-2.5-1.el8.src.rpm appstream The GNU Scientific Library for numerical analysis http GPLv3 and GFDL and BSD The GNU Scientific Library (GSL) is a collection of routines for numerical analysis, written in C.

We can use yum or dnf to install gsl on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install gsl.

Install gsl on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install gsl using dnf by running the following command:

sudo dnf -y install gsl

Install gsl on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install gsl using yum by running the following command:

sudo yum -y install gsl

How To Uninstall gsl on CentOS 8

To uninstall only the gsl package we can use the following command:

sudo dnf remove gsl

gsl Package Contents on CentOS 8

/usr/bin/gsl-histogram
/usr/bin/gsl-randist
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/5ffe4211b55075add03e4205d9123867172f3f
/usr/lib/.build-id/29
/usr/lib/.build-id/29/d80a14570d27a1171a528a7b35f734bfb58a99
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/9d1facd9c1ae473489ff5cf0cc0de224876baa
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/fbc984a1f2e2c29c2305fa33c2f9daa64a71a7
/usr/lib/libgsl.so.23
/usr/lib/libgsl.so.23.1.0
/usr/lib/libgslcblas.so.0
/usr/lib/libgslcblas.so.0.0.0
/usr/share/doc/gsl
/usr/share/doc/gsl/AUTHORS
/usr/share/doc/gsl/ChangeLog
/usr/share/doc/gsl/NEWS
/usr/share/doc/gsl/README
/usr/share/doc/gsl/THANKS
/usr/share/doc/gsl/TODO
/usr/share/licenses/gsl
/usr/share/licenses/gsl/COPYING
/usr/share/man/man1/gsl-histogram.1.gz
/usr/share/man/man1/gsl-randist.1.gz
/usr/bin/gsl-histogram
/usr/bin/gsl-randist
/usr/lib/.build-id
/usr/lib/.build-id/47
/usr/lib/.build-id/47/45ba2ba7efcce7c2f11ec36fe4b9c00978c1c0
/usr/lib/.build-id/82
/usr/lib/.build-id/82/dfc1f776e7eecd2bc911fd8474d5d7ec3bec42
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/bfc768d18676dc2aa44d23495f88c7a84d32b4
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/21859fc4bdbdd71f5a12ce62f64030a1201b6c
/usr/lib64/libgsl.so.23
/usr/lib64/libgsl.so.23.1.0
/usr/lib64/libgslcblas.so.0
/usr/lib64/libgslcblas.so.0.0.0
/usr/share/doc/gsl
/usr/share/doc/gsl/AUTHORS
/usr/share/doc/gsl/ChangeLog
/usr/share/doc/gsl/NEWS
/usr/share/doc/gsl/README
/usr/share/doc/gsl/THANKS
/usr/share/doc/gsl/TODO
/usr/share/licenses/gsl
/usr/share/licenses/gsl/COPYING
/usr/share/man/man1/gsl-histogram.1.gz
/usr/share/man/man1/gsl-randist.1.gz

References

Summary

In this tutorial we learn how to install gsl on CentOS 8 using yum and dnf.