How To Install perl-Test-Number-Delta on CentOS 7

In this tutorial we learn how to install perl-Test-Number-Delta on CentOS 7. perl-Test-Number-Delta is Compare the difference between numbers against a given tolerance

Introduction

In this tutorial we learn how to install perl-Test-Number-Delta on CentOS 7.

What is perl-Test-Number-Delta

At some point or another, most programmers find they need to compare floating-point numbers for equality. The typical idiom is to test if the absolute value of the difference of the numbers is within a desired tolerance, usually called epsilon. This module provides such a function for use with Test

We can use yum or dnf to install perl-Test-Number-Delta on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-Number-Delta.

Install perl-Test-Number-Delta on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-Test-Number-Delta using yum by running the following command:

sudo yum -y install perl-Test-Number-Delta

Install perl-Test-Number-Delta 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 perl-Test-Number-Delta using dnf by running the following command:

sudo dnf -y install perl-Test-Number-Delta

How To Uninstall perl-Test-Number-Delta on CentOS 7

To uninstall only the perl-Test-Number-Delta package we can use the following command:

sudo dnf remove perl-Test-Number-Delta

References

Summary

In this tutorial we learn how to install perl-Test-Number-Delta on CentOS 7 using yum and dnf.