How To Install perl-Test-Warn.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-Test-Warn.noarch in Amazon Linux 2. perl-Test-Warn.noarch is Perl extension to test methods for warnings

Introduction

In this tutorial we learn how to install perl-Test-Warn.noarch on Amazon Linux 2.

What is perl-Test-Warn.noarch

This module provides a few convenience methods for testing warning based code.

We can use yum to install perl-Test-Warn.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-Warn.noarch.

Install perl-Test-Warn.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Test-Warn.noarch using yum by running the following command:

sudo yum -y install perl-Test-Warn.noarch

How To Uninstall perl-Test-Warn.noarch on Amazon Linux 2

To uninstall only the perl-Test-Warn.noarch package we can use the following command:

sudo yum remove perl-Test-Warn.noarch

perl-Test-Warn.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-Test-Warn-0.24
/usr/share/doc/perl-Test-Warn-0.24/Changes
/usr/share/doc/perl-Test-Warn-0.24/README
/usr/share/man/man3/Test::Warn.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/Warn.pm

References

Summary

In this tutorial we learn how to install perl-Test-Warn.noarch on Amazon Linux 2 using yum.