Could someone stop adding these additional language symlinks to /usr/share/hunspell/?

I keep removing these. Is this an installation/upgrade bug? a feature?

ls -ln /usr/share/hunspell/
total 2216
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_AG.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_AG.dic -> en_GB.dic
-rw-r--r--. 1 0 0   3225 Apr 16 02:00 en_AU.aff
-rw-r--r--. 1 0 0 510907 Apr 16 02:00 en_AU.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_BS.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_BS.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_BW.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_BW.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_BZ.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_BZ.dic -> en_GB.dic
-rw-r--r--. 1 0 0   3225 Apr 16 02:00 en_CA.aff
-rw-r--r--. 1 0 0 508403 Apr 16 02:00 en_CA.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_DK.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_DK.dic -> en_GB.dic
-rw-r--r--. 1 0 0  27471 Apr 16 02:00 en_GB.aff
-rw-r--r--. 1 0 0 527341 Apr 16 02:00 en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_GH.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_GH.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_HK.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_HK.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_IE.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_IE.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_IN.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_IN.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_JM.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_JM.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_MW.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_MW.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_NA.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_NA.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_NG.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_NG.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_NZ.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_NZ.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_PH.aff -> en_US.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_PH.dic -> en_US.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_SG.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_SG.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_TT.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_TT.dic -> en_GB.dic
-rw-r--r--. 1 0 0   3225 Apr 16 02:00 en_US.aff
-rw-r--r--. 1 0 0 508624 Apr 16 02:00 en_US.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_ZA.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_ZA.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_ZM.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_ZM.dic -> en_GB.dic
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_ZW.aff -> en_GB.aff
lrwxrwxrwx. 1 0 0      9 Apr 16 02:00 en_ZW.dic -> en_GB.dic

They are totally uncalled for a mess up spell check in thunderbird and firefox.

for f in /usr/share/hunspell/*; { [ -h "$f" ] && rm -f "$f"; }

Do you want British spelling or US-American spelling?

If you want British spelling, remove the hunspell-en-US package.

If you want US-American spelling, remove the hunspell-en-GB package.

I want all spelling except the one that are symlinked. It makes an umanageble list in thunderbird/firefox and, as they are symlinks, add not functionality.

It looks like there is a DICPATH environment variable.[1] I haven’t tried it, but I’m guessing that if you make a copy of that /usr/share/hunspell directory somewhere, then you could place only the links you want in your personal copy and point that DICPATH environment variable at your customized hunspell directory. I’m not sure how to set DICPATH globally for your Desktop Environment though. Does putting something like that in /etc/environment work for all DEs?


  1. See the hunspell man page for more info. ↩︎

Confirming the pattern is still alive on Fedora 44, in modified form, with a tested workaround until it’s fixed properly.

Current state on F44, from a stock-ish install with the usual langpacks:

  • English got the fix this thread asked for: per-region packages instead of proliferating symlinks. dnf remove hunspell-en-AU is now a legitimate operation.
  • Everything else regressed into the same problem via real files rather than symlinks. Concretely, one dnf install hunspell-fr drops six dictionaries into /usr/share/hunspell/: fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, fr_MC. hunspell-de drops six, hunspell-ca four, hunspell-pt and hunspell-sv two each. No subpackages exist, so there is no dnf-clean way to keep fr_FR without the other five.

Verified workaround (F44, tested 2026-11-16): enchant’s hunspell provider scans /usr/local/share/hunspell/ in addition to /usr/share/hunspell/, and that directory is outside the RPM database. So:

sudo mkdir -p /usr/local/share/hunspell
sudo cp /usr/share/hunspell/{de_DE,fr_FR,ca_ES,pt_PT,sv_SE}.* /usr/local/share/hunspell/
sudo dnf remove hunspell-ca hunspell-de hunspell-fr hunspell-pt hunspell-sv

Nothing else is removed by that transaction (verified with a dry run: exactly five packages, no langpacks pulled along). Afterwards enchant-lsmod-2 -list-dicts lists only the variants you kept. Caveats: the copies are static and won’t receive package updates until you refresh them manually, and they don’t help anyone who genuinely needs several variants of one language, only people who need fewer.

Since this is now user-visible everywhere enchant/libspelling enumerate dictionaries (GNOME Text Editor’s language chooser, Epiphany, Thunderbird, Evolution), the consistent fix remains what English already has: split each language package into a base plus per-region subpackages, keeping the main variant as a hard dependency of the base package exactly as hunspell keeps hunspell-en-US. I have filed Bugzilla requests for the German and French packages specifically.