Downloads:

1,406

Downloads of v 2020.120201026:

618

Last Update:

26 Oct 2020

Package Maintainer(s):

Software Author(s):

  • TeX Live Team

Tags:

texlive tex LaTeX

TeX Live Installer

2020.120201026 | Updated: 26 Oct 2020

Downloads:

1,406

Downloads of v 2020.120201026:

618

Maintainer(s):

Software Author(s):

  • TeX Live Team

Tags:

texlive tex LaTeX

TeX Live Installer 2020.120201026

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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 https://chocolatey.org/api/v2. 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 https://chocolatey.org/api/v2)

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'"
$exitCode = $LASTEXITCODE

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

Exit $exitCode

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

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


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

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: texlive,
    Version: 2020.120201026,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller texlive
{
   Name     = 'texlive'
   Ensure   = 'Present'
   Version  = '2020.120201026'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


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

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


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

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

There are versions of this package awaiting moderation . See the Version History section below.

This package was approved by moderator mwallner on 28 Oct 2020.

Description

TeX Live Installer

texlive-logo

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.

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 https://texlive.info without which this is not possible.

sponser


tools\chocolateyinstall.ps1
$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 install.zip
Write-Debug "Extracting and Moving Folders"
# this is done so that the line length doesn't exceeds.
$zipLocation=$toolsDir
$toolsDir=Get-ToolsLocation
Get-ChocolateyUnzip -FileFullPath "$zipLocation\install-tl.zip" -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
$env:TEXLIVE_INSTALL_NO_WELCOME = $true

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
}
tools\chocolateyuninstall.ps1
$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)" }
}
tools\helper.ps1
function Get-MajorVersion {
    param(
        # Version string to parse.
        [Parameter(Mandatory = $true)]
        [string] $Version
    )
    $temp = $Version.Replace(".", "-")
    $temp = $($temp -split "-")
    return $temp[0]
}
function Write-Profile {
    [CmdletBinding()]
    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" }
}
tools\install-tl.zip
md5: EC637119208BF406D7B315ADEEC3D13E | sha1: 2B0BDB2A9F9A659C6CE26B04F38A12E5FD425CF2 | sha256: FA5C893B0781FD27BDEFC3330F23E979256ADD6404D9CC2F35B8F5D66F1200D9 | sha512: 94B4154D98E6702E990F3CE01B13FFE274306907D82683EA5187303C17E6B46F0C3634257312E9DF3395A9B27A9836AF2A017A3A847E50ACCE5C5215C5D7188C
tools\LICENSE.txt
From: https://www.tug.org/texlive/LICENSE.TL

LICENSE

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

COPYING CONDITIONS FOR TeX Live:

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: https://ctan.org/tex-archive/help/Catalogue/ (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
FITNESS FOR A PARTICULAR PURPOSE.


GUIDELINES FOR REDISTRIBUTION:

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 https://tug.org/usergroups.html.

b) Referencing the TeX Live home page: https://tug.org/texlive/

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 https://www.tug.org/donate/dev.html.  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
guaranteed.


LICENSING FOR NEW PACKAGES:

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
https://tug.org/texlive/pkgcontrib.html for more information, and other
considerations.

Thanks for your interest in TeX.

- Karl Berry, for the TeX Live project

------------------------------------------------------------
TeX Live mailing list: https://lists.tug.org/tex-live
TeX Live home page:    https://tug.org/texlive/

The FSF's free software definition:  http://www.gnu.org/philosophy/free-sw.html
Debian Free Software Guidelines:     http://www.debian.org/intro/free
FSF commentary on existing licenses: http://www.gnu.org/licenses/license-list.html

LPPL: http://latex-project.org/lppl.html or texmf-dist/doc/latex/base/lppl.txt
LPPL rationale: texmf-dist/doc/latex/base/modguide.pdf
tools\VERIFICATION.txt

VERIFICATION

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

   url: https://texlive.info/tlnet-archive/2020/10/26/tlnet/install-tl.zip

   to download the zip file `install-tl.zip`.

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: fa5c893b0781fd27bdefc3330f23e979256add6404d9cc2f35b8f5d66f1200d9

File 'license.txt' is obtained from:
   https://www.tug.org/texlive/LICENSE.TL


Note: The site https://texlive.info 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 
https://www.tug.org/pipermail/tex-live/2020-September/046056.html


Tex Live maintainer updates the installer daily to CTAN,official 
download place as mentioned in 
https://www.tug.org/texlive/acquire-netinstall.html
so the included `install-tl.zip` is a copy of the file, located at 
http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip 
when the package was published and can be verified from the site
https://texlive.info 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 2020.120201126 7 Thursday, November 26, 2020 Ready
TeX Live Installer 2020.28092020 168 Thursday, October 8, 2020 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