How To Install perl-common-sense on CentOS 7

In this tutorial we learn how to install perl-common-sense on CentOS 7. perl-common-sense is Common sense Perl defaults

Introduction

In this tutorial we learn how to install perl-common-sense on CentOS 7.

What is perl-common-sense

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 or dnf to install perl-common-sense on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-common-sense.

Install perl-common-sense on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-common-sense using yum by running the following command:

sudo yum -y install perl-common-sense

Install perl-common-sense 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.

sudo dnf makecache

After updating yum database, We can install perl-common-sense using dnf by running the following command:

sudo dnf -y install perl-common-sense

How To Uninstall perl-common-sense on CentOS 7

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

sudo dnf remove perl-common-sense

References

Summary

In this tutorial we learn how to install perl-common-sense on CentOS 7 using yum and dnf.