git clone git://github.com/mpg/texdoc.git (first time)
git pull (later, in the directory created first time)
Alternatively, without git: current master (zip, tar.gz) current texlive branch (zip, tar.gz).
TEXDOC means the path to texdoc sources (either the
git repo or an extracted archive), and
TEXMFHOME denotes your
personal texmf tree (you can get its location with
-distpart). It will completely override the other configuration files except
TEXMFHOME/texdoc/texdoc.cnfwhich you can still use for you personal settings.
You can make sure that the right files are used by running
--files: the first line contains the full path to the version of
texdoclib used, and the rest lists the configuration files in
Warning. The above instructions hold only if your system ships
texdoc 0.81 or newer (first distributed with TeX Live 2011),
which will automatically find and use the script in
For older versions on Unix, you had to override the texdoc executable which
linked directly to the script in
TEXMFMAIN. If you're in this
case, please consult the pre-0.81 instructions.