How To Install calc on CentOS 7

In this tutorial we learn how to install calc on CentOS 7. calc is Arbitrary precision arithmetic system and calculator

Introduction

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

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

Install calc on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install calc

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

sudo dnf -y install calc

How To Uninstall calc on CentOS 7

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 CentOS 7 using yum and dnf.