tlmgr update texhash

Martin Münch Martin.Muench at
Thu Mar 16 16:34:59 CET 2023

Dear TeX Live!

Running "texhash" I get the messages:

texhash: Updating m://texmf-local/ls-R...
texhash: Updated m://texmf-local/ls-R.
texhash: Updating m:/2022/texmf-config/ls-R...
texhash: Updated m:/2022/texmf-config/ls-R.
texhash: Updating m:/2022/texmf-var/ls-R...
texhash: Updated m:/2022/texmf-var/ls-R.
texhash: Updating m:/2022/texmf-dist/ls-R...
texhash: Updated m:/2022/texmf-dist/ls-R.
texhash: Done.

OK. Running
tlmgr update --self --all --reinstall-forcibly-removed -repository 

I get updates and new packages (if TeX Live is not frozen) and messages 
about their installation.

I do not remember seeing any messages about updates of "ls-R"-files at 
the end of those messages.

Now this happened: I updated a package and had to increase the number of 
included .sty files. It is at CTAN, and in the repositories, and users 
do tlmgr update, and:

Expected: TeX Live finds all of those files.
Seen by user: Error, file not found.

Running texhash manually by the user said:

texhash: /home/<username>/.texlive/texmf-config/ls-R: no write 
permission, skipping...
texhash: /home/<username>/.texlive/texmf-dist/ls-R: no write permission, 
texhash: /home/<username>/.texlive/texmf-local/ls-R: no write 
permission, skipping...
texhash: Updating /home/frazar/.texlive/texmf-var/ls-R...
texhash: Done.

After removing the write protection and running texhash again, the .sty 
files are found. Problem for that user solved.


- Does "tlmgr update" internally try to update the ls-R-files and fails? 
It should inform the user about this failure!

- Does "tlmgr update" not even try to update the ls-R-files (for 
packages which are updated vs. packages which are newly installed)? It 
should inform the user about the necessity of running texhash (or 
mktexlsr or whatsoever)! While I run texhash regularly anyway because of 
changes in my ./tex/latex/local, that is probably not the case for an 
average user.

Sincerely yours


More information about the tex-live mailing list.