Consistency suggestion tlpdb
Norbert Preining
norbert at preining.info
Sun Jul 21 15:44:25 CEST 2024
Hi Yann
> I use it to create a database for the fortune program, then I can have a random package description each time I open a terminal on my Linux machine :)
Hahaha, what an ingenious usage! Thanks for sharing.
I took a quick look at your code, and my wild wild guess it that it is
probably easier to use
tlmgr info --json
to get the whole db info as json, and then just query with jq from bash.
Another option would be to just use grep/awk etc on the texlive.tlpdb
file itself. You could get the location with
$(kpsewhich -var-value TEXMFROOT)/tlpkg/texlive.tlpdb
That will be much faster than booting up tlmgr just for dumping the
tlpdb.
But all this are just wild guesses from my side ;-)
Thanks again, and let me know if you would prefer anything else!
Best regards
Norbert
--
PREINING Norbert https://www.preining.info
arXiv / Cornell University + IFMGA Guide + TU Wien + TeX Live
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
More information about the tex-live
mailing list.