How To Install arpack on CentOS 7

In this tutorial we learn how to install arpack on CentOS 7. arpack is Fortran 77 subroutines for solving large scale eigenvalue problems

Introduction

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

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 7. In this tutorial we discuss both methods but you only need to choose one of method to install arpack.

Install arpack on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install arpack

Install arpack on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install arpack

How To Uninstall arpack on CentOS 7

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

sudo dnf remove arpack

References

Summary

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