How To Install perl-Unicode-CheckUTF8 on CentOS 7

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

Introduction

In this tutorial we learn how to install perl-Unicode-CheckUTF8 on CentOS 7.

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 CentOS 7. 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 CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install perl-Unicode-CheckUTF8

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

sudo dnf -y install perl-Unicode-CheckUTF8

How To Uninstall perl-Unicode-CheckUTF8 on CentOS 7

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

sudo dnf remove perl-Unicode-CheckUTF8

References

Summary

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