How To Install libencode-locale-perl on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 456 words
Introduction
In this tutorial we learn how to install libencode-locale-perl on Ubuntu.
What is libencode-locale-perl
libencode-locale-perl is:
In many applications it’s wise to let Perl use Unicode for the strings it processes. Most of the interfaces Perl has to the outside world are still byte based. Programs therefore need to decode byte strings that enter the program from the outside and encode them again on the way out.
The POSIX locale system is used to specify both the language conventions requested by the user and the preferred character set to consume and output. The Encode::Locale module looks up the charset and encoding (called a CODESET in the locale jargon) and arranges for the Encode module to know this encoding under the name “locale”. It means bytes obtained from the environment can be converted to Unicode strings by calling Encode::encode(locale => $bytes) and converted back again with Encode::decode(locale => $string).
There are three methods to install libencode-locale-perl on Ubuntu. 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-locale-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-locale-perl using apt-get by running the following command:
sudo apt-get -y install libencode-locale-perl
Install libencode-locale-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libencode-locale-perl using apt by running the following command:
sudo apt -y install libencode-locale-perl
Install libencode-locale-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-locale-perl using aptitude by running the following command:
sudo aptitude -y install libencode-locale-perl
How To Uninstall libencode-locale-perl on Ubuntu
To uninstall only the libencode-locale-perl package we can use the following command:
sudo apt-get remove libencode-locale-perl
Uninstall libencode-locale-perl And Its Dependencies
To uninstall libencode-locale-perl and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libencode-locale-perl
Remove libencode-locale-perl Configurations and Data
To remove libencode-locale-perl configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libencode-locale-perl
Remove libencode-locale-perl configuration, data, and all of its dependencies
We can use the following command to remove libencode-locale-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libencode-locale-perl
Dependencies
libencode-locale-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libencode-locale-perl package on Ubuntu using different package management tools: apt, apt-get and aptitude.