How To Install libencode-locale-perl on Kali Linux
Introduction
In this tutorial we learn how to install libencode-locale-perl on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install libencode-locale-perl using apt-get by running the following command:
sudo apt-get -y install libencode-locale-perlInstall libencode-locale-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libencode-locale-perl using apt by running the following command:
sudo apt -y install libencode-locale-perlInstall libencode-locale-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libencode-locale-perl using aptitude by running the following command:
sudo aptitude -y install libencode-locale-perlHow To Uninstall libencode-locale-perl on Kali Linux
To uninstall only the libencode-locale-perl package we can use the following command:
sudo apt-get remove libencode-locale-perlUninstall libencode-locale-perl And Its Dependencies
To uninstall libencode-locale-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libencode-locale-perlRemove libencode-locale-perl Configurations and Data
To remove libencode-locale-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libencode-locale-perlRemove 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-perlDependencies
libencode-locale-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libencode-locale-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.