I noticed I have several unneeded locales installed.I only need one locale.
How to remove all the rest?
The locales are for example firefox-locale-?
First type the
locale command to print-out your current locale configuration. Also you can use
locale -a to display a list of all available locales.
localepurge to remove any unwanted languages, while choosing the ones you want to keep. Note that this method will not change the locales settings on your system. It will just purge the locales you have not selected. Use at your own risk.
$ sudo apt-get install localepurge
After that, you could reboot or try to run
To reconfigure this, simply enter the following in terminal:
$ sudo dpkg-reconfigure localepurge
Another way answered here is to
sudo locale-gen --purge <locales YOU WANT TO KEEP>
Unless you have a need to switch to various locales all the time, you can uninstall the unused locales and free up some amount of the storage space in your system.
Install Localepurge via the terminal:
sudo apt-get install localepurge
Once the installation is done, it will remove all locale files from your system that you have no need for.
Why remove all the rest? I suppose you are talking about the various English locales and language packs.
Removing them is pointless, since they will be recreated at the next update of the language packs.
firefox-locale- will be recreated at the next firefox update.
So I would recommend that you try to realize that they don't hurt and spend your time on something more useful. ;-)