How To Install locales on Kali Linux

In this tutorial we learn how to install locales on Kali Linux. locales is GNU C Library

Introduction

In this tutorial we learn how to install locales on Kali Linux.

What is locales

locales is:

Machine-readable data files, shared objects and programs used by the C library for localization (l10n) and internationalization (i18n) support.

This package contains tools to generate locale definitions from source files (included in this package). It allows you to customize which definitions actually get generated. This is a space-saver over how this package used to be, with all locales generated by default. This created a package that unpacked to an excess of 30 megs.

There are three methods to install locales 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 locales Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install locales using apt-get by running the following command:

sudo apt-get -y install locales

Install locales Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install locales using apt by running the following command:

sudo apt -y install locales

Install locales 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 update

After updating apt database, We can install locales using aptitude by running the following command:

sudo aptitude -y install locales

How To Uninstall locales on Kali Linux

To uninstall only the locales package we can use the following command:

sudo apt-get remove locales

Uninstall locales And Its Dependencies

To uninstall locales and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove locales

Remove locales Configurations and Data

To remove locales configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge locales

Remove locales configuration, data, and all of its dependencies

We can use the following command to remove locales configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge locales

Dependencies

locales have the following dependencies:

References

Summary

In this tutorial we learn how to install locales package on Kali Linux using different package management tools: apt, apt-get and aptitude.