How To Install calc on AlmaLinux 8

In this tutorial we learn how to install calc in AlmaLinux 8. calc is Arbitrary precision arithmetic system and calculator

Introduction

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

What is calc

Calc is an arbitrary precision C-like arithmetic system that is a calculator, an algorithm-prototyper, and a mathematical research tool. Calc comes with a rich set of built-in mathematical and programmatic functions. Note been converted to the ordinary GPL as per section 3 of the LGPL. See the included calc-converted-to-gpl.txt document for details.

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

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

sudo dnf -y install calc

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

sudo yum -y install calc

How To Uninstall calc on AlmaLinux 8

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

sudo dnf remove calc

References

Summary

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