How To Install perl-Test-MemoryGrowth on CentOS 8
Introduction
In this tutorial we learn how to install perl-Test-MemoryGrowth on CentOS 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 CentOS 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 CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install perl-Test-MemoryGrowth using yum by running the following command:
sudo yum -y install perl-Test-MemoryGrowth
Install perl-Test-MemoryGrowth on CentOS 8 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-MemoryGrowth using dnf by running the following command:
sudo dnf -y install perl-Test-MemoryGrowth
How To Uninstall perl-Test-MemoryGrowth on CentOS 8
To uninstall only the perl-Test-MemoryGrowth package we can use the following command:
sudo dnf remove perl-Test-MemoryGrowth
References
Summary
In this tutorial we learn how to install perl-Test-MemoryGrowth on CentOS 8 using yum and dnf.