How To Install libunicode-map-perl on Ubuntu 18.04

In this tutorial we learn how to install libunicode-map-perl on Ubuntu 18.04. libunicode-map-perl is Perl module for mapping charsets from and to UTF16 Unicode

Introduction

In this tutorial we learn how to install libunicode-map-perl on Ubuntu 18.04.

What is libunicode-map-perl

libunicode-map-perl is:

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::String.

For historical reasons this module coexists with Unicode::Map8. Please use Unicode::Map8 unless you need to care 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.

The ’libwww-perl’ package is needed to run the example mirrorMappings.

There are three methods to install libunicode-map-perl on Ubuntu 18.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 libunicode-map-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 libunicode-map-perl using apt-get by running the following command:

sudo apt-get -y install libunicode-map-perl

Install libunicode-map-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libunicode-map-perl using apt by running the following command:

sudo apt -y install libunicode-map-perl

Install libunicode-map-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 libunicode-map-perl using aptitude by running the following command:

sudo aptitude -y install libunicode-map-perl

How To Uninstall libunicode-map-perl on Ubuntu 18.04

To uninstall only the libunicode-map-perl package we can use the following command:

sudo apt-get remove libunicode-map-perl

Uninstall libunicode-map-perl And Its Dependencies

To uninstall libunicode-map-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libunicode-map-perl

Remove libunicode-map-perl Configurations and Data

To remove libunicode-map-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libunicode-map-perl

Remove libunicode-map-perl configuration, data, and all of its dependencies

We can use the following command to remove libunicode-map-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libunicode-map-perl

References

Summary

In this tutorial we learn how to install libunicode-map-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.