How To Install armadillo on AlmaLinux 8

In this tutorial we learn how to install armadillo in AlmaLinux 8. armadillo is Fast C++ matrix library with syntax similar to MATLAB and Octave

Introduction

In this tutorial we learn how to install armadillo on AlmaLinux 8.

What is armadillo

Armadillo is a C++ linear algebra library (matrix maths) aiming towards a good balance between speed and ease of use. Integer, floating point and complex numbers are supported, as well as a subset of trigonometric and statistics functions. Various matrix decompositions are provided through optional integration with LAPACK and ATLAS libraries. A delayed evaluation approach is employed (during compile time) to combine several operations into one and reduce (or eliminate) the need for temporaries. This is accomplished through recursive templates and template meta-programming. This library is useful if C++ has been decided as the language of choice (due to speed and/or integration capabilities), rather than another language like Matlab or Octave.

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

Install armadillo on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install armadillo

Install armadillo on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install armadillo

How To Uninstall armadillo on AlmaLinux 8

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

sudo dnf remove armadillo

References

Summary

In this tutorial we learn how to install armadillo on AlmaLinux 8 using yum and dnf.