How To Install libtest-memorygrowth-perl on Kali Linux

In this tutorial we learn how to install libtest-memorygrowth-perl on Kali Linux. libtest-memorygrowth-perl is module to assert that code does not cause growth in memory usage

Introduction

In this tutorial we learn how to install libtest-memorygrowth-perl on Kali Linux.

What is libtest-memorygrowth-perl

libtest-memorygrowth-perl is:

Test::MemoryGrowth 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: that term is specifically applied to cases 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.

The block of code will be run a large number of times (by default 10,000), and the difference in memory usage by the process before and after is compared. If the memory usage has now increased by more than one byte per call, then the test fails.

There are three methods to install libtest-memorygrowth-perl on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libtest-memorygrowth-perl Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libtest-memorygrowth-perl using apt-get by running the following command:

sudo apt-get -y install libtest-memorygrowth-perl

Install libtest-memorygrowth-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtest-memorygrowth-perl using apt by running the following command:

sudo apt -y install libtest-memorygrowth-perl

Install libtest-memorygrowth-perl Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libtest-memorygrowth-perl using aptitude by running the following command:

sudo aptitude -y install libtest-memorygrowth-perl

How To Uninstall libtest-memorygrowth-perl on Kali Linux

To uninstall only the libtest-memorygrowth-perl package we can use the following command:

sudo apt-get remove libtest-memorygrowth-perl

Uninstall libtest-memorygrowth-perl And Its Dependencies

To uninstall libtest-memorygrowth-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libtest-memorygrowth-perl

Remove libtest-memorygrowth-perl Configurations and Data

To remove libtest-memorygrowth-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libtest-memorygrowth-perl

Remove libtest-memorygrowth-perl configuration, data, and all of its dependencies

We can use the following command to remove libtest-memorygrowth-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libtest-memorygrowth-perl

Dependencies

libtest-memorygrowth-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libtest-memorygrowth-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.