TeX Live update via CLI

Photo by Leon Wu on Unsplash

Writing my BSc thesis I discovered LaTeX, a software used to prepare documents looking like a book. LaTeX, in fact, is a very good typography software, that allows users to write plain texts and then, with the help of some markup tags, split the text in chapter and section, add styles (bold, italics, etc.), cross-references, citations, etc.

At the beginning I used a TeX distribution called MikTeX, because I used a Windows OS. Step by step, as soon as I understood how much powerful this software is, I started to use TeX Live on Unix OS.
Those two distributions have a main difference: MikTex, as mainly used on Windows, is more “automatic”, because could hide some details as package installation. On the contrary, TeX Live forces the user to install manually each additional package.
This difference is due mainly to distribution configuration at setup time, so depending on how you configure the distribution during the installation you will not face this behavior.

TeX Live distribution install a native manager users could run via shell: tlmgr. Via tlmgr it is possible to install new packages, updates installed packages or the distribution itself, and more over.

To install a new package, the command is:

tlmgr install PACKAGE_NAME

To update a package, the command is:

tlmgr update PACKAGE_NAME

To update all installed packages, the command is:

tlmgr update --all

To update the distribution itself, the command is:

tlmgr update --self

Originally published at https://gabriele-decapoa.github.io.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gabriele de Capoa

Gabriele de Capoa

Cloud software engineer, wanna-be data scientist, former Scrum Master. Agile, DevOps, Kubernetes and SQL are my top topics.