How To Install perl-utf8-all on Rocky Linux 8

In this tutorial we learn how to install perl-utf8-all on Rocky Linux 8. perl-utf8-all is Turn on Unicode everywhere

Introduction

In this tutorial we learn how to install perl-utf8-all on Rocky Linux 8.

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 makes @ARGV encoded in UTF-8, and file 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 Rocky Linux 8. 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 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-utf8-all using dnf by running the following command:

sudo dnf -y install perl-utf8-all

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

sudo yum -y install perl-utf8-all

How To Uninstall perl-utf8-all on Rocky Linux 8

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

sudo dnf remove perl-utf8-all

perl-utf8-all Package Contents on Rocky Linux 8

/usr/share/doc/perl-utf8-all
/usr/share/doc/perl-utf8-all/Changes
/usr/share/doc/perl-utf8-all/README.mkdn
/usr/share/licenses/perl-utf8-all
/usr/share/licenses/perl-utf8-all/LICENSE
/usr/share/man/man3/utf8::all.3pm.gz
/usr/share/perl5/vendor_perl/utf8
/usr/share/perl5/vendor_perl/utf8/all.pm

References

Summary

In this tutorial we learn how to install perl-utf8-all on Rocky Linux 8 using yum and dnf.