TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used

tlmgr update --all

today, and it froze when running mktexlsr, so I aborted it. When I ran it again, it said no updates available. But clearly there remains something to do after updating files. So what commands other than mktexlsr should I invoke to keep TeXLive in order?

share|improve this question
Just as a side-node: I always use tlmgr update --all --self so that tlmgr updates itself if required. Otherwise it will stop with an error if it need to be updated itself. – Martin Scharrer Dec 22 '11 at 11:04

At the end of a run, tlmgr takes a number of actions, in the following order:

  1. run mktexlsr;
  2. run mtxrun --generate which is the equivalent for ConTeXt, if it is installed;
  3. run updmap-sys with the proper arguments if necessary (roughly, if font packages got installed/removed);
  4. regenerate language files (language.dat etc) and run fmtutil-sys with the proper arguments if necessary;

So, if mktexlsr failed and you had to interrupt tlmgr, the following actions have not been taken. Now, if you don't use ConTeXt and the packages updated didn't require a run of updmap-sys nor fmtutil-sys then running mktexlsr (with sufficient permissions) is enough.

If you want to be sure, you can check in TEXMFSYSVAR/web2c/tlmgr.log (where the proper value of TEXMFSYSVAR is given by kpsewhich --var-value TEXMFSYSVAR, usually /usr/loca/texlive/2011/texmf-var) the list of recent actions taken by tlmgr, eg:

[Sun Jul 24 12:49:17 2011] update: xdvi.x86_64-linux (22625 -> 22971)
[Sun Jul 24 12:49:18 2011] update: xdvi (22089 -> 23138)
[Sun Jul 24 12:49:39 2011] update: xetex.x86_64-linux (22625 -> 23143)

Then, to be absolutely sure everything's ok, you can reinstall these packages using

tlmgr install --reinstall xdvi.x86_64-linux xdvi xetex.x86_64-linux

(assuming the previous example was the complete list of updated packages).

share|improve this answer

that looks okay, because only mktexlsr fails. All updates are successfully installed. Run the command yourself or altenetively texhash which is a link on Linux machines

share|improve this answer
As a matter of fact, it's the other way round: texhash is a link to mktexlsr. But I don't think it matters at all. – mpg Jul 29 '11 at 6:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.