How To Install perl-Test-MemoryGrowth on Rocky Linux 8

In this tutorial we learn how to install perl-Test-MemoryGrowth on Rocky Linux 8. perl-Test-MemoryGrowth is Assert that code does not cause growth in memory usage

Introduction

In this tutorial we learn how to install perl-Test-MemoryGrowth on Rocky Linux 8.

What is perl-Test-MemoryGrowth

This module provides a function to check that a given block of code does not result in the process consuming extra memory once it has finished. Despite the name of this module it does not, in the strictest sense of the word, test for a memory leak where memory has been allocated but all record of it has been lost, so it cannot possibly be reclaimed. While the method employed by this module can detect such bugs, it can also detect cases where memory is still referenced and reachable, but the usage has grown more than would be expected or necessary.

We can use yum or dnf to install perl-Test-MemoryGrowth on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-MemoryGrowth.

Install perl-Test-MemoryGrowth on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install perl-Test-MemoryGrowth

Install perl-Test-MemoryGrowth on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install perl-Test-MemoryGrowth

How To Uninstall perl-Test-MemoryGrowth on Rocky Linux 8

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

sudo dnf remove perl-Test-MemoryGrowth

perl-Test-MemoryGrowth Package Contents on Rocky Linux 8

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

References

Summary

In this tutorial we learn how to install perl-Test-MemoryGrowth on Rocky Linux 8 using yum and dnf.