DICODCONFIG(8)
π DICODCONFIG β bestie edition π
okay so this is dicodconfig from the Debian User's Manual, section 8 (that's the sysadmin-girlies section, we love her). buckle up, she's a little niche but she is so useful. π
β¨ NAME β¨
dicodconfig β writes the database configuration section for dicod. that's it. that's her whole job. π
πΈ SYNOPSIS πΈ
dicodconfig [-hlovw] [--help] [--list] [--order] [--version] [--write]
π¦ DESCRIPTION π¦
so dicodconfig generates a complete dicod database configuration section for every dictionary database it can find in /usr/share/dictd/ β or possibly somewhere else entirely, if there's an optional order override file hanging around. slay. π
and listen, if a dictionary database contains a <basename>.suffix file and/or a <basename>.word file, then the appropriate index_suffix and index_word entries get created too. no cap, it just does that for you. β¨
its output file is /var/lib/dicod/dictorg-db.list, and you can pull that whole thing into the dicod config file /etc/dicod.conf with a line that looks like this:
#include /var/lib/dicod/dictorg-db.list
want the lore on how dicod configuration works? see infodico. π§
ngl, in Debian this runs automatically when dictionary database packages get installed or removed, so most users will literally never have to invoke it by hand. main character tool that does its own thing. π
π DATABASE ORDER π
the default order that database entries get written in is hard coded into dicodconfig, but bestie, you can override it with the optional order override file /etc/dicod/dicod.order. why would you want that? because dicod hands you definitions from dictionary databases in the order they're listed in its configuration file. order matters, periodt. π―
the order override file can also be used to include local dictionary databases that maybe don't live in /usr/share/dictd/ at all. she's flexible like that.
so /etc/dicod/dicod.order, if it exists, should be a whitespace separated list of basenames and directories. it may also include comments starting with # and extending to the end of the line. π¬
here's the tea: dictionary database entries get generated only for those databases found via basename and directory entries in the default order (or in the order override file, if present), and they get generated in the order in which those entries appear. and no more than one dictionary database entry of any given name will ever be generated. one entry per name, we don't do duplicates here. π«
- entries without a leading
/are relative to/usr/share/dictd/. - entries without a trailing
/are basenames. a dictionary database entry is generated if<basename>.indexand<basename>.dict.dzor<basename>.dictare present. - entries with a trailing
/are directories. a dictionary database entry is generated for each<name>where<directory>/<name>.indexand<directory>/<name>.dict.dzor<directory>/<name>.dictare present.
the default order includes the directories /usr/share/dictd/ and /usr/share/dico/ as its final entry β that way, if a previously unknown dictionary database (one that's not explicitly mentioned in the default order) gets installed, its dictionary database entry still gets generated. iconic safety net behavior. πΈοΈ
an order override file should also use this technique β both for /usr/share/dictd/ and /usr/share/dico/, and for any other directory where a local dictionary database might get installed. do it for the plot. π
the -o option can be used to make dicodconfig display the default order information along with the order override information, if /etc/dicod/dicod.order is present. β¨
π DUMMY ENTRY π
if no dictionary databases are found (via basename or directory entries in the default order or the order override file), a dummy dictionary database entry will be generated with /dev/null for both data and index. why? so dicod can start without error. she's a filler episode but a necessary one. π
π DATABASE ALIASES π
if an executable script named /etc/dicod/dicodconfig.alias exists, dicodconfig will filter database names through it. the script can be bash, sed, perl, or whatever you want honestly, we don't gatekeep. π
here's the situation: although dico -D will display database names of any length, names longer than 16 characters are displayed in a ragged format. π¬ so appropriate entries in this alias file can be used to cause dico -D to display the database names in a reasonable format. glow-up via alias file. π
β OPTIONS β
-w,--writeβ write database section to/var/lib/dicod/dictorg-db.list. the committing-to-disk option. ποΈ-l,--listβ list database section to standard out. just peek, don't touch. π-o,--orderβ display database order information. π-h,--helpβ display a usage message and exit. π-v,--versionβ display version information and exit. π·οΈ
π FILES π
/var/lib/dicod/dictorg-db.listβ output ofdicodconfig./etc/dicod.confβ dicod configuration file which "includes"/var/lib/dicod/dictorg-db.list./etc/dicod/dicod.orderβ optionaldicodconfigorder override file.
π SEE ALSO π
π BUGS π
older dictionary database packages did not automatically invoke dicodconfig upon installation and removal, so you may need to do so manually. and after that? you should restart dicod. yeah. we know. π
π AUTHOR π
Ψ£ΨΩ
Ψ― Ψ§ΩΩ
ΨΩ
ΩΨ―Ω (Ahmed El-Mahmoudy), based on dictdconfig(8) by Kirk Hilliard <kirk@debian.org>. legends, all of them. π«Ά
and that's the whole page bestie β brought to you by the Debian manual, version dated April 5, 2009, filed under DICODCONFIG(8). stay configured, stay slaying. πβ¨π¦
π¦ where this page comes from
- debian bookworm: dicod 2.11-2+b3 Β· GPL-3.0-or-later
- debian trixie: dicod 2.12-3 Β· GPL-3.0-or-later
- ubuntu jammy: dicod 2.10-1build2 Β· GPL-3.0-or-later
- ubuntu noble: dicod 2.11-4.1build2 Β· GPL-3.0-or-later
- ubuntu questing: dicod 2.12-3
- ubuntu resolute: dicod 2.12-4build1 Β· GPL-3.0-or-later
- ubuntu stonking: dicod 2.12-4build1 Β· GPL-3.0-or-later
- copyright (C) 2009 Ψ£ΨΩ Ψ― Ψ§ΩΩ ΨΩ ΩΨ―Ω (Ahmed El-Mahmoudy)
- copyright (C) 1999-2000 Kirk Hilliard
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms