How To Install perl-utf8-all on CentOS 7

In this tutorial we learn how to install perl-utf8-all on CentOS 7. perl-utf8-all is Turn on Unicode everywhere

Introduction

In this tutorial we learn how to install perl-utf8-all on CentOS 7.

What is perl-utf8-all

Pragma utf8 allows you to write your Perl encoded in UTF-8. That means UTF-8 strings, variable names, and regular expressions. utf8 handles are opened with UTF-8 encoding turned on by default (including STDIN, STDOUT, STDERR), and character names are imported so \N{…} sequences can be used to compile Unicode characters based on names. If you don’t want UTF-8 for a particular file handle, you’ll have to set binmode $filehandle.

We can use yum or dnf to install perl-utf8-all on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-utf8-all.

Install perl-utf8-all 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-utf8-all using yum by running the following command:

sudo yum -y install perl-utf8-all

Install perl-utf8-all 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-utf8-all using dnf by running the following command:

sudo dnf -y install perl-utf8-all

How To Uninstall perl-utf8-all on CentOS 7

To uninstall only the perl-utf8-all package we can use the following command:

sudo dnf remove perl-utf8-all

References

Summary

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