How To Install perl-Test-Valgrind on CentOS 7
Introduction
In this tutorial we learn how to install perl-Test-Valgrind
on CentOS 7.
What is perl-Test-Valgrind
The Test memcheck tool of the valgrind memory debugger, to test for memory errors and leaks. The Test to this API. If they aren’t available yet, it will first generate suppressions for the current perl interpreter and store them in the portable flavor of ~/.perl/Test-Valgrind/suppressions/$VERSION. The actual run will then take place, and tests will be passed or failed according to the result of the analysis. The complete API is much more versatile than this. By declaring an appropriate Test executable (that is, not only Perl scripts) under valgrind, generate the corresponding suppressions on-the-fly and convert the analysis result to TAP output so that it can be incorporated into your project’s test suite. If you’re not interested in producing TAP, you can output the results in whatever format you like (for example HTML pages) by defining your own Test class.
We can use yum
or dnf
to install perl-Test-Valgrind
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-Valgrind.
Install perl-Test-Valgrind on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Test-Valgrind
using yum
by running the following command:
Install perl-Test-Valgrind on CentOS 7 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.
After updating yum database, We can install perl-Test-Valgrind
using dnf
by running the following command:
How To Uninstall perl-Test-Valgrind on CentOS 7
To uninstall only the perl-Test-Valgrind
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Test-Valgrind
on CentOS 7 using yum
and dnf
.