# TeXFindPkg tool for querying or installing TeX packages ``` Description: Query or Install TeX packages and their dependencies Copyright: 2023-2024 (c) Jianrui Lyu Repository: https://github.com/lvjr/texfindpkg License: GNU General Public License v3.0 ``` ## 1\. Introduction TeXFindPkg makes it easy to query or install TeX packages and their dependencies by file names, command names or environment names. It supports both TeXLive and MiKTeX distributions. At present it focuses mainly on LaTeX packages, but may extend to ConTeXt packages if anyone would like to contribute. ## 2\. Installation Normally your TeX distribution will copy TeXFindPkg files and create a binary file `texfindpkg` when you install this package. If a manual installation is needed, you could copy TeXFindPkg files to TEXMF tree as follows: | Package file | Where to install it | | :------ | :------ | | texfindpkg.1 | TEXMF/doc/man/man1/texfindpkg.1 | | README.md | TEXMF/doc/support/texfindpkg/README.md | | texfindpkg.lua | TEXMF/scripts/texfindpkg/texfindpkg.lua | | texfindpkg.json.gz | TEXMF/tex/latex/texfindpkg/texfindpkg.json.gz | | tfpbuild.lua | TEXMF/source/texfindpkg/tfpbuild.lua | Then you could create a symbolic link from `/usr/local/bin/texfindpkg` to `path/to/texfindpkg.lua` on Linux or MacOS, or create a batch file `texfindpkg.bat` in binary folder of the TeX distribution with these lines on Windows: ``` @echo off texlua path\to\texfindpkg.lua %* ``` ## 3\. Usage After installing TeXFindPkg, you can run it by executing ``` texfindpkg [