How To Install perl-Unicode-CheckUTF8 on Rocky Linux 8

In this tutorial we learn how to install perl-Unicode-CheckUTF8 on Rocky Linux 8. perl-Unicode-CheckUTF8 is Checks if scalar is valid UTF-8

Introduction

In this tutorial we learn how to install perl-Unicode-CheckUTF8 on Rocky Linux 8.

What is perl-Unicode-CheckUTF8

This is an XS wrapper around some Unicode Consortium code to check if a string is valid UTF-8, revised to conform to what expat/Mozilla think is valid UTF-8, especially with regard to low-ASCII characters. Note that this module has NOTHING to do with Perl’s internal UTF8 flag on scalars. This module is for use when you’re getting input from users and want to make sure it’s valid UTF-8 before continuing.

We can use yum or dnf to install perl-Unicode-CheckUTF8 on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Unicode-CheckUTF8.

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

sudo dnf -y install perl-Unicode-CheckUTF8

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

sudo yum -y install perl-Unicode-CheckUTF8

How To Uninstall perl-Unicode-CheckUTF8 on Rocky Linux 8

To uninstall only the perl-Unicode-CheckUTF8 package we can use the following command:

sudo dnf remove perl-Unicode-CheckUTF8

perl-Unicode-CheckUTF8 Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/723349678899ed9a016f99d7d2b3a9d135c2ad
/usr/lib64/perl5/vendor_perl/Unicode
/usr/lib64/perl5/vendor_perl/Unicode/CheckUTF8.pm
/usr/lib64/perl5/vendor_perl/auto/Unicode
/usr/lib64/perl5/vendor_perl/auto/Unicode/CheckUTF8
/usr/lib64/perl5/vendor_perl/auto/Unicode/CheckUTF8/CheckUTF8.so
/usr/share/doc/perl-Unicode-CheckUTF8
/usr/share/doc/perl-Unicode-CheckUTF8/CHANGES
/usr/share/man/man3/Unicode::CheckUTF8.3pm.gz

References

Summary

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