LinuxCommandLibrary

tlmgr-install

Install LaTeX packages using TeX Live Manager

TLDR

Install a package and its dependencies

$ sudo tlmgr install [package]
copy

Reinstall a package
$ sudo tlmgr install --reinstall [package]
copy

Simulate installing a package without making any changes
$ tlmgr install --dry-run [package]
copy

Install a package without its dependencies
$ sudo tlmgr install --no-depends [package]
copy

Install a package from a specific file
$ sudo tlmgr install --file [path/to/package]
copy

SYNOPSIS

tlmgr install [options]

PARAMETERS

--debug
    Enable debugging output.

--dry-run
    Simulate the installation without actually installing anything.

--force
    Force installation, even if dependencies are not met.

--reinstall
    Reinstall the packages that exist.


    One or more package names to install.

DESCRIPTION

The tlmgr install command is used to install TeX Live packages. It's a core function of the TeX Live Manager (tlmgr) utility, which is the primary tool for managing TeX Live installations. Using tlmgr install, you can install new packages from a TeX Live repository to make them available for use in LaTeX documents. The command automatically handles dependencies, ensuring that all required packages are installed along with the requested package. It requires administrator privileges for system-wide installations or can be used as regular user for personal installations. tlmgr install also allows for installing multiple packages with a single command. After installation, the package files are usually placed under the TeX Live tree and should then be available to TeX engines. One can also install directly from iso images with the command. After an installation, one may need to execute texhash to update the tex filename database, but that is usually done by the installation process.

CAVEATS

Requires administrator privileges for system-wide installations. Ensure that the TeX Live repository is correctly configured before running the command. Network connection is required to download packages.

EXAMPLES

To install the package 'amsmath':
tlmgr install amsmath

To install multiple packages:
tlmgr install amsmath geometry listings

HISTORY

The tlmgr utility was developed as part of the TeX Live project to provide a robust and flexible mechanism for managing TeX Live installations. It addresses limitations of earlier TeX distribution management systems. The install subcommand is a fundamental feature since the start of tlmgr, allowing users to easily add new packages to their TeX Live environment. tlmgr replaced the old texconfig tools and made the installation and management of TeX Live distributions significantly easier for users of all skill levels.

SEE ALSO

tlmgr(1), tlmgr update(1), tlmgr uninstall(1)

Copied to clipboard