[Tex/LaTex] List all installed packages and their versions from the command line

installingmiktex

How can I generate a list of all installed LaTeX packages, classes, and fonts on the command line with MikTeX? Raw output is fine for my use case.

Related, with a TeXlive solution: Diagnostics about LaTeX installation.

Best Answer

If you have not installed tools like grep on your windows computer (they are not installed with windows) you can use the old ms-dos pipe to create a file test.txt containing all installed packages with MiKTeX.

Use on your console/terminal:

mpm --list >test.txt

--list creates the list of installed packages, > directs the output in the file named afterwards test.txt.

If you have installed cygwin or other programs containing the unix-like tools like grep etc. you can use them of course. My solution is working with "pure" windows ...