How to remove all that country-specific dictionaries (like En_AU, En_CA, de_CH, etc)?

After I've installed some language packs and spell checking dictionaries (I'd like to use with Firefox and OpenOffice) I've got tons of language variations installed. This makes very inconvenient to maintain dictionary additions, for example. Sometimes Firefox decides to switch to Australian, sometimes to UK dictionary, sometimes to US, etc.

For me, a Russian, English is just English, and German is just German. I think every English-speaking will understand me, may I write "color" or "colour", "dialog", or "dialogue" (I usually prefer classic UK spelling though, as a matter of a habit (as I was taught at school)). How to remove all those dialects?


Emi Bcn from Launchpad said:

Look at /usr/share/hunspell/ and delete all files you don't need/want. It's all!!

It worked for me except just in case I went to myspell and aspell folders too and erased the ones I didn't need.


Though @chuo is correct that you can just delete the files in /usr/share/hunspell/ for locales that you don't want, much better is to uninstall the packages that deliver those files. To see the locale packages (myspell and hunspell) that you have installed, run

dpkg --get-selections | grep -v deinstall | egrep "^myspell-|^hunspell-"

then for each locale you'd like to remove uninstall the package with a command like this

sudo apt-get remove myspell-en-au

For my Ubuntu 14.04 installation I had myspell-en-au, myspell-en-za and myspell-en-gb which I uninstalled with the command

sudo apt-get remove myspell-en-.*

The problem is known, take look at bug 28226 and its duplicates. Feel free to vote for the bug using the "This bug affects me too" feature.

To summarize, English in Ubuntu means all variants (en-au, en-za, etc.), not just one. You could delete the individual spelling packages, myspell-en-* and hunspell-en-*, but that would also remove language-support-en, and I don't think that's what you want.