How To Install perl-Unicode-Map on CentOS 7

In this tutorial we learn how to install perl-Unicode-Map on CentOS 7. perl-Unicode-Map is Perl module for mapping charsets from and to utf16 unicode

Introduction

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

What is perl-Unicode-Map

This module converts strings from and to 2-byte Unicode UCS2 format. All mappings happen via 2 byte UTF16 encodings, not via 1 byte UTF8 encoding. To convert between UTF8 and UTF16 use Unicode Unicode for >1 byte character sets, e.g. chinese GB2312. Anyway, if you stick to the basic functionality (see documentation) you can use both modules equivalently.

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

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

sudo yum -y install perl-Unicode-Map

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

sudo dnf -y install perl-Unicode-Map

How To Uninstall perl-Unicode-Map on CentOS 7

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

sudo dnf remove perl-Unicode-Map

References

Summary

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