How To Install perl-common-sense.noarch on Amazon Linux 2

In this tutorial we learn how to install perl-common-sense.noarch in Amazon Linux 2. perl-common-sense.noarch is “Common sense” Perl defaults

Introduction

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

What is perl-common-sense.noarch

This module implements some sane defaults for Perl programs, as defined by two typical (or not so typical - use your common sense) specimens of Perl coders It’s supposed to be mostly the same, with much lower memory usage, as use utf8; use strict qw(vars subs); use feature qw(say state switch); use feature qw(unicode_strings unicode_eval current_sub fc evalbytes); no feature qw(array_base); no warnings; use warnings qw(FATAL closed threads internal debugging pack portable prototype inplace io pipe unpack malloc deprecated glob digit printf layer reserved taint closure semicolon); no warnings qw(exec newline unopened);

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

Install perl-common-sense.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-common-sense.noarch using yum by running the following command:

sudo yum -y install perl-common-sense.noarch

How To Uninstall perl-common-sense.noarch on Amazon Linux 2

To uninstall only the perl-common-sense.noarch package we can use the following command:

sudo yum remove perl-common-sense.noarch

perl-common-sense.noarch Package Contents on Amazon Linux 2

/usr/share/doc/perl-common-sense-3.6
/usr/share/doc/perl-common-sense-3.6/Changes
/usr/share/doc/perl-common-sense-3.6/LICENSE
/usr/share/doc/perl-common-sense-3.6/README
/usr/share/doc/perl-common-sense-3.6/t
/usr/share/doc/perl-common-sense-3.6/t/00_load.t
/usr/share/man/man3/common::sense.3pm.gz
/usr/share/perl5/vendor_perl/common
/usr/share/perl5/vendor_perl/common/sense.pm

References

Summary

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