How To Install perl-Test-Warnings on Rocky Linux 8
Introduction
In this tutorial we learn how to install perl-Test-Warnings
on Rocky Linux 8.
What is perl-Test-Warnings
If you’ve ever tried to use Test generated by your tests, combined with the convenience of done_testing to not have to declare a test count, you’ll have discovered that these two features do not play well together, as the test count will be calculated before the warnings test is run, resulting in a TAP error (see examples/test_nowarnings.pl in this distribution for a demonstration). This module is intended to be used as a drop-in replacement for Test done_testing calculates the test count, rather than after. It does this by hooking into done_testing as well as via an END block. You can declare a plan, or not, and things will still Just Work. It is actually equivalent to use Test as warnings are still printed normally as they occur. You are safe, and enthusiastically encouraged, to perform a global search-replace of the above with use Test
We can use yum
or dnf
to install perl-Test-Warnings
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-Warnings.
Install perl-Test-Warnings 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-Warnings
using dnf
by running the following command:
sudo dnf -y install perl-Test-Warnings
Install perl-Test-Warnings 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-Warnings
using yum
by running the following command:
sudo yum -y install perl-Test-Warnings
How To Uninstall perl-Test-Warnings on Rocky Linux 8
To uninstall only the perl-Test-Warnings
package we can use the following command:
sudo dnf remove perl-Test-Warnings
perl-Test-Warnings Package Contents on Rocky Linux 8
/usr/share/doc/perl-Test-Warnings
/usr/share/doc/perl-Test-Warnings/CONTRIBUTING
/usr/share/doc/perl-Test-Warnings/Changes
/usr/share/doc/perl-Test-Warnings/README
/usr/share/doc/perl-Test-Warnings/examples
/usr/share/doc/perl-Test-Warnings/examples/no_plan.t
/usr/share/doc/perl-Test-Warnings/examples/sub.t
/usr/share/doc/perl-Test-Warnings/examples/synopsis_1.t
/usr/share/doc/perl-Test-Warnings/examples/synopsis_2.t
/usr/share/doc/perl-Test-Warnings/examples/test_nowarnings.t
/usr/share/doc/perl-Test-Warnings/examples/test_warning_contents.t
/usr/share/doc/perl-Test-Warnings/examples/warning_like.t
/usr/share/doc/perl-Test-Warnings/examples/with_done_testing.t
/usr/share/doc/perl-Test-Warnings/examples/with_plan.t
/usr/share/licenses/perl-Test-Warnings
/usr/share/licenses/perl-Test-Warnings/LICENCE
/usr/share/man/man3/Test::Warnings.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/Warnings.pm
References
Summary
In this tutorial we learn how to install perl-Test-Warnings
on Rocky Linux 8 using yum and dnf.