Debian Codegraph @

doc/tlbuild-incl/install-tl.texi

raw
1 @node install-tl
2 @appendix install-tl
3
4 @node install-tl NAME
5 @appendixsec install-tl NAME
6
7 install-tl - TeX Live cross-platform installer
8
9 @node install-tl SYNOPSIS
10 @appendixsec install-tl SYNOPSIS
11
12 install-tl [@emph{option}]...
13
14 install-tl-windows.bat [@emph{option}]...
15
16 @node install-tl DESCRIPTION
17 @appendixsec install-tl DESCRIPTION
18
19 This installer creates a runnable TeX Live installation from various
20 media, including over the network, from local hard disk, a DVD, etc. The
21 installer works on all platforms supported by TeX Live. For information
22 on initially downloading TeX Live, see
23 @url{https://tug.org/texlive/acquire.html}.
24
25 The basic idea of TeX Live installation is for you to choose one of the
26 top-level @emph{schemes}, each of which is defined as a different set of
27 @emph{collections} and @emph{packages}, where a collection is a set of packages,
28 and a package is what contains actual files. Each package is in exactly
29 one collection, while schemes can contain any combination of packages
30 and collections.
31
32 Within the installer, you can choose a scheme, and further customize the
33 set of collections to install, but not the set of the packages. To work
34 at the package level, use @code{tlmgr} (reference just below) after the
35 initial installation is complete.
36
37 The default is @code{scheme-full}, which installs everything, and this is
38 highly recommended.
39
40 @node install-tl REFERENCES
41 @appendixsec REFERENCES
42
43 Post-installation configuration, package updates, and more, are
44 handled through @strong{tlmgr}(1), the TeX Live Manager
45 (@url{https://tug.org/texlive/tlmgr.html}).
46
47 The most up-to-date version of this installer documentation is on the
48 Internet at @url{https://tug.org/texlive/doc/install-tl.html}.
49
50 For step-by-step instructions, see
51 @url{https://tug.org/texlive/quickinstall.html}.
52
53 For the full documentation of TeX Live, see
54 @url{https://tug.org/texlive/doc}.
55
56 @node install-tl EXAMPLES
57 @appendixsec install-tl EXAMPLES
58
59 With no options, @code{install-tl} drops you into an interactive menu where
60 essentially all default settings can be changed. With options, you can
61 initialize the settings in various ways, or perform the installation
62 without interaction. Some examples:
63
64 @table @asis
65 @item @code{install-tl --paper=letter}
66 @anchor{install-tl @code{install-tl --paper=letter}}
67
68 Initialize paper size setting. The only values allowed are @code{letter} and
69 (the default) @code{a4}.
70
71 @item @code{install-tl --scheme} @emph{scheme}
72 @anchor{install-tl @code{install-tl --scheme} @emph{scheme}}
73
74 Initialize the installation scheme; the default is @code{full}. For a list
75 of schemes, see the interactive @code{S} menu.
76
77 @item @code{install-tl --no-interaction}
78 @anchor{install-tl @code{install-tl --no-interaction}}
79
80 Perform the installation immediately after parsing options, without
81 entering the interactive menu.
82
83 @item @code{install-tl --profile} @emph{texlive.profile}
84 @anchor{install-tl @code{install-tl --profile} @emph{texlive.profile}}
85
86 Install, without interaction, according to the given TL profile file;
87 see @ref{install-tl PROFILES,, PROFILES} below. To initialize from the profile and then enter the
88 interactive menu, add @code{--init-from-profile}.
89
90 @end table
91
92 Full documentation follows.
93
94 @node install-tl OPTIONS
95 @appendixsec install-tl OPTIONS
96
97 As usual, all options can be specified in any order, and with either a
98 leading @code{-} or @code{--}. An argument value can be separated from its
99 option by either a space or @code{=}.
100
101 The options relating to customization of the installation can also be
102 selected in the interactive installation menus (GUI or text).
103
104 @table @asis
105 @item @strong{-gui} [[=]@emph{module}]
106 @anchor{install-tl @strong{-gui} [[=]@emph{module}]}
107
108 @item @strong{-no-gui}
109 @anchor{install-tl @strong{-no-gui}}
110
111 If no @emph{module} is given, starts the Tcl/Tk (see below) GUI installer.
112
113 If @emph{module} is given loads the given installer module. Currently the
114 following modules are supported:
115
116 @table @asis
117 @item @code{text}
118 @anchor{install-tl @code{text}}
119
120 The text mode user interface (default on Unix systems, including Macs).
121 Same as the @code{-no-gui} option.
122
123 @item @code{tcl} (or "perltk" or "wizard" or "expert" or nothing)
124 @anchor{install-tl @code{tcl} (or "perltk" or "wizard" or "expert" or nothing)}
125
126 The Tcl/Tk user interface (default on Windows). It starts
127 with a small number of configuration options, roughly equivalent
128 to what the former wizard option offers, but a button @code{Advanced}
129 takes you to a screen with roughly the same options as the former
130 @code{perltk} interface.
131
132 @end table
133
134 The default GUI requires Tcl/Tk. This was standard on Macs, but has been
135 removed in the latest macOS releases. It's often already installed on
136 GNU/Linux, or can be easily installed through a distro package manager.
137 For Windows, TeX Live provides a Tcl/Tk runtime.
138
139 @item @strong{-lang} @emph{llcode}
140 @anchor{install-tl @strong{-lang} @emph{llcode}}
141
142 By default, the Tcl GUI uses the language detection built into
143 Tcl/Tk. If that fails you can select a different language by
144 giving this option with a language code (based on ISO 639-1).
145 Currently supported (but not necessarily completely translated) are:
146 English (en, default), Czech (cs), German (de), French (fr), Italian
147 (it), Japanese (ja), Dutch (nl), Polish (pl), Brazilian Portuguese
148 (pt_BR), Russian (ru), Slovak (sk), Slovenian (sl), Serbian (sr),
149 Ukrainian (uk), Vietnamese (vi), simplified Chinese (zh_CN), and
150 traditional Chinese (zh_TW).
151
152 @item @strong{-repository} @emph{url|path}
153 @anchor{install-tl @strong{-repository} @emph{url|path}}
154
155 Specify the package repository to be used as the source of the
156 installation. In short, this can be a directory name or a url using
157 http(s), ftp, or scp. The documentation for @code{tlmgr} has the details
158 (@url{https://tug.org/texlive/doc/tlmgr.html#OPTIONS}).
159
160 For installation, the default is to pick a mirror automatically, using
161 @url{https://mirror.ctan.org/systems/texlive/tlnet}; the chosen mirror is
162 then used for the entire download. You can use the special argument
163 @code{ctan} as an abbreviation for this. (See @url{https://ctan.org} for more
164 about CTAN and its mirrors.)
165
166 After installation is complete, you can use that installation as the
167 repository for another installation. If you chose to install less than
168 the full scheme containing all packages, the list of available schemes
169 will be adjusted accordingly.
170
171 @item @strong{-select-repository}
172 @anchor{install-tl @strong{-select-repository}}
173
174 This option allows you to choose a particular mirror from the current
175 list of active CTAN mirrors. This option is supported in the @code{text}
176 and @code{gui} installer modes, and will also offer to install
177 from local media if available, or from a repository specified on the
178 command line. It's useful when the (default) automatic redirection does
179 not choose a good host for you.
180
181 @item @strong{-all-options}
182 @anchor{install-tl @strong{-all-options}}
183
184 Normally options not relevant to the current platform are not shown
185 (e.g., when running on Unix, Windows-specific options are omitted).
186 Giving this command line option allows configuring such "foreign"
187 settings.
188
189 @item @strong{-custom-bin} @emph{path}
190 @anchor{install-tl @strong{-custom-bin} @emph{path}}
191
192 If you have built your own set of TeX Live binaries (e.g., because
193 precompiled binaries were not provided by TL for your platform), this
194 option allows you to specify the @emph{path} to a directory where the
195 binaries for the current system are present. The installation will
196 continue as usual, but at the end all files from @emph{path} are copied over
197 to @code{bin/custom/} under your installation directory and this
198 @code{bin/custom/} directory is what will be added to the path for the
199 post-install actions. To install multiple custom binary sets, manually
200 rename @code{custom} before doing each.
201
202 For more information on custom binaries, see
203 @url{https://tug.org/texlive/custom-bin.html}. For general information on
204 building TeX Live, see @url{https://tug.org/texlive/build.html}.
205
206 @item @strong{-debug-fakenet}
207 @anchor{install-tl @strong{-debug-fakenet}}
208
209 Pretend we're doing a network install. This is for the sole purpose of
210 testing the code to handle broken downloads, via moving package files
211 aside in a tlnet mirror hierarchy.
212
213 @item @strong{-debug-setup-vars}
214 @anchor{install-tl @strong{-debug-setup-vars}}
215
216 Print final values of directory variables; for more debugging
217 information on how they were set, also specify @code{-v}.
218
219 @item @strong{-debug-translation}
220 @anchor{install-tl @strong{-debug-translation}}
221
222 In the former Perl/Tk GUI modes, this option reported any missing,
223 or more likely untranslated, messages to standard error. Not yet
224 implemented for the Tcl interface. Helpful for translators to see
225 what remains to be done.
226
227 @item @strong{-force-platform} @emph{platform}
228 @anchor{install-tl @strong{-force-platform} @emph{platform}}
229
230 Instead of auto-detecting the current platform, use @emph{platform}.
231 Binaries for this platform must be present in @code{bin/}@emph{platform}@code{/} and
232 they must be runnable, or installation will fail. @code{-force-arch} is a
233 synonym.
234
235 @item @strong{-help}, @strong{@asis{}-@asis{}-@asis{}help}, @strong{-?}
236 @anchor{install-tl @strong{-help}@comma{} @strong{@asis{}-@asis{}-@asis{}help}@comma{} @strong{-?}}
237
238 Display this help and exit. (This help is also on the web at
239 @url{https://tug.org/texlive/doc/install-tl.html}). Sometimes the @code{perldoc}
240 and/or @code{PAGER} programs on the system have problems, possibly resulting
241 in control characters being literally output. This can't always be
242 detected, but you can set the @code{NOPERLDOC} environment variable and
243 @code{perldoc} will not be used.
244
245 @item @strong{-in-place}
246 @anchor{install-tl @strong{-in-place}}
247
248 This is a quick-and-dirty installation option in case you already have
249 an rsync or svn checkout of TeX Live. It will use the checkout as-is
250 and will just do the necessary post-install. Be warned that the file
251 @code{tlpkg/texlive.tlpdb} may be rewritten, that removal has to be done
252 manually, and that the only realistic way to maintain this installation
253 is to redo it from time to time. This option is not available via the
254 installer interfaces. USE AT YOUR OWN RISK.
255
256 @item @strong{-init-from-profile} @emph{profile_file}
257 @anchor{install-tl @strong{-init-from-profile} @emph{profile_file}}
258
259 Similar to @strong{-profile} (see @ref{install-tl PROFILES,, PROFILES} below), but only initializes
260 the installation configuration from @emph{profile_file} and then starts a
261 normal interactive session. Environment variables are not ignored.
262
263 @item @strong{-logfile} @emph{file}
264 @anchor{install-tl @strong{-logfile} @emph{file}}
265
266 Write both all messages (informational, debugging, warnings) to @emph{file},
267 in addition to standard output or standard error.
268
269 If this option is not given, the installer will create a log file
270 in the root of the writable installation tree,
271 for example, @code{/usr/local/texlive/YYYY/install-tl.log} for the @emph{YYYY}
272 release.
273
274 @item @strong{-no-cls}
275 @anchor{install-tl @strong{-no-cls}}
276
277 For the text mode installer only: do not clear the screen when entering
278 a new menu. For debugging.
279
280 @item @strong{-no-continue}
281 @anchor{install-tl @strong{-no-continue}}
282
283 Quit early on installation failure of a non-core package.
284
285 By default, a few core packages are installed first; then, a failed
286 installation of any other (non-core) package is noted, but does not stop
287 the installation. Any such failed packages are retried, once.
288
289 If the retry also fails, by default the installer proceeds to completion
290 anyway, with the idea that it was a transient network problem and
291 reinstallation will succeed later. If this option is specified, and the
292 retry fails, the installer aborts.
293
294 @item @strong{-no-doc-install}
295 @anchor{install-tl @strong{-no-doc-install}}
296
297 @item @strong{-no-src-install}
298 @anchor{install-tl @strong{-no-src-install}}
299
300 Do not install the documentation resp. source package files, both for
301 the immediate installation and for future updates. After installation,
302 inclusion of the doc/src files can be re-enabled via @code{tlmgr}:
303
304 @verbatim
305 tlmgr option docfiles 1
306 tlmgr option srcfiles 1
307 @end verbatim
308
309 If you later find that you want the doc/src files for a package that has
310 been installed without them, you can get them like this (using the
311 @code{fontspec} package as the example):
312
313 @verbatim
314 tlmgr install --reinstall --with-doc --with-src fontspec
315 @end verbatim
316
317 The source files mentioned here are those relating to TeX packages, such
318 as @code{.dtx} files. The sources that are compiled to make the binaries are
319 available separately: see @url{https://tug.org/texlive/svn/}.
320
321 @item @strong{-no-installation}
322 @anchor{install-tl @strong{-no-installation}}
323
324 Do not perform any installation. This is for debugging the
325 initialization and setup routines without touching the disk.
326
327 @item @strong{-no-interaction}
328 @anchor{install-tl @strong{-no-interaction}}
329
330 Do not enter the interactive menu; immediately perform the installation
331 after initialization and option parsing. Also omit the check for a
332 previous installation and asking about importing previous settings.
333
334 @item @strong{-no-persistent-downloads}
335 @anchor{install-tl @strong{-no-persistent-downloads}}
336
337 @item @strong{-persistent-downloads}
338 @anchor{install-tl @strong{-persistent-downloads}}
339
340 For network installs, activating this option makes the installer try to
341 set up a persistent connection using the @code{LWP} Perl module. This
342 opens only one connection between your computer and the server per
343 session and reuses it, instead of initiating a new download for each
344 package, which typically yields a significant speed-up.
345
346 This option is turned on by default, and the installation program will
347 fall back to using @code{wget} if this is not possible. To disable usage of
348 LWP and persistent connections, use @code{-no-persistent-downloads}.
349
350 @item @strong{-no-verify-downloads}
351 @anchor{install-tl @strong{-no-verify-downloads}}
352
353 By default, if a GnuPG @code{gpg} binary is found in PATH, downloads are
354 verified against a cryptographic signature. This option disables such
355 verification. The full description is in the Crytographic Verification
356 section of the @code{tlmgr} documentation, e.g.,
357 @url{https://tug.org/texlive/doc/tlmgr.html#CRYPTOGRAPHIC-VERIFICATION}
358
359 @item @strong{-non-admin}
360 @anchor{install-tl @strong{-non-admin}}
361
362 For Windows only: configure for the current user, not for all users.
363
364 @item @strong{-paper} @code{a4}@strong{|}@code{letter}
365 @anchor{install-tl @strong{-paper} @code{a4}@strong{|}@code{letter}}
366
367 Set the default paper size for all TeX Live programs, as specified.
368 The default is @code{a4}. The paper size can be set after installation with
369 the @code{tlmgr paper} command.
370
371 @item @strong{-portable}
372 @anchor{install-tl @strong{-portable}}
373
374 Install for portable use, e.g., on a USB stick. See the
375 @code{instopt_portable} description below for details.
376
377 @item @strong{-print-platform}
378 @anchor{install-tl @strong{-print-platform}}
379
380 Print the TeX Live identifier for the detected platform
381 (hardware/operating system) combination to standard output, and exit.
382 @code{-print-arch} is a synonym.
383
384 @item @strong{-profile} @emph{profile_file}
385 @anchor{install-tl @strong{-profile} @emph{profile_file}}
386
387 Load @emph{profile_file} and do the installation with no user interaction,
388 that is, a batch (unattended) install. Environment variables are
389 ignored. See @ref{install-tl PROFILES,, PROFILES} below.
390
391 @item @strong{-q}
392 @anchor{install-tl @strong{-q}}
393
394 Omit normal informational messages.
395
396 @item @strong{-scheme} @emph{scheme}
397 @anchor{install-tl @strong{-scheme} @emph{scheme}}
398
399 Schemes are the highest level of package grouping in TeX Live; the
400 default is to use the @code{full} scheme, which includes everything. This
401 option overrides that default. The @emph{scheme} argument value may
402 optionally have a prefix @code{scheme-}. The list of supported scheme names
403 depends on what your package repository provides; see the interactive
404 menu list.
405
406 @item @strong{-texdir} @emph{dir}
407 @anchor{install-tl @strong{-texdir} @emph{dir}}
408
409 Specify the system installation directory; the default is
410 @code{/usr/local/texlive/YYYY} for release YYYY. Specifying this option also
411 causes the @code{TEXMFLOCAL}, @code{TEXMFSYSCONFIG}, and @code{TEXMFSYSVAR}
412 directories to be set as subdirectories of @emph{dir}, so they don't have to
413 be set individually.
414
415 There is a brief summary of these directories trees at @ref{install-tl DIRECTORY
416 TREES,, DIRECTORY
417 TREES} below; for details on the trees set up by default, and their
418 intended usage, see the main TeX Live documentation at
419 @url{https://tug.org/texlive/doc}.
420
421 @item @strong{-texuserdir} @emph{dir}
422 @anchor{install-tl @strong{-texuserdir} @emph{dir}}
423
424 Specify the user installation directory; the default is
425 @code{~/.texliveYYYY} (except on Macs, where there is no leading dot).
426 Specifying this also causes the @code{TEXMFHOME}, @code{TEXMFCONFIG}, and
427 @code{TEXMFVAR} directories to be set as subdirectories of @emph{dir}.
428
429 @item @strong{-texmflocal} @emph{dir}
430 @anchor{install-tl @strong{-texmflocal} @emph{dir}}
431
432 Specify the @code{TEXMFLOCAL} directory; the default is
433 @code{/usr/local/texlive/texmf-local}, that is, one level up from the main
434 installation. This is so locally-installed packages can be easily used
435 across releases, which is usually desirable. Specifying the @code{-texdir}
436 option changes this, putting @code{TEXMFLOCAL} under the main tree. The
437 @code{-texmflocal} option can be used to specify an explicit directory.
438
439 Anything installed here must follow the TeX directory structure (TDS),
440 e.g., @code{TEXMFHOME/tex/latex/mypkg/mypkg.sty}. TDS reference:
441 @url{https://tug.org/tds}.
442
443 @item @strong{-texmfhome} @emph{dir}
444 @anchor{install-tl @strong{-texmfhome} @emph{dir}}
445
446 Specify the @code{TEXMFHOME} directory; the default is @code{~/texmf}, except on
447 Macs, where it is @code{~/Library/texmf}. Analogously to @code{TEXMFLOCAL}, the
448 @code{-texuserdir} option changes this default.
449
450 Also as with @code{TEXMFLOCAL}, anything installed here must follow the TDS.
451
452 @item @strong{-texmfsysconfig} @emph{dir}
453 @anchor{install-tl @strong{-texmfsysconfig} @emph{dir}}
454
455 @item @strong{-texmfsysvar} @emph{dir}
456 @anchor{install-tl @strong{-texmfsysvar} @emph{dir}}
457
458 Specify the @code{TEXMFSYSCONFIG} and @code{TEXMFSYSVAR} system directories.
459
460 @item @strong{-texmfconfig} @emph{dir}
461 @anchor{install-tl @strong{-texmfconfig} @emph{dir}}
462
463 @item @strong{-texmfvar} @emph{dir}
464 @anchor{install-tl @strong{-texmfvar} @emph{dir}}
465
466 Specify the @code{TEXMFCONFIG} and @code{TEXMFVAR} user directories.
467 The defaults are @code{~/.texliveYYYY/texmf-@{config,var@}}, except on Macs,
468 where the leading dot is omitted (@code{~/texliveYYYY/...}).
469
470 @item @strong{-v}
471 @anchor{install-tl @strong{-v}}
472
473 Include verbose debugging messages; repeat for maximum debugging: @code{-v
474 -v}. (Further repeats are accepted but ignored.)
475
476 @item @strong{-version}, @strong{@asis{}-@asis{}-@asis{}version}
477 @anchor{install-tl @strong{-version}@comma{} @strong{@asis{}-@asis{}-@asis{}version}}
478
479 Output version information and exit. If @code{-v} is also given, the
480 versions of the TeX Live modules used are also reported.
481
482 @end table
483
484 @node install-tl PROFILES
485 @appendixsec PROFILES
486
487 A @emph{profile} file normally contains all the values needed to perform an
488 installation. After a normal installation has finished, a profile for
489 that exact installation is written to the file @code{tlpkg/texlive.profile}.
490 In addition, from the text menu one can select @code{P} to save the current
491 setup as a profile at any time. These are small text files; feel free to
492 peruse and edit them according to your needs.
493
494 Such a profile file can be given as the argument to @code{-profile}, for
495 example to redo the exact same installation on a different system.
496 Alternatively, you can use a custom profile, most easily created by
497 starting from a generated one and changing values. An empty profile
498 file will cause the installer to use the defaults.
499
500 As mentioned above, the installer only supports selection by scheme and
501 collections, not individual packages, so packages cannot be specified in
502 profile files either. Use @code{tlmgr} to work at the package level.
503
504 Within a profile file, each line consists of
505
506 @emph{variable} [@emph{value}]
507
508 except for comment lines starting with @code{#}. The possible variable
509 names are listed below. Values, when present, are either @code{0} or @code{1}
510 for booleans, or strings (which must be specified without any quote
511 characters). Leading whitespace is ignored.
512
513 If the variable @code{selected_scheme} is defined and @emph{no} collection
514 variables at all are defined, then the collections required by the
515 specified scheme (which might change over time) are installed, without
516 explicitly listing them. This eases maintenance of profile files. If any
517 collections are specified in a profile, though, then the scheme is
518 ignored and all desired collections must be given explicitly.
519
520 For example, a line
521
522 @verbatim
523 selected_scheme scheme-small
524 @end verbatim
525
526 along with definitions for the installation directories (given below
527 under "path options") suffices to install the "small" scheme with all
528 default options. The schemes are described in the @code{S} menu in the
529 text installer, or equivalent.
530
531 In addition to @code{selected_scheme}, here are the other variable names
532 supported in a profile:
533
534 @strong{collection options} (prefix @code{collection-})
535
536 Collections are specified with a variable name with the prefix
537 @code{collection-} followed by a collection name; there is no value. For
538 instance, @code{collection-basic}. The collections are described in the
539 @code{C} menu.
540
541 Schemes and collections (and packages) are ultimately defined by the
542 files in the @code{tlpkg/tlpsrc/} source directory.
543
544 @strong{path options}
545
546 It is best to define all of these, even though they may not be used in a
547 given installation, so as to avoid unintentionally getting a default
548 value that could cause problems later.
549
550 @verbatim
551 TEXDIR
552 TEXMFLOCAL
553 TEXMFSYSCONFIG
554 TEXMFSYSVAR
555 TEXMFCONFIG
556 TEXMFVAR
557 TEXMFHOME
558 @end verbatim
559
560 @strong{installer options} (prefix @code{instopt_})
561
562 @table @asis
563 @item @code{instopt_adjustpath} (default 0 on Unix, 1 on Windows)
564 @anchor{install-tl @code{instopt_adjustpath} (default 0 on Unix@comma{} 1 on Windows)}
565
566 Adjust @code{PATH} environment variable.
567
568 @item @code{instopt_adjustrepo} (default 1)
569 @anchor{install-tl @code{instopt_adjustrepo} (default 1)}
570
571 Set remote repository to a multiplexed CTAN mirror after installation;
572 see @code{-repository} above.
573
574 @item @code{instopt_letter} (default 0)
575 @anchor{install-tl @code{instopt_letter} (default 0)}
576
577 Set letter size paper as the default, instead of a4.
578
579 @item @code{instopt_portable} (default 0)
580 @anchor{install-tl @code{instopt_portable} (default 0)}
581
582 Install for portable use, e.g., on a USB stick, without touching the
583 host system. Specifically, this forces the user directories
584 @code{TEXMFHOME}, @code{TEXMFCONFIG}, @code{TEXMFVAR} to be identical to the system
585 directories @code{TEXMFLOCAL}, @code{TEXMFSYSCONFIG}, @code{TEXMFSYSVAR},
586 respectively (regardless of other options and environment variable.)
587
588 In addition, on Windows, it disables the desktop integration, path
589 adjustment, and file associations actions usually performed.
590
591 @item @code{instopt_write18_restricted} (default 1)
592 @anchor{install-tl @code{instopt_write18_restricted} (default 1)}
593
594 Enable @code{\write18} for a restricted set of programs.
595
596 @end table
597
598 @strong{tlpdb options} (prefix @code{tlpdbopt_})
599
600 The definitive list is given in @code{tlpkg/TeXLive/TLConfig.pm}, in the hash
601 @code{%TeXLive::TLConfig::TLPDBOptions}, together with explanations. All
602 items given there @emph{except} for @code{tlpdbopt_location} can be specified.
603 Here is the current list:
604
605 @verbatim
606 tlpdbopt_autobackup
607 tlpdbopt_backupdir
608 tlpdbopt_create_formats
609 tlpdbopt_desktop_integration
610 tlpdbopt_file_assocs
611 tlpdbopt_generate_updmap
612 tlpdbopt_install_docfiles
613 tlpdbopt_install_srcfiles
614 tlpdbopt_post_code
615 tlpdbopt_sys_bin
616 tlpdbopt_sys_info
617 tlpdbopt_sys_man
618 tlpdbopt_w32_multi_user
619 @end verbatim
620
621 @strong{platform options} (prefix @code{binary_})
622
623 For each supported platform in TeX Live (directories under @code{bin/}), the
624 variable @code{binary_}@emph{PLATFORM} can be set with value 1. For example:
625
626 @verbatim
627 binary_x86_64-linux 1
628 @end verbatim
629
630 If no @code{binary_} settings are made, the default is whatever the
631 current machine is running.
632
633 In releases before 2017, many profile variables had different
634 names (not documented here; see the @code{install-tl} source). They are
635 accepted and transformed to the names given above. When a profile is
636 written, the names above are always used.
637
638 For more details on all of the above options, consult the TeX Live
639 installation manual, linked from @url{https://tug.org/texlive/doc}.
640
641 @node install-tl ENVIRONMENT VARIABLES
642 @appendixsec ENVIRONMENT VARIABLES
643
644 For ease in scripting and debugging, @code{install-tl} looks for the
645 following environment variables. They are not of interest for normal
646 user installations.
647
648 @table @asis
649 @item @code{NOPERLDOC}
650 @anchor{install-tl @code{NOPERLDOC}}
651
652 Don't try to run the @code{--help} message through @code{perldoc}.
653
654 @item @code{TEXLIVE_DOWNLOADER}
655 @anchor{install-tl @code{TEXLIVE_DOWNLOADER}}
656
657 @item @code{TL_DOWNLOAD_PROGRAM}
658 @anchor{install-tl @code{TL_DOWNLOAD_PROGRAM}}
659
660 @item @code{TL_DOWNLOAD_ARGS}
661 @anchor{install-tl @code{TL_DOWNLOAD_ARGS}}
662
663 @item @code{TEXLIVE_PREFER_OWN}
664 @anchor{install-tl @code{TEXLIVE_PREFER_OWN}}
665
666 These override the normal choice of the download and other utility
667 programs; see the @code{tlmgr} documentation, e.g.,
668 @url{https://tug.org/texlive/doc/tlmgr.html#ENVIRONMENT-VARIABLES}.
669
670 @item @code{TEXLIVE_INSTALL_ENV_NOCHECK}
671 @anchor{install-tl @code{TEXLIVE_INSTALL_ENV_NOCHECK}}
672
673 Omit the check for environment variables containing the string @code{tex}.
674 People developing TeX-related software are likely to have many such
675 variables.
676
677 @item @code{TEXLIVE_INSTALL_NO_CONTEXT_CACHE}
678 @anchor{install-tl @code{TEXLIVE_INSTALL_NO_CONTEXT_CACHE}}
679
680 Omit creating the ConTeXt cache. This is useful for redistributors.
681
682 @item @code{TEXLIVE_INSTALL_NO_DISKCHECK}
683 @anchor{install-tl @code{TEXLIVE_INSTALL_NO_DISKCHECK}}
684
685 If set to 1, omit free disk space check. By default, if a
686 POSIX-compliant @code{df} program (supporting @code{-Pk}) is available, the
687 installer checks for available disk space in the selected installation
688 location, and will abort installation if there is insufficient disk
689 space, plus a margin of 100MB. An equivalent check is made on Windows
690 (not involving @code{df}).
691
692 @item @code{TEXLIVE_INSTALL_NO_RESUME}
693 @anchor{install-tl @code{TEXLIVE_INSTALL_NO_RESUME}}
694
695 Omit check for installing on top of a previous installation and then
696 asking about importing previous settings.
697
698 @item @code{TEXLIVE_INSTALL_NO_WELCOME}
699 @anchor{install-tl @code{TEXLIVE_INSTALL_NO_WELCOME}}
700
701 Omit printing the welcome message after successful installation, e.g.,
702 when testing.
703
704 @item @code{TEXLIVE_INSTALL_PAPER}
705 @anchor{install-tl @code{TEXLIVE_INSTALL_PAPER}}
706
707 Set the default paper size for all relevant programs; must be either
708 @code{letter} or @code{a4}. The default is @code{a4}.
709
710 @item @code{TEXLIVE_INSTALL_PREFIX}
711 @anchor{install-tl @code{TEXLIVE_INSTALL_PREFIX}}
712
713 @item @code{TEXLIVE_INSTALL_TEXMFCONFIG}
714 @anchor{install-tl @code{TEXLIVE_INSTALL_TEXMFCONFIG}}
715
716 @item @code{TEXLIVE_INSTALL_TEXMFVAR}
717 @anchor{install-tl @code{TEXLIVE_INSTALL_TEXMFVAR}}
718
719 @item @code{TEXLIVE_INSTALL_TEXMFHOME}
720 @anchor{install-tl @code{TEXLIVE_INSTALL_TEXMFHOME}}
721
722 @item @code{TEXLIVE_INSTALL_TEXMFLOCAL}
723 @anchor{install-tl @code{TEXLIVE_INSTALL_TEXMFLOCAL}}
724
725 @item @code{TEXLIVE_INSTALL_TEXMFSYSCONFIG}
726 @anchor{install-tl @code{TEXLIVE_INSTALL_TEXMFSYSCONFIG}}
727
728 @item @code{TEXLIVE_INSTALL_TEXMFSYSVAR}
729 @anchor{install-tl @code{TEXLIVE_INSTALL_TEXMFSYSVAR}}
730
731 Specify the respective directories. @code{TEXLIVE_INSTALL_PREFIX} defaults
732 to @code{/usr/local/texlive}. All the defaults can be seen by running the
733 installer interactively and then typing @code{D} for the directory menu.
734
735 The various command line options for specifying directories override
736 these environment variables; since specifying both is usually
737 accidental, a warning is given if the values are different.
738
739 @end table
740
741 @node install-tl DIRECTORY TREES
742 @appendixsec DIRECTORY TREES
743
744 There are a plethora of ways to specify the plethora of directory trees
745 used by TeX Live. By far the simplest, and recommended, approach is not
746 to change anything. The defaults suffice for the vast majority of
747 installations.
748
749 But, for the sake of explanation, here is a table of the trees and the
750 command line options that change them. The first group of three are
751 system directories, and the second group of three are user directories;
752 the two groups are quite analogous.
753
754 @verbatim
755 +----------------+--------------------------------------+--------------+------------------+
756 | tree | default | group change | single change |
757 +----------------+--------------------------------------+--------------+------------------+
758 | TEXMFLOCAL | /usr/local/texlive/texmf-local | --texdir | --texmflocal |
759 | TEXMFSYSVAR | /usr/local/texlive/YYYY/texmf-var | --texdir | --texmfsysvar |
760 | TEXMFSYSCONFIG | /usr/local/texlive/YYYY/texmf-config | --texdir | --texmfsysconfig |
761 +----------------+--------------------------------------+--------------+------------------+
762 | TEXMFHOME | ~/texmf | --texuserdir | --texmfhome |
763 | TEXMFVAR | ~/.texliveYYYY/texmf-var | --texuserdir | --texmfvar |
764 | TEXMFCONFIG | ~/.texliveYYYY/texmf-config | --texuserdir | --texmfconfig |
765 +----------------+--------------------------------------+--------------+------------------+
766 @end verbatim
767
768 In addition, as mentioned in the previous section, each tree has an
769 environment variable @code{TEXLIVE_INSTALL_}@emph{tree} which overrides the
770 default; command line and profile settings both override environment
771 variable settings.
772
773 The defaults vary slightly on Macs, as explained above in @ref{install-tl OPTIONS,, OPTIONS}.
774
775 For the user trees, the default value uses @code{~}, and this is left as a
776 literal @code{~} in @code{texmf.cnf}. That way, each user can have their own
777 @code{TEXMFHOME}, etc., as intended. On the other hand, for the system
778 trees, if @code{~} is used during the installation, this is assumed to
779 simply be a typing shorthand, and the expanded home directory is written
780 in @code{texmf.cnf}, since it doesn't make sense to have user-specific
781 system directories.
782
783 For more on the directory trees and their intended usage, see the main
784 TeX Live documentation at @url{https://tug.org/texlive/doc}.
785
786 @node install-tl BUGS
787 @appendixsec install-tl BUGS
788
789 The @code{install-tl} script copies itself into the installed tree.
790 Usually, it can be run from there, using the installed tree as the
791 source for another installation. Occasionally, however, there may be
792 incompatibilities in the code of the new @code{install-tl} and the
793 infrastructure, resulting in (probably) inscrutable Perl errors. The
794 way forward is to run @code{install-tl} out of the installer package
795 (@code{install-tl-unx.tar.gz} or @code{install-tl.zip}) instead of the
796 installation. Feel free to also report the issue; usually the code
797 can be easily synced up again.
798
799 By the way, do not try to use @code{install-tl} to adjust options or
800 installed packages in an existing installed tree. Use @code{tlmgr} instead.
801
802 @node install-tl AUTHORS AND COPYRIGHT
803 @appendixsec AUTHORS AND COPYRIGHT
804
805 This script and its documentation were written for the TeX Live
806 distribution (@url{https://tug.org/texlive}) and both are licensed under the
807 GNU General Public License Version 2 or later.
808
809 $Id: install-tl 75865 2025-07-22 20:56:23Z karl $
810