How To Install perl-Encode-HanExtra on CentOS 7
Introduction
In this tutorial we learn how to install perl-Encode-HanExtra
on CentOS 7.
What is perl-Encode-HanExtra
Perl 5.7.3 and later ships with an adequate set of Chinese encodings, including the commonly used CP950, CP936 (also known as GBK), Big5 (alias for Big5-Eten), Big5-HKSCS, EUC-CN, HZ, and ISO-IR-165. However, the numbers of Chinese encodings are staggering, and a complete coverage will easily increase the size of perl distribution by several megabytes; hence, this CPAN module tries to provide the rest of them. If you are using Perl 5.8 or later, Encode encodings for you, so there’s no need to explicitly write use Encode
We can use yum
or dnf
to install perl-Encode-HanExtra
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Encode-HanExtra.
Install perl-Encode-HanExtra 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-Encode-HanExtra
using yum
by running the following command:
sudo yum -y install perl-Encode-HanExtra
Install perl-Encode-HanExtra 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-Encode-HanExtra
using dnf
by running the following command:
sudo dnf -y install perl-Encode-HanExtra
How To Uninstall perl-Encode-HanExtra on CentOS 7
To uninstall only the perl-Encode-HanExtra
package we can use the following command:
sudo dnf remove perl-Encode-HanExtra
References
Summary
In this tutorial we learn how to install perl-Encode-HanExtra
on CentOS 7 using yum
and dnf
.