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.
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.
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 ...
i 00008 211297 a0poster in a line, but the a0poster package is labeled as Version 1.22b when I look up for its package information. Is there a master list that can translate either 00008 or 221297 to be a specific version number? Thx!
– llinfeng
Dec 23 '21 at 14:40
With mpm being moved to miktex the the following works:
miktex packages list --template "{isInstalled} {id} {version}" | grep "^true" | sed -e "s/^true //"
See https://docs.miktex.org/manual/miktex-packages.html for other information you might want to put into the template.
I am using MiKTeX 21.2 on Win 10. The previous command did not work for me. However, a similar command did. Specifically, starting miktex console and then clicking on the packages tab, displayed a long list with dates marked for those packages that have been installed. Strictly, speaking that list does not answer the original question. I have a hunch that it would not be hard to write a macro that would select those items on the list that have a date next to them. But this is only a hunch. Please let me know.
mpm --list | grep ^i. – Benjamin Feb 16 '16 at 07:09