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

In this tutorial we learn how to install perl-Test-LeakTrace on Rocky Linux 8. perl-Test-LeakTrace is Trace memory leaks

Introduction

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

What is perl-Test-LeakTrace

Test scans arenas, the memory allocation system, so it can detect any leaked SVs in given blocks. Leaked SVs are SVs that are not released after the end of the scope they have been created. These SVs include global variables and internal caches. For example, if you call a method in a tracing block, perl might prepare a cache for the method. Thus, to trace true leaks, no_leaks_ok() and leaks_cmp_ok() executes a block more than once.

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

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

sudo dnf -y install perl-Test-LeakTrace

Install perl-Test-LeakTrace 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-LeakTrace using yum by running the following command:

sudo yum -y install perl-Test-LeakTrace

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

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

sudo dnf remove perl-Test-LeakTrace

perl-Test-LeakTrace Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/4db51d498583e58946a0660143b5d83fde92ae
/usr/lib64/perl5/vendor_perl/Test
/usr/lib64/perl5/vendor_perl/Test/LeakTrace
/usr/lib64/perl5/vendor_perl/Test/LeakTrace.pm
/usr/lib64/perl5/vendor_perl/Test/LeakTrace/JA.pod
/usr/lib64/perl5/vendor_perl/Test/LeakTrace/Script.pm
/usr/lib64/perl5/vendor_perl/auto/Test
/usr/lib64/perl5/vendor_perl/auto/Test/LeakTrace
/usr/lib64/perl5/vendor_perl/auto/Test/LeakTrace/LeakTrace.so
/usr/share/doc/perl-Test-LeakTrace
/usr/share/doc/perl-Test-LeakTrace/Changes
/usr/share/doc/perl-Test-LeakTrace/README
/usr/share/doc/perl-Test-LeakTrace/benchmark
/usr/share/doc/perl-Test-LeakTrace/benchmark/devel_leaktrace.pl
/usr/share/doc/perl-Test-LeakTrace/benchmark/dlt_fast.pl
/usr/share/doc/perl-Test-LeakTrace/benchmark/nothing.pl
/usr/share/doc/perl-Test-LeakTrace/benchmark/tlt.pl
/usr/share/doc/perl-Test-LeakTrace/example
/usr/share/doc/perl-Test-LeakTrace/example/callback.pl
/usr/share/doc/perl-Test-LeakTrace/example/leaked_refs.pl
/usr/share/doc/perl-Test-LeakTrace/example/leaktrace.t
/usr/share/doc/perl-Test-LeakTrace/example/method_cache.pl
/usr/share/doc/perl-Test-LeakTrace/example/script.pl
/usr/share/doc/perl-Test-LeakTrace/example/simple.pl
/usr/share/doc/perl-Test-LeakTrace/example/test_fail.pl
/usr/share/doc/perl-Test-LeakTrace/example/weakref.pl
/usr/share/doc/perl-Test-LeakTrace/t
/usr/share/doc/perl-Test-LeakTrace/t/00_compile.t
/usr/share/doc/perl-Test-LeakTrace/t/01_info.t
/usr/share/doc/perl-Test-LeakTrace/t/02_refs.t
/usr/share/doc/perl-Test-LeakTrace/t/03_count.t
/usr/share/doc/perl-Test-LeakTrace/t/04_test_funcs.t
/usr/share/doc/perl-Test-LeakTrace/t/05_script.t
/usr/share/doc/perl-Test-LeakTrace/t/06_threads.t
/usr/share/doc/perl-Test-LeakTrace/t/07_eval.t
/usr/share/doc/perl-Test-LeakTrace/t/08_leaktrace.t
/usr/share/doc/perl-Test-LeakTrace/t/09_info_more.t
/usr/share/doc/perl-Test-LeakTrace/t/10_bad_use.t
/usr/share/doc/perl-Test-LeakTrace/t/11_logfp.t
/usr/share/doc/perl-Test-LeakTrace/t/12_padstale.t
/usr/share/doc/perl-Test-LeakTrace/t/13_do.t
/usr/share/doc/perl-Test-LeakTrace/t/lib
/usr/share/doc/perl-Test-LeakTrace/t/lib/foo.pl
/usr/share/doc/perl-Test-LeakTrace/xt
/usr/share/doc/perl-Test-LeakTrace/xt/01_podspell.t
/usr/share/doc/perl-Test-LeakTrace/xt/02_pod.t
/usr/share/doc/perl-Test-LeakTrace/xt/03_pod-coverage.t
/usr/share/doc/perl-Test-LeakTrace/xt/04_synopsis.t
/usr/share/doc/perl-Test-LeakTrace/xt/05_valgrind.t
/usr/share/man/man3/Test::LeakTrace.3pm.gz
/usr/share/man/man3/Test::LeakTrace::JA.3pm.gz
/usr/share/man/man3/Test::LeakTrace::Script.3pm.gz

References

Summary

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