How To Install perl-Test-SubCalls.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Test-SubCalls.noarch in Amazon Linux 2. perl-Test-SubCalls.noarch is Track the number of times subs are called

Introduction

In this tutorial we learn how to install perl-Test-SubCalls.noarch on Amazon Linux 2.

What is perl-Test-SubCalls.noarch

There is a number of different situations (like testing caching code) where you want to do a number of tests, and then verify that some underlying subroutine deep within the code was called a specific number of times.

We can use yum to install perl-Test-SubCalls.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-SubCalls.noarch.

Install perl-Test-SubCalls.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Test-SubCalls.noarch using yum by running the following command:

sudo yum -y install perl-Test-SubCalls.noarch

How To Uninstall perl-Test-SubCalls.noarch on Amazon Linux 2

To uninstall only the perl-Test-SubCalls.noarch package we can use the following command:

sudo yum remove perl-Test-SubCalls.noarch

perl-Test-SubCalls.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Test-SubCalls-1.09
/usr/share/doc/perl-Test-SubCalls-1.09/Changes
/usr/share/doc/perl-Test-SubCalls-1.09/LICENSE
/usr/share/doc/perl-Test-SubCalls-1.09/README
/usr/share/man/man3/Test::SubCalls.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/SubCalls.pm

References

Summary

In this tutorial we learn how to install perl-Test-SubCalls.noarch on Amazon Linux 2 using yum.