Downloads of v 2021.20211002:


Last Update:

02 Oct 2021

Package Maintainer(s):

Software Author(s):

  • TeX Live Team


texlive tex LaTeX

TeX Live Installer

  • 1
  • 2
  • 3

2021.20211002 | Updated: 02 Oct 2021



Downloads of v 2021.20211002:



Software Author(s):

  • TeX Live Team


texlive tex LaTeX

  • 1
  • 2
  • 3
TeX Live Installer 2021.20211002

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Exemption:

Exempted from verifier as installation takes longer than maximum alloted time.


Scan Testing Successful:

No detections found in any package files


To install TeX Live Installer, run the following command from the command line or from PowerShell:


To upgrade TeX Live Installer, run the following command from the command line or from PowerShell:


To uninstall TeX Live Installer, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade texlive -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade texlive -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure texlive installed
    name: texlive
    state: present
    version: 2021.20211002
    source: STEP 3 URL

See docs at

chocolatey_package 'texlive' do
  action    :install
  version  '2021.20211002'
  source   'STEP 3 URL'

See docs at

    Name: texlive,
    Version: 2021.20211002,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller texlive
   Name     = 'texlive'
   Ensure   = 'Present'
   Version  = '2021.20211002'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'texlive':
  provider => 'chocolatey',
  ensure   => '2021.20211002',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install texlive version="2021.20211002" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 03 Oct 2021.


TeX Live Installer


TeX Live is intended to be a straightforward way to get up and running with the TeX document production system. It provides a comprehensive TeX system with binaries for most flavors of Unix, including GNU/Linux, macOS, and also Windows. It includes all the major TeX-related programs, macro packages, and fonts that are free software, including support for many languages around the world.

This Chocolatey Package makes the process of installing TeX Live on CI/CD or No GUI computers but not limited to users to install on their Personal Computers.

You would need to specify a larger timout depending on your install.

Package Specific

Package Parameters

The following package parameters can be set:

  • /collections: - The TeX Live Collection to install. Default to None. Data type is comma seperated string. Allowed values are listed here.
  • /scheme: - The scheme(type) you need to install. Defaults to scheme-basic. Should be a string. Allowed values are listed here.
  • /InstallationPath: - Where to install the binaries to - defaults to "$env:SystemDrive\texlive\<version major>"
  • /extraPackages: - Extra LaTeX Packages that need to be installed using tlmgr. If multiple packages it needs comma seperated.

To pass parameters, use --params "''" (e.g. choco install texlive [other options] --params="'/collections:games /scheme:basic'").
To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

Allowed Values Collections

  • basic
  • bibtexextra
  • binextra
  • context
  • fontsextra
  • fontsrecommended
  • fontutils
  • formatsextra
  • games
  • humanities
  • langarabic
  • langchinese
  • langcjk
  • langcyrillic
  • langczechslovak
  • langenglish
  • langeuropean
  • langfrench
  • langgerman
  • langgreek
  • langitalian
  • langjapanese
  • langkorean
  • langother
  • langpolish
  • langportuguese
  • langspanish
  • latex
  • latexextra
  • latexrecommended
  • luatex
  • mathscience
  • metapost
  • music
  • pictures
  • plaingeneric
  • pstricks
  • publishers
  • texworks
  • wintools
  • xetex

Allowed Values Schemes

  • basic
  • context
  • full
  • gust
  • infraonly
  • medium
  • minimal
  • small
  • tetex

Note: This Package is automatically Maintained and if issues faced contact the Maintainer.

Sponsor Norbert Preining for without which this is not possible.


$ErrorActionPreference = 'stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
. "$toolsDir/helper.ps1"

$pp = Get-PackageParameters
if (!$pp['collections']) {
     $pp['collections'] = @()
else {
     if (($pp['collections']).GetType().BaseType.Name -ne "Array") {
          #checking whether array
          Write-Host "$($pp['collections']) is not an Array so converting to array." -ForegroundColor Yellow
          $pp['collections'] = ($pp['collections'] -split ",")
if (!$pp['scheme']) {
     $pp['scheme'] = 'basic'
if (!$pp['InstallationPath']) {
     $pp['InstallationPath'] = "$env:SystemDrive\texlive\$(Get-MajorVersion "$env:ChocolateyPackageVersion")" 
if (!$pp['extraPackages']) {
     $pp['extraPackages'] = $null
else {
     if (($pp['extraPackages']).GetType().BaseType.Name -ne "Array") {
          #checking whether array
          Write-Host "$($pp['extraPackages']) is not an Array so converting to array." -ForegroundColor Yellow
          $pp['extraPackages'] = ($pp['extraPackages'] -split ",")
$params = "/collections:$($pp['collections']) /scheme:$($pp['scheme']) /InstallationPath:$($pp['InstallationPath'])"
Write-Debug "Received Package Parameters: $params"
Write-Host "Writing Profile" -ForegroundColor Yellow
#write texlive profile
Write-Host "Writing Profile using Passed Parameters."

$profileArgs = @{
     InstallLocation = $pp['InstallationPath']
     installType     = $pp['scheme']
     collections     = $pp['collections']
     workingDir      = "$(Get-ToolsLocation)"
$profilelocation = Write-Profile @profileArgs
Write-Debug "Profile contents are `n $(gc $profilelocation.profileLoc)"
# extract
Write-Debug "Extracting and Moving Folders"
# this is done so that the line length doesn't exceeds.
Get-ChocolateyUnzip -FileFullPath "$zipLocation\" -Destination "$toolsDir" -PackageName "Texlive Installer"
Move-Item -Path "$toolsDir\install-tl-*\*" -Destination "$toolsDir" -Force 

if ($pp['scheme'] -eq "infraonly") {
     Write-Debug "Setting `$ErrorActionPreference to continue as Infra Only install detected"
     $ErrorActionPreference = "continue";

Write-Debug "Setting Environment variables TEXLIVE_INSTALL_ENV_NOCHECK and TEXLIVE_INSTALL_NO_WELCOME"
$env:TEXLIVE_INSTALL_ENV_NOCHECK = $true #powershell throws error without this

Write-Debug "Installer Version is $(& `"$($toolsDir)\install-tl-windows.bat`" -version)"
Write-Debug "Starting Installer with parameter -no-gui -profile=`"$($profilelocation.profileLoc)`""

& "$($toolsDir)\install-tl-windows.bat" -no-gui -profile="$($profilelocation.profileLoc)"

if ($null -ne $pp['extraPackages']) {
     foreach ($c in $pp['extraPackages']) {
          Write-Host "Installing $c using tlmgr" -ForegroundColor DarkBlue
          $c = $c.Trim()
          & "$($pp['InstallationPath'])\bin\win32\tlmgr.bat" install $c
$files = get-childitem $toolsDir -include *.exe -recurse
foreach ($file in $files) {
     New-Item "$file.ignore" -type file -force | Out-Null
Remove-Item -Path "$toolsDir" -Force -Recurse
$ErrorActionPreference = 'continue'; # don't stop on all errors.
# There is an expected error when installing.

[array]$key = Get-UninstallRegistryKey -SoftwareName "Tex Live*"

if ($key.Count -eq 1) {
  $key | % { 
    $uninstStr = "$($_.UninstallString)".split('"') #should contain no quotes
    Write-Debug "Uninstall String was $uninstStr adding '--no-confirm' parameter"
    & "$uninstStr" --no-confirm
elseif ($key.Count -eq 0) {
  Write-Warning "$packageName has already been uninstalled by other means."
elseif ($key.Count -gt 1) {
  Write-Warning "$($key.Count) matches found!"
  Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
  Write-Warning "Please alert package maintainer the following keys were matched:"
  $key | % { Write-Warning "- $($_.DisplayName)" }
function Get-MajorVersion {
        # Version string to parse.
        [Parameter(Mandatory = $true)]
        [string] $Version
    $temp = $Version.Replace(".", "-")
    $temp = $($temp -split "-")
    return $temp[0]
function Write-Profile {
    param (
        [string]$InstallLocation = "$env:SystemDrive\texlive\$(Get-MajorVersion -Version $($env:ChocolateyPackageVersion) )",
        [string]$installType = "full", #also called scheme
        [array]$collections = @(),
        [string]$workingDir = "$env:TEMP"
    #installType = "full","medium","small","basic","minimal","context","gust","infraonly","tetex","custom"
    Write-Host "TeX Live Profile will be written to $workingDir\texlive.profile" -ForegroundColor Yellow
    $finalProfileStr = ""
    $finalProfileStr += "selected_scheme scheme-$($installType)`n" #select scheme
    $finalProfileStr += "TEXDIR $($InstallLocation)`n" #select texdir
    #collection loop
    if ($collections -ne $null) {
        foreach ($coll in $collections) {
            $finalProfileStr += "collection-$coll 1`n"
    New-Item -ItemType Directory -Force -Path "$workingDir"
    Set-Content -Path "$workingDir\texlive.profile" -Value "$finalProfileStr"
    Write-Debug "Written Profile in $workingDir\texlive.profile."
    return @{profileLoc = "$workingDir\texlive.profile" }
md5: 9B388F2C528CBC00BB6989E0F363F887 | sha1: 5A49D982AE57F2F26BFC4D45330C769486FA9922 | sha256: E142AB5E7A18AAB9DFDDD915442A4D55B147FEF83E62D34C8DE0F8541DE469AB | sha512: 60892E4DD26A82970338557C4F8EECBBBF2EA72B0947F944D2B3ADEEE6AC542686310BAC0E3B99D0FD36F0FF302137E9D7D43338DEB98CA36ABF7B89A2AC865A


$Id: LICENSE.TL 52869 2019-11-20 02:36:55Z karl $


To the best of our knowledge, all software in the TeX Live distribution
is freely redistributable (libre, that is, not necessarily gratis),
within the Free Software Foundation's definition and the Debian Free
Software Guidelines.  Where the two conflict, we generally follow the
FSF.  If you find any non-free files included, please contact us
(references given at the end).

That said, TeX Live has neither a single copyright holder nor a single
license covering its entire contents, since it is a collection of many
independent packages.  Therefore, you may copy, modify, and/or
redistribute software from TeX Live only if you comply with the
requirements placed thereon by the owners of the respective packages.

To most easily learn these requirements, we suggest checking the TeX
Catalogue at: (or any
CTAN mirror).  Of course the legal statements within the packages
themselves are the final authority.

In some cases, TeX Live is distributed with a snapshot of the CTAN
archive, which is entirely independent of and separable from TeX Live
itself.  (The TeX Collection DVD is one example of this.)  Please be
aware that the CTAN snapshot contains many files which are *not* freely
redistributable; see LICENSE.CTAN for more information.

To state explicitly what is implied by the above: Because TeX Live is
free software, there is no warranty; not even for MERCHANTABILITY or


In general, you may redistribute TeX Live, with or without modification,
for profit or not, according to the usual free software tenets.  Here
are some general guidelines for doing so:

- If you make any changes to the TeX Live distribution or any
package it contains, besides complying with any licensing requirements,
you must prominently mention such changes in your modified distribution
so that users do not take your work for ours, and know to contact you,
not us, in case of questions or problems.  A new top-level file
README.<yourwork> is a good place to describe the general situation.

- Especially (but not necessarily) if changes or additions are made, we
recommend a clearly different title, such as "<your work> DVD, based on
TeX Live YYYY", where YYYY is the release year of TeX Live you are
using.  This credits both our work and yours.

- You absolutely may *not* place your own copyright on the entire
distribution, since it is not your work.  Statements such as "all rights
reserved" and "may not be reproduced" are especially reprehensible,
since they are antithetical to the free software principles under which
TeX Live is produced.

- You may use any cover or media label designs that you wish.  Such
packaging and marketing details are not covered by any TeX Live license.

- Finally, we make the following requests (not legal requirements):

a) Acknowledging that TeX Live is developed as a joint effort by all TeX
   user groups, and encouraging the user/reader to join their user group
   of choice, as listed on the web page

b) Referencing the TeX Live home page:

Such information may be placed on the label of your media, your cover,
and/or in accompanying text (for instance, in the acknowledgements
section of a book).

Finally, although it is again not a requirement, we'd like to invite any
redistributors to make a donation to the project, whether cash or
in-kind, for example via  Thanks.

If you have any questions or comments, *please* contact us.  In general,
we appreciate being given the chance to review any TeX Live-related
material in advance of publication, simply to avoid mistakes.  It is
much better to correct text on a CD label or in a book before thousands
of copies are made!

We are also happy to keep anyone planning a publication informed as to
our deadlines and progress.  Just let us know.  However, be aware that
TeX Live is produced entirely by volunteers, and no dates can be


Finally, we have been asked what license to use for new work.  To be
considered for inclusion on TeX Live, a package must use a free software
license, such as the LaTeX Project Public License, the GNU General
Public License, the modified BSD license, etc.  (Please use an existing
license instead of making up your own.)  Furthermore, all sources must
be available, including for documentation files.  Please see for more information, and other

Thanks for your interest in TeX.

- Karl Berry, for the TeX Live project

TeX Live mailing list:
TeX Live home page:

The FSF's free software definition:
Debian Free Software Guidelines:
FSF commentary on existing licenses:

LPPL: or texmf-dist/doc/latex/base/lppl.txt
LPPL rationale: texmf-dist/doc/latex/base/modguide.pdf


Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to


   to download the zip file ``.

2. You can use one of the following methods to obtain the SHA256 checksum:
   - Use powershell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum: e142ab5e7a18aab9dfddd915442a4d55b147fef83e62d34c8de0f8541de469ab

File 'license.txt' is obtained from:

Note: The site is maintained by Norbert Preining,
who is one of the maintainers of TeX Live and also board member of 
the TeX User Group TUG. That site provides a daily archive of all 
TeX Live packages as discussed in

Tex Live maintainer updates the installer daily to CTAN,official 
download place as mentioned in
so the included `` is a copy of the file, located at 
when the package was published and can be verified from the site using the steps above.

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
TeX Live Installer 2021.20210902 667 Thursday, September 2, 2021 Approved
TeX Live Installer 2021.20210802 596 Monday, August 2, 2021 Approved
TeX Live Installer 2021.20210702 519 Friday, July 2, 2021 Approved
TeX Live Installer 2021.20210602 658 Wednesday, June 2, 2021 Approved
TeX Live Installer 2021.20210502 991 Sunday, May 2, 2021 Approved
TeX Live Installer 2021.20210425 257 Sunday, April 25, 2021 Approved
TeX Live Installer 2021.20210402 1025 Friday, April 2, 2021 Approved
TeX Live Installer 2021.20210303 1010 Wednesday, March 3, 2021 Approved
TeX Live Installer 2021.20210203 369 Wednesday, February 3, 2021 Approved

This package has no dependencies.

Discussion for the TeX Live Installer Package

Ground Rules:

  • This discussion is only about TeX Live Installer and the TeX Live Installer package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or TeX Live Installer, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus