Forrest logo
back to the tlmgr tool

tlmgr-update:tldr:0ac92

tlmgr-update: Update all packages, making a backup of the current packages.
$ sudo tlmgr update --all --backup
try on your machine

This command is used in a Unix-like operating system to update all packages installed through TeX Live, a comprehensive distribution of the TeX typesetting system.

Let's break down the command:

  • sudo: This is a command that allows users to execute a command with administrative or superuser privileges. It prompts for the user's password and then runs the subsequent command as a superuser.

  • tlmgr: This is the command-line tool for managing packages in TeX Live. It is used to install, update, and remove packages.

  • update: This subcommand is used to update packages to their latest available versions. When executed, it checks for updates, downloads them if available, and installs the new versions.

  • --all: This option tells tlmgr to update all installed packages rather than just a specific package. It ensures that all packages are up to date.

  • --backup: This option creates backups of overwritten files during the update process. It is a safety measure, allowing you to revert to the previous version if necessary.

So, when you run the command sudo tlmgr update --all --backup, you are executing the tlmgr command with administrative privileges to update all installed packages in your TeX Live distribution. Additionally, it creates backups of any files that are overwritten during the update process.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tlmgr tool