How To Install arpack on CentOS 8

arpack is Fortran 77 subroutines for solving large scale eigenvalue problems

Introduction

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

What is arpack

ARPACK is a collection of Fortran 77 subroutines designed to solve large scale eigenvalue problems. The package is designed to compute a few eigenvalues and corresponding eigenvectors of a general n by n matrix A. It is most appropriate for large sparse or structured matrices A where structured means that a matrix-vector product w <- Av requires order n rather than the usual order n**2 floating point operations. This software is based upon an algorithmic variant of the Arnoldi process called the Implicitly Restarted Arnoldi Method (IRAM).

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

Install arpack 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 arpack using dnf by running the following command:

sudo dnf -y install arpack

Install arpack 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 arpack using yum by running the following command:

sudo yum -y install arpack

How To Uninstall arpack on CentOS 8

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

sudo dnf remove arpack

arpack Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/3e021eacb0c7ec2a02205606defe68e798955d
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/4802473df5739003aac76e70daf7df783f9097
/usr/lib64/libarpack.so.2
/usr/lib64/libarpack.so.2.1.0
/usr/lib64/libarpack64_.so.2
/usr/lib64/libarpack64_.so.2.1.0
/usr/share/doc/arpack
/usr/share/doc/arpack/CHANGES
/usr/share/doc/arpack/README.md
/usr/share/licenses/arpack
/usr/share/licenses/arpack/COPYING

References

Summary

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