How To Install libencode-hanextra-perl on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libencode-hanextra-perl
on Ubuntu 22.04.
What is libencode-hanextra-perl
libencode-hanextra-perl is:
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 module tries to provide the rest of them. If you are using Perl 5.8 or later, Encode::CN and Encode::TW will automatically load the extra encodings for you, so there’s no need to explicitly write “use Encode::HanExtra” if you are using one of them already.
There are three methods to install libencode-hanextra-perl
on Ubuntu 22.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libencode-hanextra-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libencode-hanextra-perl
using apt-get
by running the following command:
sudo apt-get -y install libencode-hanextra-perl
Install libencode-hanextra-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libencode-hanextra-perl
using apt
by running the following command:
sudo apt -y install libencode-hanextra-perl
Install libencode-hanextra-perl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libencode-hanextra-perl
using aptitude
by running the following command:
sudo aptitude -y install libencode-hanextra-perl
How To Uninstall libencode-hanextra-perl on Ubuntu 22.04
To uninstall only the libencode-hanextra-perl
package we can use the following command:
sudo apt-get remove libencode-hanextra-perl
Uninstall libencode-hanextra-perl And Its Dependencies
To uninstall libencode-hanextra-perl
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libencode-hanextra-perl
Remove libencode-hanextra-perl Configurations and Data
To remove libencode-hanextra-perl
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libencode-hanextra-perl
Remove libencode-hanextra-perl configuration, data, and all of its dependencies
We can use the following command to remove libencode-hanextra-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libencode-hanextra-perl
References
Summary
In this tutorial we learn how to install libencode-hanextra-perl
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.