I tried to install packages like numinsec.sty to Texlive on Windows 10 by copying the files in ‪C:\texlive\texmf-local\tex\latex\numinsec.sty. But Texlive can not find it when compiling. What is the problem?

Is the installation of packages on TeXLive similar to MiKTex in which you just copy files into a localTexmf folder and add that folder to MiKTex directory? Thanks.


2 Answers 2


You can also:

  • Press Win-X
  • Select Windows Powershell (Admin)
  • (If you’re wondering where to put the packages) At the command prompt, run kpsewhich -var-value=TEXMFLOCAL to find the directory to put your downloaded files in.
  • Run texhash

You can run any other command-line utilities you want this way. For example, tlmgr update --self --all, updmap-sys or luaotfload-tool -u -p -v.

  • Is it also necessary to launch TeXLive Manager and select Actions > Regenerate filename database? Feb 8 at 15:52
  • @RodolfoOviedo I believe that runs texhash. I’m more used to the command line, but that probably would work too?
    – Davislor
    Feb 8 at 23:17

I have found a solution to this problem. First copy the package files to \texlive\texmf-local\tex\latex folder. Then launch TeXLive Manager to update the database. For TeXLive after 2019, select from the Actions menu Regenerate filename database. For TeXLive before 2019, select from the Actions menu Update filename database.

  • If you use LyX, do the following after what Hermes explained: use the menu of LyX: Tools > Reconfigure. Then restart LyX. Feb 13 at 19:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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