| 1 |
@node tlmgr |
| 2 |
@appendix tlmgr |
| 3 |
|
| 4 |
@node tlmgr NAME |
| 5 |
@appendixsec tlmgr NAME |
| 6 |
|
| 7 |
tlmgr - the native TeX Live Manager |
| 8 |
|
| 9 |
@node tlmgr SYNOPSIS |
| 10 |
@appendixsec tlmgr SYNOPSIS |
| 11 |
|
| 12 |
tlmgr [@emph{option}...] @emph{action} [@emph{option}...] [@emph{operand}...] |
| 13 |
|
| 14 |
@node tlmgr DESCRIPTION |
| 15 |
@appendixsec tlmgr DESCRIPTION |
| 16 |
|
| 17 |
@strong{tlmgr} manages an existing TeX Live installation, both packages and |
| 18 |
configuration options. For information on initially downloading and |
| 19 |
installing TeX Live, see @url{https://tug.org/texlive/acquire.html}. |
| 20 |
|
| 21 |
The most up-to-date version of this documentation (updated nightly from |
| 22 |
the development sources) is available at |
| 23 |
@url{https://tug.org/texlive/tlmgr.html}, along with procedures for updating |
| 24 |
@code{tlmgr} itself and information about test versions. |
| 25 |
|
| 26 |
TeX Live is organized into a few top-level @emph{schemes}, each of which is |
| 27 |
specified as a different set of @emph{collections} and @emph{packages}, where a |
| 28 |
collection is a set of packages, and a package is what contains actual |
| 29 |
files. Schemes typically contain a mix of collections and packages, but |
| 30 |
each package is included in exactly one collection, no more and no less. |
| 31 |
A TeX Live installation can be customized and managed at any level. |
| 32 |
|
| 33 |
See @url{https://tug.org/texlive/doc} for all the TeX Live documentation |
| 34 |
available. |
| 35 |
|
| 36 |
@node tlmgr EXAMPLES |
| 37 |
@appendixsec tlmgr EXAMPLES |
| 38 |
|
| 39 |
After successfully installing TeX Live, here are a few common operations |
| 40 |
with @code{tlmgr}: |
| 41 |
|
| 42 |
@table @asis |
| 43 |
@item @code{tlmgr option repository ctan} |
| 44 |
@anchor{tlmgr @code{tlmgr option repository ctan}} |
| 45 |
|
| 46 |
@item @code{tlmgr option repository https://mirror.ctan.org/systems/texlive/tlnet} |
| 47 |
@anchor{tlmgr @code{tlmgr option repository https@asis{:}//mirror.ctan.org/systems/texlive/tlnet}} |
| 48 |
|
| 49 |
Tell @code{tlmgr} to use a nearby CTAN mirror for future updates; useful if |
| 50 |
you installed TeX Live from the DVD image and want to have continuing |
| 51 |
updates. The two commands are equivalent; @code{ctan} is just an alias for |
| 52 |
the given url. |
| 53 |
|
| 54 |
Caveat: @code{mirror.ctan.org} resolves to many different hosts, and they |
| 55 |
are not perfectly synchronized; we recommend updating only daily (at |
| 56 |
most), and not more often. You can choose a particular mirror if |
| 57 |
problems; the list of all CTAN mirrors with the status of each is at |
| 58 |
@url{https://ctan.org/mirrors/mirmon}. |
| 59 |
|
| 60 |
@item @code{tlmgr update --list} |
| 61 |
@anchor{tlmgr @code{tlmgr update --list}} |
| 62 |
|
| 63 |
Report what would be updated without actually updating anything. |
| 64 |
|
| 65 |
@item @code{tlmgr update --all} |
| 66 |
@anchor{tlmgr @code{tlmgr update --all}} |
| 67 |
|
| 68 |
Make your local TeX installation correspond to what is in the package |
| 69 |
repository (typically useful when updating from CTAN). |
| 70 |
|
| 71 |
@item @code{tlmgr info} @emph{what} |
| 72 |
@anchor{tlmgr @code{tlmgr info} @emph{what}} |
| 73 |
|
| 74 |
Display detailed information about a package @emph{what}, such as the installation |
| 75 |
status and description, of searches for @emph{what} in all packages. |
| 76 |
|
| 77 |
@item @code{tlmgr bug} @emph{what} |
| 78 |
@anchor{tlmgr @code{tlmgr bug} @emph{what}} |
| 79 |
|
| 80 |
Display available bug-reporting information for @emph{what}, a package or |
| 81 |
file name. |
| 82 |
|
| 83 |
@end table |
| 84 |
|
| 85 |
For all the capabilities and details of @code{tlmgr}, please read the |
| 86 |
following voluminous information. |
| 87 |
|
| 88 |
@node tlmgr OPTIONS |
| 89 |
@appendixsec tlmgr OPTIONS |
| 90 |
|
| 91 |
The following options to @code{tlmgr} are global options, not specific to |
| 92 |
any action. All options, whether global or action-specific, can be |
| 93 |
given anywhere on the command line, and in any order. The first |
| 94 |
non-option argument will be the main action. In all cases, |
| 95 |
@code{--}@emph{option} and @code{-}@emph{option} are equivalent, and an @code{=} is optional |
| 96 |
between an option name and its value. |
| 97 |
|
| 98 |
@table @asis |
| 99 |
@item @strong{@asis{}-@asis{}-@asis{}repository} @emph{url|path} |
| 100 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}repository} @emph{url|path}} |
| 101 |
|
| 102 |
Specify the package repository from which packages should be installed |
| 103 |
or updated, either a local directory or network location, as below. This |
| 104 |
overridesthe default package repository found in the installation's TeX |
| 105 |
Live Package Database (a.k.a. the TLPDB, which is given entirely in the |
| 106 |
file @code{tlpkg/texlive.tlpdb}). |
| 107 |
|
| 108 |
This @code{--repository} option changes the location only for the current |
| 109 |
run; to make a permanent change, use @code{option repository} (see the |
| 110 |
@ref{tlmgr option,, option} action). |
| 111 |
|
| 112 |
As an example, you can choose a particular CTAN mirror with something |
| 113 |
like this: |
| 114 |
|
| 115 |
@verbatim |
| 116 |
-repository http://ctan.example.org/its/ctan/dir/systems/texlive/tlnet |
| 117 |
@end verbatim |
| 118 |
|
| 119 |
Of course a real hostname and its particular top-level CTAN directory |
| 120 |
have to be specified. The list of CTAN mirrors is available at |
| 121 |
@url{https://ctan.org/mirrors/mirmon}. |
| 122 |
|
| 123 |
Here's an example of using a local directory: |
| 124 |
|
| 125 |
@verbatim |
| 126 |
-repository /local/TL/repository |
| 127 |
@end verbatim |
| 128 |
|
| 129 |
For backward compatibility and convenience, @code{--location} and @code{--repo} |
| 130 |
are accepted as aliases for this option. |
| 131 |
|
| 132 |
Locations can be specified as any of the following: |
| 133 |
|
| 134 |
@table @asis |
| 135 |
@item @code{/some/local/dir} |
| 136 |
@anchor{tlmgr @code{/some/local/dir}} |
| 137 |
|
| 138 |
@item @code{file:/some/local/dir} |
| 139 |
@anchor{tlmgr @code{file@asis{:}/some/local/dir}} |
| 140 |
|
| 141 |
Equivalent ways of specifying a local directory. |
| 142 |
|
| 143 |
@item @code{ctan} |
| 144 |
@anchor{tlmgr @code{ctan}} |
| 145 |
|
| 146 |
@item @code{https://mirror.ctan.org/systems/texlive/tlnet} |
| 147 |
@anchor{tlmgr @code{https@asis{:}//mirror.ctan.org/systems/texlive/tlnet}} |
| 148 |
|
| 149 |
Pick a CTAN mirror automatically, trying for one that is both nearby and |
| 150 |
up-to-date. The chosen mirror is used for the entire download. The bare |
| 151 |
@code{ctan} is merely an alias for the full url. (See @url{https://ctan.org} for |
| 152 |
more about CTAN and its mirrors.) |
| 153 |
|
| 154 |
@item @code{http://server/path/to/tlnet} |
| 155 |
@anchor{tlmgr @code{http@asis{:}//server/path/to/tlnet}} |
| 156 |
|
| 157 |
Standard HTTP. If the (default) LWP method is used, persistent |
| 158 |
connections are supported. TL can also use @code{curl} or @code{wget} to do the |
| 159 |
downloads, or an arbitrary user-specified program, as described in the |
| 160 |
@code{tlmgr} documentation |
| 161 |
(@url{https://tug.org/texlive/doc/tlmgr.html#ENVIRONMENT-VARIABLES}). |
| 162 |
|
| 163 |
@item @code{https://server/path/to/tlnet} |
| 164 |
@anchor{tlmgr @code{https@asis{:}//server/path/to/tlnet}} |
| 165 |
|
| 166 |
Again, if the (default) LWP method is used, this supports persistent |
| 167 |
connections. Unfortunately, some versions of @code{wget} and @code{curl} do not |
| 168 |
support https, and even when @code{wget} supports https, certificates may be |
| 169 |
rejected even when the certificate is fine, due to a lack of local |
| 170 |
certificate roots. The simplest workaround for this problem is to use |
| 171 |
http or ftp. |
| 172 |
|
| 173 |
@item @code{ftp://server/path/to/tlnet} |
| 174 |
@anchor{tlmgr @code{ftp@asis{:}//server/path/to/tlnet}} |
| 175 |
|
| 176 |
If the (default) LWP method is used, persistent connections are |
| 177 |
supported. |
| 178 |
|
| 179 |
@item @code{user@@machine:/path/to/tlnet} |
| 180 |
@anchor{tlmgr @code{user@@machine@asis{:}/path/to/tlnet}} |
| 181 |
|
| 182 |
@item @code{scp://user@@machine/path/to/tlnet} |
| 183 |
@anchor{tlmgr @code{scp@asis{:}//user@@machine/path/to/tlnet}} |
| 184 |
|
| 185 |
@item @code{ssh://user@@machine/path/to/tlnet} |
| 186 |
@anchor{tlmgr @code{ssh@asis{:}//user@@machine/path/to/tlnet}} |
| 187 |
|
| 188 |
These forms are equivalent; they all use @code{scp} to transfer files. Using |
| 189 |
@code{ssh-agent} is recommended. (Info: |
| 190 |
@url{https://en.wikipedia.org/wiki/OpenSSH}, |
| 191 |
@url{https://en.wikipedia.org/wiki/Ssh-agent}.) |
| 192 |
|
| 193 |
@end table |
| 194 |
|
| 195 |
If the repository is on the network, trailing @code{/} characters and/or |
| 196 |
trailing @code{/tlpkg} and/or @code{/archive} components are ignored. |
| 197 |
|
| 198 |
@item @strong{@asis{}-@asis{}-@asis{}gui} [@emph{action}] |
| 199 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}gui} [@emph{action}]} |
| 200 |
|
| 201 |
Two notable GUI front-ends for @code{tlmgr}, @code{tlshell} and @code{tlcockpit}, |
| 202 |
are started up as separate programs; see their own documentation. |
| 203 |
|
| 204 |
@code{tlmgr} itself has a graphical interface as well as the command line |
| 205 |
interface. You can give the option to invoke it, @code{--gui}, together with |
| 206 |
an action to be brought directly into the respective screen of the GUI. |
| 207 |
For example, running |
| 208 |
|
| 209 |
@verbatim |
| 210 |
tlmgr --gui update |
| 211 |
@end verbatim |
| 212 |
|
| 213 |
starts you directly at the update screen. If no action is given, the |
| 214 |
GUI will be started at the main screen. See @ref{tlmgr GUI FOR TLMGR,, GUI FOR TLMGR}. |
| 215 |
|
| 216 |
However, the native GUI requires Perl/TK, which is no longer included in |
| 217 |
TeX Live's Perl distribution for Windows. You may find @code{tlshell} or |
| 218 |
@code{tlcockpit} easier to work with. |
| 219 |
|
| 220 |
@item @strong{@asis{}-@asis{}-@asis{}gui-lang} @emph{llcode} |
| 221 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}gui-lang} @emph{llcode}} |
| 222 |
|
| 223 |
By default, the GUI tries to deduce your language from the environment |
| 224 |
(on Windows via the registry, on Unix via @code{LC_MESSAGES}). If that fails |
| 225 |
you can select a different language by giving this option with a |
| 226 |
language code (based on ISO 639-1). Currently supported (but not |
| 227 |
necessarily completely translated) are: @w{English (en, default)}, |
| 228 |
@w{Czech (cs)}, @w{German (de)}, @w{French (fr)}, @w{Italian (it)}, |
| 229 |
@w{Japanese (ja)}, @w{Dutch (nl)}, @w{Polish (pl)}, @w{Brazilian Portuguese |
| 230 |
(pt_BR)}, @w{Russian (ru)}, @w{Slovak (sk)}, @w{Slovenian (sl)}, @w{Serbian |
| 231 |
(sr)}, @w{Ukrainian (uk)}, @w{Vietnamese (vi)}, @w{simplified Chinese |
| 232 |
(zh_CN)}, and @w{traditional Chinese (zh_TW)}. |
| 233 |
|
| 234 |
tlshell shares its message catalog with tlmgr. |
| 235 |
|
| 236 |
@item @strong{@asis{}-@asis{}-@asis{}command-logfile} @emph{file} |
| 237 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}command-logfile} @emph{file}} |
| 238 |
|
| 239 |
@code{tlmgr} logs the output of all programs invoked (mktexlr, mtxrun, fmtutil, |
| 240 |
updmap) to a separate log file, by default |
| 241 |
@code{TEXMFSYSVAR/web2c/tlmgr-commands.log}. This option allows you to specify a |
| 242 |
different file for the log. |
| 243 |
|
| 244 |
@item @strong{@asis{}-@asis{}-@asis{}debug-translation} |
| 245 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}debug-translation}} |
| 246 |
|
| 247 |
In GUI mode, this switch tells @code{tlmgr} to report any untranslated (or |
| 248 |
missing) messages to standard error. This can help translators to see |
| 249 |
what remains to be done. |
| 250 |
|
| 251 |
@item @strong{@asis{}-@asis{}-@asis{}machine-readable} |
| 252 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}machine-readable}} |
| 253 |
|
| 254 |
Instead of the normal output intended for human consumption, write (to |
| 255 |
standard output) a fixed format more suitable for machine parsing. See |
| 256 |
the @ref{tlmgr MACHINE-READABLE OUTPUT,, MACHINE-READABLE OUTPUT} section below. |
| 257 |
|
| 258 |
@item @strong{@asis{}-@asis{}-@asis{}no-execute-actions} |
| 259 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-execute-actions}} |
| 260 |
|
| 261 |
Suppress the execution of the execute actions as defined in the tlpsrc |
| 262 |
files. Unless you are going to do the postprocessing yourself (as, for |
| 263 |
example, @code{install-tl} does), this shouldn't be specified. Otherwise, |
| 264 |
format files and the filename database will become stale, among other |
| 265 |
problems. |
| 266 |
|
| 267 |
@item @strong{@asis{}-@asis{}-@asis{}package-logfile} @emph{file} |
| 268 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}package-logfile} @emph{file}} |
| 269 |
|
| 270 |
@code{tlmgr} logs all package actions (install, remove, update, failed |
| 271 |
updates, failed restores) to a separate log file, by default |
| 272 |
@code{TEXMFSYSVAR/web2c/tlmgr.log}. This option allows you to specify a |
| 273 |
different file for the log. |
| 274 |
|
| 275 |
@item @strong{@asis{}-@asis{}-@asis{}pause} |
| 276 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}pause}} |
| 277 |
|
| 278 |
This option makes @code{tlmgr} wait for user input before exiting. Useful on |
| 279 |
Windows to avoid disappearing command windows. |
| 280 |
|
| 281 |
@item @strong{@asis{}-@asis{}-@asis{}persistent-downloads} |
| 282 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}persistent-downloads}} |
| 283 |
|
| 284 |
@item @strong{@asis{}-@asis{}-@asis{}no-persistent-downloads} |
| 285 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-persistent-downloads}} |
| 286 |
|
| 287 |
For network-based installations, this option (on by default) makes |
| 288 |
@code{tlmgr} try to set up a persistent connection (using the @code{LWP} Perl |
| 289 |
module). The idea is to open and reuse only one connection per session |
| 290 |
between your computer and the server, instead of initiating a new |
| 291 |
download for each package. |
| 292 |
|
| 293 |
If this is not possible, @code{tlmgr} will fall back to using @code{wget}. To |
| 294 |
disable these persistent connections, use @code{--no-persistent-downloads}. |
| 295 |
|
| 296 |
@item @strong{@asis{}-@asis{}-@asis{}pin-file} |
| 297 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}pin-file}} |
| 298 |
|
| 299 |
Change the pinning file location from @code{TEXMFLOCAL/tlpkg/pinning.txt} |
| 300 |
(see @ref{tlmgr Pinning,, Pinning} below). Documented only for completeness, as this is |
| 301 |
only useful in debugging. |
| 302 |
|
| 303 |
@item @strong{@asis{}-@asis{}-@asis{}usermode} |
| 304 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}usermode}} |
| 305 |
|
| 306 |
Activates user mode for this run of @code{tlmgr}; see @ref{tlmgr USER MODE,, USER MODE} below. |
| 307 |
|
| 308 |
@item @strong{@asis{}-@asis{}-@asis{}usertree} @emph{dir} |
| 309 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}usertree} @emph{dir}} |
| 310 |
|
| 311 |
Uses @emph{dir} for the tree in user mode; see @ref{tlmgr USER MODE,, USER MODE} below. |
| 312 |
|
| 313 |
@item @strong{@asis{}-@asis{}-@asis{}verify-repo=[none|main|all]} |
| 314 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}verify-repo=[none|main|all]}} |
| 315 |
|
| 316 |
Defines the level of verification done: If @code{none} is specified, no |
| 317 |
verification whatsoever is done. If @code{main} is given and a working GnuPG |
| 318 |
(@code{gpg}) binary is available, all repositories are checked, but only the |
| 319 |
main repository is required to be signed. If @code{all} is given, then all |
| 320 |
repositories need to be signed. See @ref{tlmgr CRYPTOGRAPHIC VERIFICATION,, CRYPTOGRAPHIC VERIFICATION} below |
| 321 |
for details. |
| 322 |
|
| 323 |
@end table |
| 324 |
|
| 325 |
The standard options for TeX Live programs are also accepted: |
| 326 |
@code{--help/-h/-?}, @code{--version}, @code{-q} (no informational messages), @code{-v} |
| 327 |
(debugging messages, can be repeated). For the details about these, see |
| 328 |
the @code{TeXLive::TLUtils} documentation. |
| 329 |
|
| 330 |
The @code{--version} option shows version information about the TeX Live |
| 331 |
release and about the @code{tlmgr} script itself. If @code{-v} is also given, |
| 332 |
revision number for the loaded TeX Live Perl modules are shown, too. |
| 333 |
|
| 334 |
@node tlmgr ACTIONS |
| 335 |
@appendixsec ACTIONS |
| 336 |
|
| 337 |
@node tlmgr help |
| 338 |
@appendixsubsec help |
| 339 |
|
| 340 |
Display this help information and exit (same as @code{--help}, and on the |
| 341 |
web at @url{https://tug.org/texlive/doc/tlmgr.html}). Sometimes the |
| 342 |
@code{perldoc} and/or @code{PAGER} programs on the system have problems, |
| 343 |
resulting in control characters being literally output. This can't |
| 344 |
always be detected, but you can set the @code{NOPERLDOC} environment |
| 345 |
variable and @code{perldoc} will not be used. |
| 346 |
|
| 347 |
@node tlmgr version |
| 348 |
@appendixsubsec version |
| 349 |
|
| 350 |
Gives version information (same as @code{--version}). |
| 351 |
|
| 352 |
If @code{-v} has been given the revisions of the used modules are reported, too. |
| 353 |
|
| 354 |
@node tlmgr backup |
| 355 |
@appendixsubsec backup |
| 356 |
|
| 357 |
@table @asis |
| 358 |
@item @strong{backup [@emph{option}...] @asis{}-@asis{}-@asis{}all} |
| 359 |
@anchor{tlmgr @strong{backup [@emph{option}...] @asis{}-@asis{}-@asis{}all}} |
| 360 |
|
| 361 |
@item @strong{backup [@emph{option}...] @emph{pkg}...} |
| 362 |
@anchor{tlmgr @strong{backup [@emph{option}...] @emph{pkg}...}} |
| 363 |
|
| 364 |
If the @code{--clean} option is not specified, this action makes a backup of |
| 365 |
the given packages, or all packages given @code{--all}. These backups are |
| 366 |
saved to the value of the @code{--backupdir} option, if that is an existing |
| 367 |
and writable directory. If @code{--backupdir} is not given, the @code{backupdir} |
| 368 |
option setting in the TLPDB is used, if present. If both are missing, no |
| 369 |
backups are made. (The installer sets @code{backupdir} to |
| 370 |
@code{.../tlpkg/backups}, under the TL root installation directory, so it is |
| 371 |
usually defined; see the @ref{tlmgr option,, option} description for more information.) |
| 372 |
|
| 373 |
If the @code{--clean} option is specified, backups are pruned (removed) |
| 374 |
instead of saved. The optional integer value @emph{N} may be specified to |
| 375 |
set the number of backups that will be retained when cleaning. If @code{N} |
| 376 |
is not given, the value of the @code{autobackup} option is used. If both are |
| 377 |
missing, an error is issued. For more details of backup pruning, see |
| 378 |
the @code{option} action. |
| 379 |
|
| 380 |
Options: |
| 381 |
|
| 382 |
@table @asis |
| 383 |
@item @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory} |
| 384 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory}} |
| 385 |
|
| 386 |
Overrides the @code{backupdir} option setting in the TLPDB. |
| 387 |
The @emph{directory} argument is required and must specify an existing, |
| 388 |
writable directory where backups are to be placed. |
| 389 |
|
| 390 |
@item @strong{@asis{}-@asis{}-@asis{}all} |
| 391 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}all}} |
| 392 |
|
| 393 |
If @code{--clean} is not specified, make a backup of all packages in the TeX |
| 394 |
Live installation; this will take quite a lot of space and time. If |
| 395 |
@code{--clean} is specified, all packages are pruned. |
| 396 |
|
| 397 |
@item @strong{@asis{}-@asis{}-@asis{}clean}[=@emph{N}] |
| 398 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}clean}[=@emph{N}]} |
| 399 |
|
| 400 |
Instead of making backups, prune the backup directory of old backups, as |
| 401 |
explained above. The optional integer argument @emph{N} overrides the |
| 402 |
@code{autobackup} option set in the TLPDB. You must use @code{--all} or a list |
| 403 |
of packages together with this option, as desired. |
| 404 |
|
| 405 |
@item @strong{@asis{}-@asis{}-@asis{}dry-run} |
| 406 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}dry-run}} |
| 407 |
|
| 408 |
Nothing is actually backed up or removed; instead, the actions to be |
| 409 |
performed are written to the terminal. |
| 410 |
|
| 411 |
@end table |
| 412 |
|
| 413 |
@end table |
| 414 |
|
| 415 |
@node tlmgr bug [@emph{search-string}] |
| 416 |
@appendixsubsec bug [@emph{search-string}] |
| 417 |
|
| 418 |
Searches for @emph{search-string} (prompted for, if not given) as a package |
| 419 |
name and in package descriptions, as complete words, and in filenames, |
| 420 |
as any substring, and outputs bug-reporting and other information for |
| 421 |
the package selected from the results. |
| 422 |
|
| 423 |
The search is equivalent to @code{tlmgr search --word --file} @emph{search-string}. |
| 424 |
Thus, @emph{search-string} is interpreted as a (Perl) regular expression. |
| 425 |
|
| 426 |
@node tlmgr candidates @emph{pkg} |
| 427 |
@appendixsubsec candidates @emph{pkg} |
| 428 |
|
| 429 |
Shows the available candidate repositories for package @emph{pkg}. |
| 430 |
See @ref{tlmgr MULTIPLE REPOSITORIES,, MULTIPLE REPOSITORIES} below. |
| 431 |
|
| 432 |
@node tlmgr check [@emph{option}...] [depends|executes|files|runfiles|texmfdbs|all] |
| 433 |
@appendixsubsec check [@emph{option}...] [depends|executes|files|runfiles|texmfdbs|all] |
| 434 |
|
| 435 |
Execute one (or all) check(s) of the consistency of the installation. |
| 436 |
If no problems are found, there will be no output. (To get a view of |
| 437 |
what is being done, run @code{tlmgr -v check}.) |
| 438 |
|
| 439 |
@table @asis |
| 440 |
@item @strong{depends} |
| 441 |
@anchor{tlmgr @strong{depends}} |
| 442 |
|
| 443 |
Lists those packages which occur as dependencies in an installed collection, |
| 444 |
but are themselves not installed, and those packages which are not |
| 445 |
contained in any collection. |
| 446 |
|
| 447 |
If you call @code{tlmgr check collections} this test will be carried out |
| 448 |
instead since former versions for @code{tlmgr} called it that way. |
| 449 |
|
| 450 |
@item @strong{executes} |
| 451 |
@anchor{tlmgr @strong{executes}} |
| 452 |
|
| 453 |
Check that the files referred to by @code{execute} directives in the TeX |
| 454 |
Live Database are present. |
| 455 |
|
| 456 |
@item @strong{files} |
| 457 |
@anchor{tlmgr @strong{files}} |
| 458 |
|
| 459 |
Checks that all files listed in the local TLPDB (@code{texlive.tlpdb}) are |
| 460 |
actually present, and lists those missing. |
| 461 |
|
| 462 |
@item @strong{runfiles} |
| 463 |
@anchor{tlmgr @strong{runfiles}} |
| 464 |
|
| 465 |
List those filenames that are occurring more than one time in the |
| 466 |
runfiles sections, except for known duplicates. |
| 467 |
|
| 468 |
@item @strong{texmfdbs} |
| 469 |
@anchor{tlmgr @strong{texmfdbs}} |
| 470 |
|
| 471 |
Checks related to the @code{ls-R} files. If you have defined new trees, or |
| 472 |
changed the @code{TEXMF} or @code{TEXMFDBS} variables, it can't hurt to run |
| 473 |
this. It checks that: |
| 474 |
|
| 475 |
@table @asis |
| 476 |
@item - all items in @code{TEXMFDBS} have the @code{!!} prefix. |
| 477 |
@anchor{tlmgr - all items in @code{TEXMFDBS} have the @code{!!} prefix.} |
| 478 |
|
| 479 |
@item - all items in @code{TEXMFBDS} have an @code{ls-R} file (if they exist at all). |
| 480 |
@anchor{tlmgr - all items in @code{TEXMFBDS} have an @code{ls-R} file (if they exist at all).} |
| 481 |
|
| 482 |
@item - all items in @code{TEXMF} with @code{!!} are listed in @code{TEXMFDBS}. |
| 483 |
@anchor{tlmgr - all items in @code{TEXMF} with @code{!!} are listed in @code{TEXMFDBS}.} |
| 484 |
|
| 485 |
@item - all items in @code{TEXMF} with an @code{ls-R} file are listed in @code{TEXMFDBS}. |
| 486 |
@anchor{tlmgr - all items in @code{TEXMF} with an @code{ls-R} file are listed in @code{TEXMFDBS}.} |
| 487 |
|
| 488 |
@end table |
| 489 |
|
| 490 |
@end table |
| 491 |
|
| 492 |
Options: |
| 493 |
|
| 494 |
@table @asis |
| 495 |
@item @strong{@asis{}-@asis{}-@asis{}use-svn} |
| 496 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}use-svn}} |
| 497 |
|
| 498 |
Use the output of @code{svn status} instead of listing the files; for |
| 499 |
checking the TL development repository. (This is run nightly.) |
| 500 |
|
| 501 |
@end table |
| 502 |
|
| 503 |
@node tlmgr conf |
| 504 |
@appendixsubsec conf |
| 505 |
|
| 506 |
@table @asis |
| 507 |
@item @strong{conf [texmf|tlmgr|updmap [@asis{}-@asis{}-@asis{}conffile @emph{file}] [@asis{}-@asis{}-@asis{}delete] [@emph{key} [@emph{value}]]]} |
| 508 |
@anchor{tlmgr @strong{conf [texmf|tlmgr|updmap [@asis{}-@asis{}-@asis{}conffile @emph{file}] [@asis{}-@asis{}-@asis{}delete] [@emph{key} [@emph{value}]]]}} |
| 509 |
|
| 510 |
@item @strong{conf auxtrees [@asis{}-@asis{}-@asis{}conffile @emph{file}] [show|add|remove] [@emph{value}]} |
| 511 |
@anchor{tlmgr @strong{conf auxtrees [@asis{}-@asis{}-@asis{}conffile @emph{file}] [show|add|remove] [@emph{value}]}} |
| 512 |
|
| 513 |
With only @code{conf}, show general configuration information for TeX Live, |
| 514 |
including active configuration files, path settings, and more. This is |
| 515 |
like running @code{texconfig conf}, but works on all supported platforms. |
| 516 |
|
| 517 |
With one of @code{conf texmf}, @code{conf tlmgr}, or @code{conf updmap}, shows all |
| 518 |
key/value pairs (i.e., all settings) as saved in @code{ROOT/texmf.cnf}, the |
| 519 |
user-specific @code{tlmgr} configuration file (see below), or the first |
| 520 |
found (via @code{kpsewhich}) @code{updmap.cfg} file, respectively. |
| 521 |
|
| 522 |
If @emph{key} is given in addition, shows the value of only that @emph{key} in |
| 523 |
the respective file. If option @emph{@asis{}-@asis{}-@asis{}delete} is also given, the value in |
| 524 |
the given configuration file is entirely removed (not just commented |
| 525 |
out). |
| 526 |
|
| 527 |
If @emph{value} is given in addition, @emph{key} is set to @emph{value} in the |
| 528 |
respective file. @emph{No error checking is done!} |
| 529 |
|
| 530 |
The @code{PATH} value shown by @code{conf} is as used by @code{tlmgr}. The |
| 531 |
directory in which the @code{tlmgr} executable is found is automatically |
| 532 |
prepended to the PATH value inherited from the environment. |
| 533 |
|
| 534 |
Here is a practical example of changing configuration values. If the |
| 535 |
execution of (some or all) system commands via @code{\write18} was left |
| 536 |
enabled during installation, you can disable it afterwards: |
| 537 |
|
| 538 |
@verbatim |
| 539 |
tlmgr conf texmf shell_escape 0 |
| 540 |
@end verbatim |
| 541 |
|
| 542 |
The subcommand @code{auxtrees} allows adding and removing arbitrary |
| 543 |
additional texmf trees, completely under user control. @code{auxtrees show} |
| 544 |
shows the list of additional trees, @code{auxtrees add} @emph{tree} adds a tree |
| 545 |
to the list, and @code{auxtrees remove} @emph{tree} removes a tree from the list |
| 546 |
(if present). The trees should not contain an @code{ls-R} file (or files |
| 547 |
will not be found if the @code{ls-R} becomes stale). This works by |
| 548 |
manipulating the Kpathsea variable @code{TEXMFAUXTREES}, in (by default) |
| 549 |
@code{ROOT/texmf.cnf}. Example: |
| 550 |
|
| 551 |
@verbatim |
| 552 |
tlmgr conf auxtrees add /quick/test/tree |
| 553 |
tlmgr conf auxtrees remove /quick/test/tree |
| 554 |
@end verbatim |
| 555 |
|
| 556 |
In all cases the configuration file can be explicitly specified via the |
| 557 |
option @code{--conffile} @emph{file}, e.g., if you don't want to change the |
| 558 |
system-wide configuration. |
| 559 |
|
| 560 |
Warning: The general facility for changing configuration values is here, |
| 561 |
but tinkering with settings in this way is strongly discouraged. Again, |
| 562 |
no error checking on either keys or values is done, so any sort of |
| 563 |
breakage is possible. |
| 564 |
|
| 565 |
@end table |
| 566 |
|
| 567 |
@node tlmgr dump-tlpdb [@emph{option}...] [@asis{}-@asis{}-@asis{}json] |
| 568 |
@appendixsubsec dump-tlpdb [@emph{option}...] [@asis{}-@asis{}-@asis{}json] |
| 569 |
|
| 570 |
Dump complete local or remote TLPDB to standard output, as-is. The |
| 571 |
output is analogous to the @code{--machine-readable} output; see |
| 572 |
@ref{tlmgr MACHINE-READABLE OUTPUT,, MACHINE-READABLE OUTPUT} section. |
| 573 |
|
| 574 |
Options: |
| 575 |
|
| 576 |
@table @asis |
| 577 |
@item @strong{@asis{}-@asis{}-@asis{}local} |
| 578 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}local}} |
| 579 |
|
| 580 |
Dump the local TLPDB. |
| 581 |
|
| 582 |
@item @strong{@asis{}-@asis{}-@asis{}remote} |
| 583 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}remote}} |
| 584 |
|
| 585 |
Dump the remote TLPDB. |
| 586 |
|
| 587 |
@item @strong{@asis{}-@asis{}-@asis{}json} |
| 588 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}json}} |
| 589 |
|
| 590 |
Instead of dumping the actual content, the database is dumped as |
| 591 |
JSON. For the format of JSON output see @code{tlpkg/doc/json-formats.txt}, |
| 592 |
format definition @code{TLPDB}. |
| 593 |
|
| 594 |
@end table |
| 595 |
|
| 596 |
Exactly one of @code{--local} and @code{--remote} must be given. |
| 597 |
|
| 598 |
In either case, the first line of the output specifies the repository |
| 599 |
location, in this format: |
| 600 |
|
| 601 |
@verbatim |
| 602 |
"location-url" "\t" location |
| 603 |
@end verbatim |
| 604 |
|
| 605 |
where @code{location-url} is the literal field name, followed by a tab, and |
| 606 |
@emph{location} is the file or url to the repository. |
| 607 |
|
| 608 |
Line endings may be either LF or CRLF depending on the current platform. |
| 609 |
|
| 610 |
@node tlmgr generate |
| 611 |
@appendixsubsec generate |
| 612 |
|
| 613 |
@table @asis |
| 614 |
@item @strong{generate [@emph{option}...] language} |
| 615 |
@anchor{tlmgr @strong{generate [@emph{option}...] language}} |
| 616 |
|
| 617 |
@item @strong{generate [@emph{option}...] language.dat} |
| 618 |
@anchor{tlmgr @strong{generate [@emph{option}...] language.dat}} |
| 619 |
|
| 620 |
@item @strong{generate [@emph{option}...] language.def} |
| 621 |
@anchor{tlmgr @strong{generate [@emph{option}...] language.def}} |
| 622 |
|
| 623 |
@item @strong{generate [@emph{option}...] language.dat.lua} |
| 624 |
@anchor{tlmgr @strong{generate [@emph{option}...] language.dat.lua}} |
| 625 |
|
| 626 |
@end table |
| 627 |
|
| 628 |
The @code{generate} action overwrites any manual changes made in the |
| 629 |
respective files: it recreates them from scratch based on the |
| 630 |
information of the installed packages, plus local adaptations. |
| 631 |
The TeX Live installer and @code{tlmgr} routinely call @code{generate} for |
| 632 |
all of these files. |
| 633 |
|
| 634 |
For managing your own fonts, please read the @code{updmap --help} |
| 635 |
information and/or @url{https://tug.org/fonts/fontinstall.html}. |
| 636 |
|
| 637 |
For managing your own formats, please read the @code{fmtutil --help} |
| 638 |
information. |
| 639 |
|
| 640 |
In more detail: @code{generate} remakes any of the configuration files |
| 641 |
@code{language.dat}, @code{language.def}, and @code{language.dat.lua} |
| 642 |
from the information present in the local TLPDB, plus |
| 643 |
locally-maintained files. |
| 644 |
|
| 645 |
The locally-maintained files are @code{language-local.dat}, |
| 646 |
@code{language-local.def}, or @code{language-local.dat.lua}, |
| 647 |
searched for in @code{TEXMFLOCAL} in the respective |
| 648 |
directories. If local additions are present, the final file is made by |
| 649 |
starting with the main file, omitting any entries that the local file |
| 650 |
specifies to be disabled, and finally appending the local file. |
| 651 |
|
| 652 |
(Historical note: The formerly supported @code{updmap-local.cfg} and |
| 653 |
@code{fmtutil-local.cnf} are no longer read, since @code{updmap} and @code{fmtutil} |
| 654 |
now reads and supports multiple configuration files. Thus, |
| 655 |
local additions can and should be put into an @code{updmap.cfg} of @code{fmtutil.cnf} |
| 656 |
file in @code{TEXMFLOCAL}. The @code{generate updmap} and @code{generate fmtutil} actions |
| 657 |
no longer exist.) |
| 658 |
|
| 659 |
Local files specify entries to be disabled with a comment line, namely |
| 660 |
one of these: |
| 661 |
|
| 662 |
@verbatim |
| 663 |
%!NAME |
| 664 |
--!NAME |
| 665 |
@end verbatim |
| 666 |
|
| 667 |
where @code{language.dat} and @code{language.def} use @code{%}, |
| 668 |
and @code{language.dat.lua} use @code{--}. In all cases, the @emph{name} is |
| 669 |
the respective format name or hyphenation pattern identifier. |
| 670 |
Examples: |
| 671 |
|
| 672 |
@verbatim |
| 673 |
%!german |
| 674 |
--!usenglishmax |
| 675 |
@end verbatim |
| 676 |
|
| 677 |
(Of course, you're not likely to actually want to disable those |
| 678 |
particular items. They're just examples.) |
| 679 |
|
| 680 |
After such a disabling line, the local file can include another entry |
| 681 |
for the same item, if a different definition is desired. In general, |
| 682 |
except for the special disabling lines, the local files follow the same |
| 683 |
syntax as the master files. |
| 684 |
|
| 685 |
The form @code{generate language} recreates all three files @code{language.dat}, |
| 686 |
@code{language.def}, and @code{language.dat.lua}, while the forms with an |
| 687 |
extension recreates only that given language file. |
| 688 |
|
| 689 |
Options: |
| 690 |
|
| 691 |
@table @asis |
| 692 |
@item @strong{@asis{}-@asis{}-@asis{}dest} @emph{output_file} |
| 693 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}dest} @emph{output_file}} |
| 694 |
|
| 695 |
specifies the output file (defaults to the respective location in |
| 696 |
@code{TEXMFSYSVAR}). If @code{--dest} is given to @code{generate language}, it |
| 697 |
serves as a basename onto which @code{.dat} will be appended for the name of |
| 698 |
the @code{language.dat} output file, @code{.def} will be appended to the value |
| 699 |
for the name of the @code{language.def} output file, and @code{.dat.lua} to the |
| 700 |
name of the @code{language.dat.lua} file. (This is just to avoid |
| 701 |
overwriting; if you want a specific name for each output file, we |
| 702 |
recommend invoking @code{tlmgr} twice.) |
| 703 |
|
| 704 |
@item @strong{@asis{}-@asis{}-@asis{}localcfg} @emph{local_conf_file} |
| 705 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}localcfg} @emph{local_conf_file}} |
| 706 |
|
| 707 |
specifies the (optional) local additions (defaults to the respective |
| 708 |
location in @code{TEXMFLOCAL}). |
| 709 |
|
| 710 |
@item @strong{@asis{}-@asis{}-@asis{}rebuild-sys} |
| 711 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}rebuild-sys}} |
| 712 |
|
| 713 |
tells @code{tlmgr} to run necessary programs after config files have been |
| 714 |
regenerated. These are: |
| 715 |
@code{fmtutil-sys --all} after @code{generate fmtutil}, |
| 716 |
@code{fmtutil-sys --byhyphen .../language.dat} after @code{generate language.dat}, |
| 717 |
and |
| 718 |
@code{fmtutil-sys --byhyphen .../language.def} after @code{generate language.def}. |
| 719 |
|
| 720 |
These subsequent calls cause the newly-generated files to actually take |
| 721 |
effect. This is not done by default since those calls are lengthy |
| 722 |
processes and one might want to made several related changes in |
| 723 |
succession before invoking these programs. |
| 724 |
|
| 725 |
@end table |
| 726 |
|
| 727 |
The respective locations are as follows: |
| 728 |
|
| 729 |
@verbatim |
| 730 |
tex/generic/config/language.dat (and language-local.dat) |
| 731 |
tex/generic/config/language.def (and language-local.def) |
| 732 |
tex/generic/config/language.dat.lua (and language-local.dat.lua) |
| 733 |
@end verbatim |
| 734 |
|
| 735 |
@node tlmgr gui |
| 736 |
@appendixsubsec gui |
| 737 |
|
| 738 |
Start the graphical user interface. See @strong{GUI} below. |
| 739 |
|
| 740 |
@node tlmgr info |
| 741 |
@appendixsubsec info |
| 742 |
|
| 743 |
@table @asis |
| 744 |
@item @strong{info [@emph{option}...] @emph{pkg}...} |
| 745 |
@anchor{tlmgr @strong{info [@emph{option}...] @emph{pkg}...}} |
| 746 |
|
| 747 |
@item @strong{info [@emph{option}...] collections} |
| 748 |
@anchor{tlmgr @strong{info [@emph{option}...] collections}} |
| 749 |
|
| 750 |
@item @strong{info [@emph{option}...] schemes} |
| 751 |
@anchor{tlmgr @strong{info [@emph{option}...] schemes}} |
| 752 |
|
| 753 |
With no argument, lists all packages available at the package |
| 754 |
repository, prefixing those already installed with @code{i}. |
| 755 |
|
| 756 |
With the single word @code{collections} or @code{schemes} as the argument, lists |
| 757 |
the request type instead of all packages. |
| 758 |
|
| 759 |
With any other arguments, display information about @emph{pkg}: the name, |
| 760 |
category, short and long description, sizes, installation status, and TeX Live |
| 761 |
revision number. If @emph{pkg} is not locally installed, searches in the |
| 762 |
remote installation source. |
| 763 |
|
| 764 |
For normal packages (not collections or schemes), the sizes of the four |
| 765 |
groups of files (run/src/doc/bin files) are shown separately. For |
| 766 |
collections, the cumulative size is shown, including all |
| 767 |
directly-dependent packages (but not dependent collections). For |
| 768 |
schemes, the cumulative size is also shown, including all |
| 769 |
directly-dependent collections and packages. |
| 770 |
|
| 771 |
If @emph{pkg} is not found locally or remotely, the search action is used |
| 772 |
and lists matching packages and files. |
| 773 |
|
| 774 |
It also displays information taken from the TeX Catalogue, namely the |
| 775 |
package version, date, and license. Consider these, especially the |
| 776 |
package version, as approximations only, due to timing skew of the |
| 777 |
updates of the different pieces. By contrast, the @code{revision} value |
| 778 |
comes directly from TL and is reliable. |
| 779 |
|
| 780 |
The former actions @code{show} and @code{list} are merged into this action, |
| 781 |
but are still supported for backward compatibility. |
| 782 |
|
| 783 |
Options: |
| 784 |
|
| 785 |
@table @asis |
| 786 |
@item @strong{@asis{}-@asis{}-@asis{}list} |
| 787 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}list}} |
| 788 |
|
| 789 |
If the option @code{--list} is given with a package, the list of contained |
| 790 |
files is also shown, including those for platform-specific dependencies. |
| 791 |
When given with schemes and collections, @code{--list} outputs their |
| 792 |
dependencies in a similar way. |
| 793 |
|
| 794 |
@item @strong{@asis{}-@asis{}-@asis{}only-files} |
| 795 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}only-files}} |
| 796 |
|
| 797 |
If this option is given, only the files for a given package are listed, |
| 798 |
no further information. If more than one package name is given, each |
| 799 |
file list is preceded by the package name. |
| 800 |
|
| 801 |
@item @strong{@asis{}-@asis{}-@asis{}only-installed} |
| 802 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}only-installed}} |
| 803 |
|
| 804 |
If this option is given, the installation source will not be used; only |
| 805 |
locally installed packages, collections, or schemes are listed. |
| 806 |
|
| 807 |
@item @strong{@asis{}-@asis{}-@asis{}only-remote} |
| 808 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}only-remote}} |
| 809 |
|
| 810 |
Only list packages from the remote repository. Useful when checking what |
| 811 |
is available in a remote repository using |
| 812 |
@code{tlmgr --repo ... --only-remote info}. Note that |
| 813 |
@code{--only-installed} and @code{--only-remote} cannot both be specified. |
| 814 |
|
| 815 |
@item @strong{@asis{}-@asis{}-@asis{}data @code{item1,item2,...}} |
| 816 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}data @code{item1@comma{}item2@comma{}...}}} |
| 817 |
|
| 818 |
If the option @code{--data} is given, its argument must be a comma or colon |
| 819 |
separated list of field names from: @code{name}, @code{category}, @code{localrev}, |
| 820 |
@code{remoterev}, @code{shortdesc}, @code{longdesc}, @code{installed}, @code{size}, |
| 821 |
@code{relocatable}, @code{depends}, @code{cat-version}, @code{cat-date}, @code{cat-license}, |
| 822 |
plus various @code{cat-contact-*} fields (see below). |
| 823 |
|
| 824 |
The @code{cat-*} fields all come from the TeX Catalogue |
| 825 |
(@url{https://ctan.org/pkg/catalogue}). For each, there are two more |
| 826 |
variants with prefix @code{l} and @code{r}, e.g., @code{lcat-version} and |
| 827 |
@code{rcat-version}, which indicate the local and remote information, |
| 828 |
respectively. The variants without @code{l} and @code{r} show the most current |
| 829 |
one, which is normally the remote value. |
| 830 |
|
| 831 |
The requested packages' information is listed in CSV format, one package |
| 832 |
per line, and the column information is given by the @code{itemN}. The |
| 833 |
@code{depends} column contains the names of all the dependencies separated |
| 834 |
by @code{:} characters. |
| 835 |
|
| 836 |
At this writing, the @code{cat-contact-*} fields include: @code{home}, |
| 837 |
@code{repository}, @code{support}, @code{bugs}, @code{announce}, @code{development}. Each |
| 838 |
may be empty or a url value. A brief description is on the CTAN upload |
| 839 |
page for new packages: @url{https://ctan.org/upload}. |
| 840 |
|
| 841 |
@item @strong{@asis{}-@asis{}-@asis{}json} |
| 842 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}json} 1} |
| 843 |
|
| 844 |
If @code{--json} is specified, the output is a JSON encoded array where each |
| 845 |
array element is the JSON representation of a single @code{TLPOBJ} but with |
| 846 |
additional information. For details see @code{tlpkg/doc/json-formats.txt}, |
| 847 |
format definition: @code{TLPOBJINFO}. If both @code{--json} and @code{--data} are |
| 848 |
given, @code{--json} takes precedence. |
| 849 |
|
| 850 |
@end table |
| 851 |
|
| 852 |
@end table |
| 853 |
|
| 854 |
@node tlmgr init-usertree |
| 855 |
@appendixsubsec init-usertree |
| 856 |
|
| 857 |
Sets up a texmf tree for so-called user mode management, either the |
| 858 |
default user tree (@code{TEXMFHOME}), or one specified on the command line |
| 859 |
with @code{--usertree}. See @ref{tlmgr USER MODE,, USER MODE} below. |
| 860 |
|
| 861 |
@node tlmgr install [@emph{option}...] @emph{pkg}... |
| 862 |
@appendixsubsec install [@emph{option}...] @emph{pkg}... |
| 863 |
|
| 864 |
Install each @emph{pkg} given on the command line, if it is not already |
| 865 |
installed. It does not touch existing packages; see the @code{update} |
| 866 |
action for how to get the latest version of a package. |
| 867 |
|
| 868 |
By default this also installs all packages on which the given @emph{pkg}s are |
| 869 |
dependent. Options: |
| 870 |
|
| 871 |
@table @asis |
| 872 |
@item @strong{@asis{}-@asis{}-@asis{}dry-run} |
| 873 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}dry-run} 1} |
| 874 |
|
| 875 |
Nothing is actually installed; instead, the actions to be performed are |
| 876 |
written to the terminal. |
| 877 |
|
| 878 |
@item @strong{@asis{}-@asis{}-@asis{}file} |
| 879 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}file}} |
| 880 |
|
| 881 |
Instead of fetching a package from the installation repository, use |
| 882 |
the package files given on the command line. These files must |
| 883 |
be standard TeX Live package files (with contained tlpobj file). |
| 884 |
|
| 885 |
@item @strong{@asis{}-@asis{}-@asis{}force} |
| 886 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}force}} |
| 887 |
|
| 888 |
If updates to @code{tlmgr} itself (or other parts of the basic |
| 889 |
infrastructure) are present, @code{tlmgr} will bail out and not perform the |
| 890 |
installation unless this option is given. Not recommended. |
| 891 |
|
| 892 |
@item @strong{@asis{}-@asis{}-@asis{}no-depends} |
| 893 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-depends}} |
| 894 |
|
| 895 |
Do not install dependencies. (By default, installing a package ensures |
| 896 |
that all dependencies of this package are fulfilled.) |
| 897 |
|
| 898 |
@item @strong{@asis{}-@asis{}-@asis{}no-depends-at-all} |
| 899 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-depends-at-all}} |
| 900 |
|
| 901 |
Normally, when you install a package which ships binary files the |
| 902 |
respective binary package will also be installed. That is, for a |
| 903 |
package @code{foo}, the package @code{foo.i386-linux} will also be installed on |
| 904 |
an @code{i386-linux} system. This option suppresses this behavior, and also |
| 905 |
implies @code{--no-depends}. Don't use it unless you are sure of what you |
| 906 |
are doing. |
| 907 |
|
| 908 |
@item @strong{@asis{}-@asis{}-@asis{}reinstall} |
| 909 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}reinstall}} |
| 910 |
|
| 911 |
Reinstall a package (including dependencies for collections) even if it |
| 912 |
already seems to be installed (i.e, is present in the TLPDB). This is |
| 913 |
useful to recover from accidental removal of files in the hierarchy. |
| 914 |
|
| 915 |
When re-installing, only dependencies on normal packages are followed |
| 916 |
(i.e., not those of category Scheme or Collection). |
| 917 |
|
| 918 |
@item @strong{@asis{}-@asis{}-@asis{}with-doc} |
| 919 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}with-doc}} |
| 920 |
|
| 921 |
@item @strong{@asis{}-@asis{}-@asis{}with-src} |
| 922 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}with-src}} |
| 923 |
|
| 924 |
While not recommended, the @code{install-tl} program provides an option to |
| 925 |
omit installation of all documentation and/or source files. (By |
| 926 |
default, everything is installed.) After such an installation, you may |
| 927 |
find that you want the documentation or source files for a given package |
| 928 |
after all. You can get them by using these options in conjunction with |
| 929 |
@code{--reinstall}, as in (using the @code{fontspec} package as the example): |
| 930 |
|
| 931 |
@verbatim |
| 932 |
tlmgr install --reinstall --with-doc --with-src fontspec |
| 933 |
@end verbatim |
| 934 |
|
| 935 |
@end table |
| 936 |
|
| 937 |
This action does not automatically add new symlinks in system |
| 938 |
directories; you need to run @code{tlmgr path add} (@ref{tlmgr path,, path}) yourself if |
| 939 |
you are using this feature and want new symlinks added. |
| 940 |
|
| 941 |
@node tlmgr key |
| 942 |
@appendixsubsec key |
| 943 |
|
| 944 |
@table @asis |
| 945 |
@item @strong{key list} |
| 946 |
@anchor{tlmgr @strong{key list}} |
| 947 |
|
| 948 |
@item @strong{key add @emph{file}} |
| 949 |
@anchor{tlmgr @strong{key add @emph{file}}} |
| 950 |
|
| 951 |
@item @strong{key remove @emph{keyid}} |
| 952 |
@anchor{tlmgr @strong{key remove @emph{keyid}}} |
| 953 |
|
| 954 |
The action @code{key} allows listing, adding and removing additional GPG |
| 955 |
keys to the set of trusted keys, that is, those that are used to verify |
| 956 |
the TeX Live databases. |
| 957 |
|
| 958 |
With the @code{list} argument, @code{key} lists all keys. |
| 959 |
|
| 960 |
The @code{add} argument requires another argument, either a filename or |
| 961 |
@code{-} for stdin, from which the key is added. The key is added to the |
| 962 |
local keyring @code{GNUPGHOME/repository-keys.gpg}, which is normally |
| 963 |
@code{tlpkg/gpg/repository-keys.gpg}. |
| 964 |
|
| 965 |
The @code{remove} argument requires a key id and removes the requested id |
| 966 |
from the local keyring. |
| 967 |
|
| 968 |
@end table |
| 969 |
|
| 970 |
@node tlmgr list |
| 971 |
@appendixsubsec list |
| 972 |
|
| 973 |
Synonym for @ref{tlmgr info,, info}. |
| 974 |
|
| 975 |
@node tlmgr option |
| 976 |
@appendixsubsec option |
| 977 |
|
| 978 |
@table @asis |
| 979 |
@item @strong{option [@asis{}-@asis{}-@asis{}json] [show]} |
| 980 |
@anchor{tlmgr @strong{option [@asis{}-@asis{}-@asis{}json] [show]}} |
| 981 |
|
| 982 |
@item @strong{option [@asis{}-@asis{}-@asis{}json] showall|help} |
| 983 |
@anchor{tlmgr @strong{option [@asis{}-@asis{}-@asis{}json] showall|help}} |
| 984 |
|
| 985 |
@item @strong{option @emph{key} [@emph{value}]} |
| 986 |
@anchor{tlmgr @strong{option @emph{key} [@emph{value}]}} |
| 987 |
|
| 988 |
@end table |
| 989 |
|
| 990 |
The first form, @code{show}, shows the global TeX Live settings currently |
| 991 |
saved in the TLPDB with a short description and the @code{key} used for |
| 992 |
changing it in parentheses. |
| 993 |
|
| 994 |
The second form, @code{showall}, is similar, but also shows options which |
| 995 |
can be defined but are not currently set to any value (@code{help} is a |
| 996 |
synonym). |
| 997 |
|
| 998 |
Both @code{show...} forms take an option @code{--json}, which dumps the option |
| 999 |
information in JSON format. In this case, both forms dump the same |
| 1000 |
data. For the format of the JSON output see |
| 1001 |
@code{tlpkg/doc/json-formats.txt}, format definition @code{TLOPTION}. |
| 1002 |
|
| 1003 |
In the third form, with @emph{key}, if @emph{value} is not given, the setting |
| 1004 |
for @emph{key} is displayed. If @emph{value} is present, @emph{key} is set to |
| 1005 |
@emph{value}. |
| 1006 |
|
| 1007 |
Possible values for @emph{key} are (run @code{tlmgr option showall} for |
| 1008 |
the definitive list): |
| 1009 |
|
| 1010 |
@verbatim |
| 1011 |
repository (default package repository), |
| 1012 |
formats (generate formats at installation or update time), |
| 1013 |
postcode (run postinst code blobs) |
| 1014 |
docfiles (install documentation files), |
| 1015 |
srcfiles (install source files), |
| 1016 |
backupdir (default directory for backups), |
| 1017 |
autobackup (number of backups to keep). |
| 1018 |
sys_bin (directory to which executables are linked by the path action) |
| 1019 |
sys_man (directory to which man pages are linked by the path action) |
| 1020 |
sys_info (directory to which Info files are linked by the path action) |
| 1021 |
desktop_integration (Windows-only: create Start menu shortcuts) |
| 1022 |
fileassocs (Windows-only: change file associations) |
| 1023 |
multiuser (Windows-only: install for all users) |
| 1024 |
@end verbatim |
| 1025 |
|
| 1026 |
One common use of @code{option} is to permanently change the installation to |
| 1027 |
get further updates from the Internet, after originally installing from |
| 1028 |
DVD. To do this, you can run |
| 1029 |
|
| 1030 |
@verbatim |
| 1031 |
tlmgr option repository https://mirror.ctan.org/systems/texlive/tlnet |
| 1032 |
@end verbatim |
| 1033 |
|
| 1034 |
The @code{install-tl} documentation has more information about the possible |
| 1035 |
values for @code{repository}. (For backward compatibility, @code{location} can |
| 1036 |
be used as a synonym for @code{repository}.) |
| 1037 |
|
| 1038 |
If @code{formats} is set (this is the default), then formats are regenerated |
| 1039 |
when either the engine or the format files have changed. Disable this |
| 1040 |
only when you know how and want to regenerate formats yourself whenever |
| 1041 |
needed (which is often, in practice). |
| 1042 |
|
| 1043 |
The @code{postcode} option controls execution of per-package |
| 1044 |
postinstallation action code. It is set by default, and again disabling |
| 1045 |
is not likely to be of interest except to developers doing debugging. |
| 1046 |
|
| 1047 |
The @code{docfiles} and @code{srcfiles} options control the installation of |
| 1048 |
their respective file groups (documentation, sources; grouping is |
| 1049 |
approximate) per package. By default both are enabled (1). Either or |
| 1050 |
both can be disabled (set to 0) if disk space is limited or for minimal |
| 1051 |
testing installations, etc. When disabled, the respective files are not |
| 1052 |
downloaded at all. |
| 1053 |
|
| 1054 |
The options @code{autobackup} and @code{backupdir} determine the defaults for |
| 1055 |
the actions @code{update}, @code{backup} and @code{restore}. These three actions |
| 1056 |
need a directory in which to read or write the backups. If |
| 1057 |
@code{--backupdir} is not specified on the command line, the @code{backupdir} |
| 1058 |
option value is used (if set). The TL installer sets @code{backupdir} to |
| 1059 |
@code{.../tlpkg/backups}, under the TL root installation directory. |
| 1060 |
|
| 1061 |
The @code{autobackup} option (de)activates automatic generation of backups. |
| 1062 |
Its value is an integer. If the @code{autobackup} value is @code{-1}, no |
| 1063 |
backups are removed. If @code{autobackup} is 0 or more, it specifies the |
| 1064 |
number of backups to keep. Thus, backups are disabled if the value is |
| 1065 |
0. In the @code{--clean} mode of the @code{backup} action this option also |
| 1066 |
specifies the number to be kept. The default value is 1, so that |
| 1067 |
backups are made, but only one backup is kept. |
| 1068 |
|
| 1069 |
To setup @code{autobackup} to @code{-1} on the command line, use: |
| 1070 |
|
| 1071 |
@verbatim |
| 1072 |
tlmgr option -- autobackup -1 |
| 1073 |
@end verbatim |
| 1074 |
|
| 1075 |
The @code{--} avoids having the @code{-1} treated as an option. (The @code{--} |
| 1076 |
stops parsing for options at the point where it appears; this is a |
| 1077 |
general feature across most Unix programs.) |
| 1078 |
|
| 1079 |
The @code{sys_bin}, @code{sys_man}, and @code{sys_info} options are used on Unix |
| 1080 |
systems to control the generation of links for executables, Info files |
| 1081 |
and man pages. See the @code{path} action for details. |
| 1082 |
|
| 1083 |
The last three options affect behavior on Windows installations. If |
| 1084 |
@code{desktop_integration} is set, then some packages will install items in |
| 1085 |
a sub-folder of the Start menu for @code{tlmgr gui}, documentation, etc. If |
| 1086 |
@code{fileassocs} is set, Windows file associations are made (see also the |
| 1087 |
@code{postaction} action). Finally, if @code{multiuser} is set, then changes |
| 1088 |
to the registry and the menus are done for all users on the system |
| 1089 |
instead of only the current user. All three options are on by default. |
| 1090 |
|
| 1091 |
@node tlmgr paper |
| 1092 |
@appendixsubsec paper |
| 1093 |
|
| 1094 |
@table @asis |
| 1095 |
@item @strong{paper [a4|letter]} |
| 1096 |
@anchor{tlmgr @strong{paper [a4|letter]}} |
| 1097 |
|
| 1098 |
@item @strong{<[xdvi|pdftex|dvips|dvipdfmx|context|psutils] paper [@emph{papersize}|@asis{}-@asis{}-@asis{}list]}> |
| 1099 |
@anchor{tlmgr @strong{<[xdvi|pdftex|dvips|dvipdfmx|context|psutils] paper [@emph{papersize}|@asis{}-@asis{}-@asis{}list]}>} |
| 1100 |
|
| 1101 |
@item @strong{paper @asis{}-@asis{}-@asis{}json} |
| 1102 |
@anchor{tlmgr @strong{paper @asis{}-@asis{}-@asis{}json}} |
| 1103 |
|
| 1104 |
@end table |
| 1105 |
|
| 1106 |
With no arguments (@code{tlmgr paper}), shows the default paper size setting |
| 1107 |
for all known programs. |
| 1108 |
|
| 1109 |
With one argument (e.g., @code{tlmgr paper a4}), sets the default for all |
| 1110 |
known programs to that paper size. |
| 1111 |
|
| 1112 |
With a program given as the first argument and no paper size specified |
| 1113 |
(e.g., @code{tlmgr dvips paper}), shows the default paper size for that |
| 1114 |
program. |
| 1115 |
|
| 1116 |
With a program given as the first argument and a paper size as the last |
| 1117 |
argument (e.g., @code{tlmgr dvips paper a4}), set the default for that |
| 1118 |
program to that paper size. |
| 1119 |
|
| 1120 |
If either @code{pdftex} or @code{context} is one of the arguments, whether |
| 1121 |
implicitly or explicitly, existing formats are rebuilt (i.e., @code{fmtutil |
| 1122 |
--refresh} is called), unless @code{--no-execute-actions} is specified. |
| 1123 |
|
| 1124 |
With a program given as the first argument and @code{--list} given as the |
| 1125 |
last argument (e.g., @code{tlmgr dvips paper --list}), shows all valid paper |
| 1126 |
sizes for that program. The first size shown is the default. |
| 1127 |
|
| 1128 |
If @code{--json} is specified without other options, the paper setup is |
| 1129 |
dumped in JSON format. For the format of JSON output see |
| 1130 |
@code{tlpkg/doc/json-formats.txt}, format definition @code{TLPAPER}. |
| 1131 |
|
| 1132 |
Incidentally, this syntax of having a specific program name before the |
| 1133 |
@code{paper} keyword is unusual. It is inherited from the longstanding |
| 1134 |
@code{texconfig} script, which supports other configuration settings for |
| 1135 |
some programs, notably @code{dvips}. @code{tlmgr} does not support those extra |
| 1136 |
settings. |
| 1137 |
|
| 1138 |
@node tlmgr path |
| 1139 |
@appendixsubsec path |
| 1140 |
|
| 1141 |
@table @asis |
| 1142 |
@item @strong{path [@asis{}-@asis{}-@asis{}windowsmode=user|admin] add} |
| 1143 |
@anchor{tlmgr @strong{path [@asis{}-@asis{}-@asis{}windowsmode=user|admin] add}} |
| 1144 |
|
| 1145 |
@item @strong{path [@asis{}-@asis{}-@asis{}windowsmode=user|admin] remove} |
| 1146 |
@anchor{tlmgr @strong{path [@asis{}-@asis{}-@asis{}windowsmode=user|admin] remove}} |
| 1147 |
|
| 1148 |
On Unix, adds or removes symlinks for executables, man pages, and info |
| 1149 |
pages in the system directories specified by the respective options (see |
| 1150 |
the @ref{tlmgr option,, option} description above). Does not change any initialization |
| 1151 |
files, either system or personal. Furthermore, any executables added or |
| 1152 |
removed by future updates are not taken care of automatically; this |
| 1153 |
command must be rerun as needed. |
| 1154 |
|
| 1155 |
On Windows, the registry part where the binary directory is added or |
| 1156 |
removed is determined in the following way: |
| 1157 |
|
| 1158 |
If the user has admin rights, and the option @code{--windowsmode} is not given, |
| 1159 |
the setting @emph{w32_multi_user} determines the location (i.e., if it is |
| 1160 |
on then the system path, otherwise the user path is changed). |
| 1161 |
|
| 1162 |
If the user has admin rights, and the option @code{--windowsmode} is given, this |
| 1163 |
option determines the path to be adjusted. |
| 1164 |
|
| 1165 |
If the user does not have admin rights, and the option @code{--windowsmode} |
| 1166 |
is not given, and the setting @emph{w32_multi_user} is off, the user path |
| 1167 |
is changed, while if the setting @emph{w32_multi_user} is on, a warning is |
| 1168 |
issued that the caller does not have enough privileges. |
| 1169 |
|
| 1170 |
If the user does not have admin rights, and the option @code{--windowsmode} |
| 1171 |
is given, it must be @code{user} and the user path will be adjusted. If a |
| 1172 |
user without admin rights uses the option @code{--windowsmode admin} a warning |
| 1173 |
is issued that the caller does not have enough privileges. |
| 1174 |
|
| 1175 |
@end table |
| 1176 |
|
| 1177 |
@node tlmgr pinning |
| 1178 |
@appendixsubsec pinning |
| 1179 |
|
| 1180 |
The @code{pinning} action manages the pinning file, see @ref{tlmgr Pinning,, Pinning} below. |
| 1181 |
|
| 1182 |
@table @asis |
| 1183 |
@item @code{pinning show} |
| 1184 |
@anchor{tlmgr @code{pinning show}} |
| 1185 |
|
| 1186 |
Shows the current pinning data. |
| 1187 |
|
| 1188 |
@item @code{pinning add} @emph{repo} @emph{pkgglob}... |
| 1189 |
@anchor{tlmgr @code{pinning add} @emph{repo} @emph{pkgglob}...} |
| 1190 |
|
| 1191 |
Pins the packages matching the @emph{pkgglob}(s) to the repository |
| 1192 |
@emph{repo}. |
| 1193 |
|
| 1194 |
@item @code{pinning remove} @emph{repo} @emph{pkgglob}... |
| 1195 |
@anchor{tlmgr @code{pinning remove} @emph{repo} @emph{pkgglob}...} |
| 1196 |
|
| 1197 |
Any packages recorded in the pinning file matching the <pkgglob>s for |
| 1198 |
the given repository @emph{repo} are removed. |
| 1199 |
|
| 1200 |
@item @code{pinning remove @emph{repo} --all} |
| 1201 |
@anchor{tlmgr @code{pinning remove @emph{repo} --all}} |
| 1202 |
|
| 1203 |
Remove all pinning data for repository @emph{repo}. |
| 1204 |
|
| 1205 |
@end table |
| 1206 |
|
| 1207 |
@node tlmgr platform |
| 1208 |
@appendixsubsec platform |
| 1209 |
|
| 1210 |
@table @asis |
| 1211 |
@item @strong{platform list|add|remove @emph{platform}...} |
| 1212 |
@anchor{tlmgr @strong{platform list|add|remove @emph{platform}...}} |
| 1213 |
|
| 1214 |
@item @strong{platform set @emph{platform}} |
| 1215 |
@anchor{tlmgr @strong{platform set @emph{platform}}} |
| 1216 |
|
| 1217 |
@item @strong{platform set auto} |
| 1218 |
@anchor{tlmgr @strong{platform set auto}} |
| 1219 |
|
| 1220 |
@code{platform list} lists the TeX Live names of all the platforms |
| 1221 |
(a.k.a. architectures), (@code{i386-linux}, ...) available at the package |
| 1222 |
repository. |
| 1223 |
|
| 1224 |
@code{platform add} @emph{platform}... adds the executables for each given platform |
| 1225 |
@emph{platform} to the installation from the repository. |
| 1226 |
|
| 1227 |
@code{platform remove} @emph{platform}... removes the executables for each given |
| 1228 |
platform @emph{platform} from the installation, but keeps the currently |
| 1229 |
running platform in any case. |
| 1230 |
|
| 1231 |
@code{platform set} @emph{platform} switches TeX Live to always use the given |
| 1232 |
platform instead of auto detection. |
| 1233 |
|
| 1234 |
@code{platform set auto} switches TeX Live to auto detection mode for platform. |
| 1235 |
|
| 1236 |
Platform detection is needed to select the proper @code{xz} and |
| 1237 |
@code{wget} binaries that are shipped with TeX Live. |
| 1238 |
|
| 1239 |
@code{arch} is a synonym for @code{platform}. |
| 1240 |
|
| 1241 |
Options: |
| 1242 |
|
| 1243 |
@table @asis |
| 1244 |
@item @strong{@asis{}-@asis{}-@asis{}dry-run} |
| 1245 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}dry-run} 2} |
| 1246 |
|
| 1247 |
Nothing is actually installed; instead, the actions to be performed are |
| 1248 |
written to the terminal. |
| 1249 |
|
| 1250 |
@end table |
| 1251 |
|
| 1252 |
@end table |
| 1253 |
|
| 1254 |
@node tlmgr postaction |
| 1255 |
@appendixsubsec postaction |
| 1256 |
|
| 1257 |
@table @asis |
| 1258 |
@item @strong{postaction [@emph{option}...] install [shortcut|fileassoc|script] [@emph{pkg}...]} |
| 1259 |
@anchor{tlmgr @strong{postaction [@emph{option}...] install [shortcut|fileassoc|script] [@emph{pkg}...]}} |
| 1260 |
|
| 1261 |
@item @strong{postaction [@emph{option}...] remove [shortcut|fileassoc|script] [@emph{pkg}...]} |
| 1262 |
@anchor{tlmgr @strong{postaction [@emph{option}...] remove [shortcut|fileassoc|script] [@emph{pkg}...]}} |
| 1263 |
|
| 1264 |
Carry out the postaction @code{shortcut}, @code{fileassoc}, or @code{script} given |
| 1265 |
as the second required argument in install or remove mode (which is the |
| 1266 |
first required argument), for either the packages given on the command |
| 1267 |
line, or for all if @code{--all} is given. |
| 1268 |
|
| 1269 |
Options: |
| 1270 |
|
| 1271 |
@table @asis |
| 1272 |
@item @strong{@asis{}-@asis{}-@asis{}windowsmode=[user|admin]} |
| 1273 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}windowsmode=[user|admin]}} |
| 1274 |
|
| 1275 |
If the option @code{--windowsmode} is given the value @code{user}, all actions will |
| 1276 |
only be carried out in the user-accessible parts of the |
| 1277 |
registry/filesystem, while the value @code{admin} selects the system-wide |
| 1278 |
parts of the registry for the file associations. If you do not have |
| 1279 |
enough permissions, using @code{--windowsmode=admin} will not succeed. |
| 1280 |
|
| 1281 |
@item @strong{@asis{}-@asis{}-@asis{}fileassocmode=[1|2]} |
| 1282 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}fileassocmode=[1|2]}} |
| 1283 |
|
| 1284 |
@code{--fileassocmode} specifies the action for file associations. If it is |
| 1285 |
set to 1 (the default), only new associations are added; if it is set to |
| 1286 |
2, all associations are set to the TeX Live programs. (See also |
| 1287 |
@code{option fileassocs}.) |
| 1288 |
|
| 1289 |
@item @strong{@asis{}-@asis{}-@asis{}all} |
| 1290 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}all} 1} |
| 1291 |
|
| 1292 |
Carry out the postactions for all packages |
| 1293 |
|
| 1294 |
@end table |
| 1295 |
|
| 1296 |
@end table |
| 1297 |
|
| 1298 |
@node tlmgr print-platform |
| 1299 |
@appendixsubsec print-platform |
| 1300 |
|
| 1301 |
Print the TeX Live identifier for the detected platform |
| 1302 |
(hardware/operating system) combination to standard output, and exit. |
| 1303 |
@code{--print-arch} is a synonym. |
| 1304 |
|
| 1305 |
@node tlmgr print-platform-info |
| 1306 |
@appendixsubsec print-platform-info |
| 1307 |
|
| 1308 |
Print the TeX Live platform identifier, TL platform long name, and |
| 1309 |
original output from guess. |
| 1310 |
|
| 1311 |
@node tlmgr remove [@emph{option}...] @emph{pkg}... |
| 1312 |
@appendixsubsec remove [@emph{option}...] @emph{pkg}... |
| 1313 |
|
| 1314 |
Remove each @emph{pkg} specified. Removing a collection removes all package |
| 1315 |
dependencies (unless @code{--no-depends} is specified), but not any |
| 1316 |
collection dependencies of that collection. However, when removing a |
| 1317 |
package, dependencies are never removed. Options: |
| 1318 |
|
| 1319 |
@table @asis |
| 1320 |
@item @strong{@asis{}-@asis{}-@asis{}all} |
| 1321 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}all} 2} |
| 1322 |
|
| 1323 |
Uninstalls all of TeX Live, asking for confirmation unless @code{--force} is |
| 1324 |
also specified. |
| 1325 |
|
| 1326 |
@item @strong{@asis{}-@asis{}-@asis{}backup} |
| 1327 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}backup}} |
| 1328 |
|
| 1329 |
@item @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory} |
| 1330 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory} 1} |
| 1331 |
|
| 1332 |
These options behave just as with the @ref{tlmgr update |
| 1333 |
[@emph{option}...] [@emph{pkg}...],, update} action (q.v.), except they apply to making |
| 1334 |
backups of packages before they are removed. The default is to make |
| 1335 |
such a backup, that is, to save a copy of packages before removal. |
| 1336 |
|
| 1337 |
The @ref{tlmgr restore,, restore} action explains how to restore from a backup. |
| 1338 |
|
| 1339 |
@item @strong{@asis{}-@asis{}-@asis{}no-depends} |
| 1340 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-depends} 1} |
| 1341 |
|
| 1342 |
Do not remove dependent packages. |
| 1343 |
|
| 1344 |
@item @strong{@asis{}-@asis{}-@asis{}no-depends-at-all} |
| 1345 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-depends-at-all} 1} |
| 1346 |
|
| 1347 |
See above under @ref{tlmgr install [@emph{option}...] @emph{pkg}...,, install} (and beware). |
| 1348 |
|
| 1349 |
@item @strong{@asis{}-@asis{}-@asis{}force} |
| 1350 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}force} 1} |
| 1351 |
|
| 1352 |
By default, removal of a package or collection that is a dependency of |
| 1353 |
another collection or scheme is not allowed. With this option, the |
| 1354 |
package will be removed unconditionally. Use with care. |
| 1355 |
|
| 1356 |
A package that has been removed using the @code{--force} option because it |
| 1357 |
is still listed in an installed collection or scheme will not be |
| 1358 |
updated, and will be mentioned as @code{forcibly removed} in the output of |
| 1359 |
@code{tlmgr update --list}. |
| 1360 |
|
| 1361 |
@item @strong{@asis{}-@asis{}-@asis{}dry-run} |
| 1362 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}dry-run} 3} |
| 1363 |
|
| 1364 |
Nothing is actually removed; instead, the actions to be performed are |
| 1365 |
written to the terminal. |
| 1366 |
|
| 1367 |
@end table |
| 1368 |
|
| 1369 |
Except with @code{--all}, this @code{remove} action does not automatically |
| 1370 |
remove symlinks to executables from system directories; you need to run |
| 1371 |
@code{tlmgr path remove} (@ref{tlmgr path,, path}) yourself if you remove an individual |
| 1372 |
package with a symlink in a system directory. |
| 1373 |
|
| 1374 |
@node tlmgr repository |
| 1375 |
@appendixsubsec repository |
| 1376 |
|
| 1377 |
@table @asis |
| 1378 |
@item @strong{repository list} |
| 1379 |
@anchor{tlmgr @strong{repository list}} |
| 1380 |
|
| 1381 |
@item @strong{repository list @emph{path|url|tag}} |
| 1382 |
@anchor{tlmgr @strong{repository list @emph{path|url|tag}}} |
| 1383 |
|
| 1384 |
@item @strong{repository add @emph{path} [@emph{tag}]} |
| 1385 |
@anchor{tlmgr @strong{repository add @emph{path} [@emph{tag}]}} |
| 1386 |
|
| 1387 |
@item @strong{repository remove @emph{path|tag}} |
| 1388 |
@anchor{tlmgr @strong{repository remove @emph{path|tag}}} |
| 1389 |
|
| 1390 |
@item @strong{repository set @emph{path}[#@emph{tag}] [@emph{path}[#@emph{tag}] ...]} |
| 1391 |
@anchor{tlmgr @strong{repository set @emph{path}[#@emph{tag}] [@emph{path}[#@emph{tag}] ...]}} |
| 1392 |
|
| 1393 |
@item @strong{repository status} |
| 1394 |
@anchor{tlmgr @strong{repository status}} |
| 1395 |
|
| 1396 |
This action manages the list of repositories. See @url{https://metacpan.org/pod/MULTIPLE |
| 1397 |
REPOSITORIES, MULTIPLE |
| 1398 |
REPOSITORIES} below for detailed explanations. |
| 1399 |
|
| 1400 |
The first form, @code{repository list}, lists all configured repositories |
| 1401 |
and the respective tags if set. If a path, url, or tag is given after |
| 1402 |
the @code{list} keyword, it is interpreted as the source from which to |
| 1403 |
initialize a TL database and lists the contained packages. This can also |
| 1404 |
be an otherwise-unused repository, either local or remote. If the option |
| 1405 |
@code{--with-platforms} is specified in addition, for each package the |
| 1406 |
available platforms (if any) are also listed. |
| 1407 |
|
| 1408 |
The form @code{repository add} adds a repository (optionally attaching a |
| 1409 |
tag) to the list of repositories, while @code{repository remove} removes a |
| 1410 |
repository, either by full path/url, or by tag. |
| 1411 |
|
| 1412 |
The form @code{repository set} sets the list of available repositories to |
| 1413 |
the items given on the command line, overwriting previous settings. |
| 1414 |
|
| 1415 |
The form @code{repository status} reports the verification status of the |
| 1416 |
loaded repositories with the format of one repository per line |
| 1417 |
with fields separated by a single space: |
| 1418 |
|
| 1419 |
@table @asis |
| 1420 |
@item The tag (which can be the same as the url); |
| 1421 |
@anchor{tlmgr The tag (which can be the same as the url);} |
| 1422 |
|
| 1423 |
= the url; |
| 1424 |
|
| 1425 |
= iff machine-readable output is specified, the verification code (a |
| 1426 |
number); |
| 1427 |
|
| 1428 |
= a textual description of the verification status, as the last field |
| 1429 |
extending to the end of line. |
| 1430 |
|
| 1431 |
@end table |
| 1432 |
|
| 1433 |
That is, in normal (not machine-readable) output, the third field |
| 1434 |
(numeric verification status) is not present. |
| 1435 |
|
| 1436 |
In all cases, one of the repositories must be tagged as @code{main}; |
| 1437 |
otherwise, all operations will fail! |
| 1438 |
|
| 1439 |
@end table |
| 1440 |
|
| 1441 |
@node tlmgr restore |
| 1442 |
@appendixsubsec restore |
| 1443 |
|
| 1444 |
@table @asis |
| 1445 |
@item @strong{restore [@emph{option}...] @emph{pkg} [@emph{rev}]} |
| 1446 |
@anchor{tlmgr @strong{restore [@emph{option}...] @emph{pkg} [@emph{rev}]}} |
| 1447 |
|
| 1448 |
@item @strong{restore [@emph{option}...] @asis{}-@asis{}-@asis{}all} |
| 1449 |
@anchor{tlmgr @strong{restore [@emph{option}...] @asis{}-@asis{}-@asis{}all}} |
| 1450 |
|
| 1451 |
Restore a package from a previously-made backup. |
| 1452 |
|
| 1453 |
If @code{--all} is given, try to restore the latest revision of all |
| 1454 |
package backups found in the backup directory. |
| 1455 |
|
| 1456 |
Otherwise, if neither @emph{pkg} nor @emph{rev} are given, list the available |
| 1457 |
backup revisions for all packages. With @emph{pkg} given but no @emph{rev}, |
| 1458 |
list all available backup revisions of @emph{pkg}. |
| 1459 |
|
| 1460 |
When listing available packages, @code{tlmgr} shows the revision, and in |
| 1461 |
parenthesis the creation time if available (in format yyyy-mm-dd hh:mm). |
| 1462 |
|
| 1463 |
If (and only if) both @emph{pkg} and a valid revision number @emph{rev} are |
| 1464 |
specified, try to restore the package from the specified backup. |
| 1465 |
|
| 1466 |
Options: |
| 1467 |
|
| 1468 |
@table @asis |
| 1469 |
@item @strong{@asis{}-@asis{}-@asis{}all} |
| 1470 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}all} 3} |
| 1471 |
|
| 1472 |
Try to restore the latest revision of all package backups found in the |
| 1473 |
backup directory. Additional non-option arguments (like @emph{pkg}) are not |
| 1474 |
allowed. |
| 1475 |
|
| 1476 |
@item @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory} |
| 1477 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory} 2} |
| 1478 |
|
| 1479 |
Specify the directory where the backups are to be found. If not given it |
| 1480 |
will be taken from the configuration setting in the TLPDB. |
| 1481 |
|
| 1482 |
@item @strong{@asis{}-@asis{}-@asis{}dry-run} |
| 1483 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}dry-run} 4} |
| 1484 |
|
| 1485 |
Nothing is actually restored; instead, the actions to be performed are |
| 1486 |
written to the terminal. |
| 1487 |
|
| 1488 |
@item @strong{@asis{}-@asis{}-@asis{}force} |
| 1489 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}force} 2} |
| 1490 |
|
| 1491 |
Don't ask questions. |
| 1492 |
|
| 1493 |
@item @strong{@asis{}-@asis{}-@asis{}json} |
| 1494 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}json} 2} |
| 1495 |
|
| 1496 |
When listing backups, the option @code{--json} writes JSON output. The |
| 1497 |
format is an array of JSON objects (@code{name}, @code{rev}, @code{date}). For |
| 1498 |
details see @code{tlpkg/doc/json-formats.txt}, format definition: |
| 1499 |
@code{TLBACKUPS}. If both @code{--json} and @code{--data} are given, @code{--json} takes |
| 1500 |
precedence. |
| 1501 |
|
| 1502 |
@end table |
| 1503 |
|
| 1504 |
@end table |
| 1505 |
|
| 1506 |
@node tlmgr search |
| 1507 |
@appendixsubsec search |
| 1508 |
|
| 1509 |
@table @asis |
| 1510 |
@item @strong{search [@emph{option}...] @emph{what}} |
| 1511 |
@anchor{tlmgr @strong{search [@emph{option}...] @emph{what}}} |
| 1512 |
|
| 1513 |
@item @strong{search [@emph{option}...] @asis{}-@asis{}-@asis{}file @emph{what}} |
| 1514 |
@anchor{tlmgr @strong{search [@emph{option}...] @asis{}-@asis{}-@asis{}file @emph{what}}} |
| 1515 |
|
| 1516 |
@item @strong{search [@emph{option}...] @asis{}-@asis{}-@asis{}all @emph{what}} |
| 1517 |
@anchor{tlmgr @strong{search [@emph{option}...] @asis{}-@asis{}-@asis{}all @emph{what}}} |
| 1518 |
|
| 1519 |
By default, search the names, short descriptions, and long descriptions |
| 1520 |
of all locally installed packages for the argument @emph{what}, interpreted |
| 1521 |
as a (Perl) regular expression. |
| 1522 |
|
| 1523 |
Options: |
| 1524 |
|
| 1525 |
@table @asis |
| 1526 |
@item @strong{@asis{}-@asis{}-@asis{}file} |
| 1527 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}file} 1} |
| 1528 |
|
| 1529 |
List all filenames containing @emph{what}. |
| 1530 |
|
| 1531 |
@item @strong{@asis{}-@asis{}-@asis{}all} |
| 1532 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}all} 4} |
| 1533 |
|
| 1534 |
Search everything: package names, descriptions and filenames. |
| 1535 |
|
| 1536 |
@item @strong{@asis{}-@asis{}-@asis{}global} |
| 1537 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}global}} |
| 1538 |
|
| 1539 |
Search the TeX Live Database of the installation medium, instead of the |
| 1540 |
local installation. |
| 1541 |
|
| 1542 |
@item @strong{@asis{}-@asis{}-@asis{}word} |
| 1543 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}word}} |
| 1544 |
|
| 1545 |
Restrict the search of package names and descriptions (but not |
| 1546 |
filenames) to match only full words. For example, searching for |
| 1547 |
@code{table} with this option will not output packages containing the word |
| 1548 |
@code{tables} (unless they also contain the word @code{table} on its own). |
| 1549 |
|
| 1550 |
@item @strong{@asis{}-@asis{}-@asis{}json} |
| 1551 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}json} 3} |
| 1552 |
|
| 1553 |
Output search results as a JSON hash with two keys: @strong{files} and |
| 1554 |
@strong{packages}. For the format of the JSON output see |
| 1555 |
@code{tlpkg/doc/json-formats.txt}, format definition @code{TLSEARCH}. |
| 1556 |
|
| 1557 |
@end table |
| 1558 |
|
| 1559 |
@end table |
| 1560 |
|
| 1561 |
@node tlmgr shell |
| 1562 |
@appendixsubsec shell |
| 1563 |
|
| 1564 |
Starts an interactive mode, where tlmgr prompts for commands. This can |
| 1565 |
be used directly, or for scripting. The first line of output is |
| 1566 |
@code{protocol} @emph{n}, where @emph{n} is an unsigned number identifying the |
| 1567 |
protocol version (currently 1). |
| 1568 |
|
| 1569 |
In general, tlmgr actions that can be given on the command line |
| 1570 |
translate to commands in this shell mode. For example, you can say |
| 1571 |
@code{update --list} to see what would be updated. The TLPDB is loaded the |
| 1572 |
first time it is needed (not at the beginning), and used for the rest of |
| 1573 |
the session. |
| 1574 |
|
| 1575 |
Besides these actions, a few commands are specific to shell mode: |
| 1576 |
|
| 1577 |
@table @asis |
| 1578 |
@item protocol |
| 1579 |
@anchor{tlmgr protocol} |
| 1580 |
|
| 1581 |
Print @code{protocol @emph{n}}, the current protocol version. |
| 1582 |
|
| 1583 |
@item help |
| 1584 |
@anchor{tlmgr help 1} |
| 1585 |
|
| 1586 |
Print pointers to this documentation. |
| 1587 |
|
| 1588 |
@item version |
| 1589 |
@anchor{tlmgr version 1} |
| 1590 |
|
| 1591 |
Print tlmgr version information. |
| 1592 |
|
| 1593 |
@item quit, end, bye, byebye, EOF |
| 1594 |
@anchor{tlmgr quit@comma{} end@comma{} bye@comma{} byebye@comma{} EOF} |
| 1595 |
|
| 1596 |
Exit. |
| 1597 |
|
| 1598 |
@item restart |
| 1599 |
@anchor{tlmgr restart} |
| 1600 |
|
| 1601 |
Restart @code{tlmgr shell} with the original command line; most useful when |
| 1602 |
developing @code{tlmgr}. |
| 1603 |
|
| 1604 |
@item load [local|remote] |
| 1605 |
@anchor{tlmgr load [local|remote]} |
| 1606 |
|
| 1607 |
Explicitly load the local or remote, respectively, TLPDB. |
| 1608 |
|
| 1609 |
@item save |
| 1610 |
@anchor{tlmgr save} |
| 1611 |
|
| 1612 |
Save the local TLPDB, presumably after other operations have changed it. |
| 1613 |
|
| 1614 |
@item get [@emph{var}] =item set [@emph{var} [@emph{val}]] |
| 1615 |
@anchor{tlmgr get [@emph{var}] =item set [@emph{var} [@emph{val}]]} |
| 1616 |
|
| 1617 |
Get the value of @emph{var}, or set it to @emph{val}. Possible @emph{var} names: |
| 1618 |
@code{debug-translation}, @code{machine-readable}, @code{no-execute-actions}, |
| 1619 |
@code{require-verification}, @code{verify-downloads}, @code{repository}, and |
| 1620 |
@code{prompt}. All except @code{repository} and @code{prompt} are booleans, taking |
| 1621 |
values 0 and 1, and behave like the corresponding command line option. |
| 1622 |
The @code{repository} variable takes a string, and sets the remote |
| 1623 |
repository location. The @code{prompt} variable takes a string, and sets the |
| 1624 |
current default prompt. |
| 1625 |
|
| 1626 |
If @emph{var} or then @emph{val} is not specified, it is prompted for. |
| 1627 |
|
| 1628 |
@end table |
| 1629 |
|
| 1630 |
@node tlmgr show |
| 1631 |
@appendixsubsec show |
| 1632 |
|
| 1633 |
Synonym for @ref{tlmgr info,, info}. |
| 1634 |
|
| 1635 |
@node tlmgr uninstall |
| 1636 |
@appendixsubsec uninstall |
| 1637 |
|
| 1638 |
Synonym for @ref{tlmgr remove [@emph{option}...] @emph{pkg}...,, remove}. |
| 1639 |
|
| 1640 |
@node tlmgr update [@emph{option}...] [@emph{pkg}...] |
| 1641 |
@appendixsubsec update [@emph{option}...] [@emph{pkg}...] |
| 1642 |
|
| 1643 |
Updates the packages given as arguments to the latest version available |
| 1644 |
at the installation source. Either @code{--all} or at least one @emph{pkg} name |
| 1645 |
must be specified. Options: |
| 1646 |
|
| 1647 |
@table @asis |
| 1648 |
@item @strong{@asis{}-@asis{}-@asis{}all} |
| 1649 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}all} 5} |
| 1650 |
|
| 1651 |
Update all installed packages except for @code{tlmgr} itself. If updates to |
| 1652 |
@code{tlmgr} itself are present, this gives an error, unless also the option |
| 1653 |
@code{--force} or @code{--self} is given. (See below.) |
| 1654 |
|
| 1655 |
In addition to updating the installed packages, during the update of a |
| 1656 |
collection the local installation is (by default) synchronized to the |
| 1657 |
status of the collection on the server, for both additions and removals. |
| 1658 |
|
| 1659 |
This means that if a package has been removed on the server (and thus |
| 1660 |
has also been removed from the respective collection), @code{tlmgr} will |
| 1661 |
remove the package in the local installation. This is called |
| 1662 |
``auto-remove'' and is announced as such when using the option |
| 1663 |
@code{--list}. This auto-removal can be suppressed using the option |
| 1664 |
@code{--no-auto-remove} (not recommended, see option description). |
| 1665 |
|
| 1666 |
Analogously, if a package has been added to a collection on the server |
| 1667 |
that is also installed locally, it will be added to the local |
| 1668 |
installation. This is called ``auto-install'' and is announced as such |
| 1669 |
when using the option @code{--list}. This auto-installation can be |
| 1670 |
suppressed using the option @code{--no-auto-install} (also not recommended). |
| 1671 |
|
| 1672 |
An exception to the collection dependency checks (including the |
| 1673 |
auto-installation of packages just mentioned) are those that have been |
| 1674 |
``forcibly removed'' by you, that is, you called @code{tlmgr remove --force} |
| 1675 |
on them. (See the @code{remove} action documentation.) To reinstall any |
| 1676 |
such forcibly removed packages use @code{--reinstall-forcibly-removed}. |
| 1677 |
|
| 1678 |
To reiterate: automatic removals and additions are entirely determined |
| 1679 |
by comparison of collections. Thus, if you manually install an |
| 1680 |
individual package @code{foo} which is later removed from the server, |
| 1681 |
@code{tlmgr} will not notice and will not remove it locally. (It has to be |
| 1682 |
this way, without major rearchitecture work, because the tlpdb does not |
| 1683 |
record the repository from which packages come from.) |
| 1684 |
|
| 1685 |
If you want to exclude some packages from the current update run (e.g., |
| 1686 |
due to a slow link), see the @code{--exclude} option below. |
| 1687 |
|
| 1688 |
@item @strong{@asis{}-@asis{}-@asis{}self} |
| 1689 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}self}} |
| 1690 |
|
| 1691 |
Update @code{tlmgr} itself (that is, the infrastructure packages) if updates |
| 1692 |
to it are present. On Windows this includes updates to the private Perl |
| 1693 |
interpreter shipped inside TeX Live. |
| 1694 |
|
| 1695 |
If this option is given together with either @code{--all} or a list of |
| 1696 |
packages, then @code{tlmgr} will be updated first and, if this update |
| 1697 |
succeeds, the new version will be restarted to complete the rest of the |
| 1698 |
updates. |
| 1699 |
|
| 1700 |
In short: |
| 1701 |
|
| 1702 |
@verbatim |
| 1703 |
tlmgr update --self # update infrastructure only |
| 1704 |
tlmgr update --self --all # update infrastructure and all packages |
| 1705 |
tlmgr update --force --all # update all packages but *not* infrastructure |
| 1706 |
# ... this last at your own risk, not recommended! |
| 1707 |
@end verbatim |
| 1708 |
|
| 1709 |
@item @strong{@asis{}-@asis{}-@asis{}dry-run} |
| 1710 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}dry-run} 5} |
| 1711 |
|
| 1712 |
Nothing is actually installed; instead, the actions to be performed are |
| 1713 |
written to the terminal. This is a more detailed report than @code{--list}. |
| 1714 |
|
| 1715 |
@item @strong{@asis{}-@asis{}-@asis{}list} [@emph{pkg}] |
| 1716 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}list} [@emph{pkg}]} |
| 1717 |
|
| 1718 |
Concisely list the packages which would be updated, newly installed, or |
| 1719 |
removed, without actually changing anything. |
| 1720 |
If @code{--all} is also given, all available updates are listed. |
| 1721 |
If @code{--self} is given, but not @code{--all}, only updates to the |
| 1722 |
critical packages (tlmgr, texlive infrastructure, perl on Windows, etc.) |
| 1723 |
are listed. |
| 1724 |
If neither @code{--all} nor @code{--self} is given, and in addition no @emph{pkg} is |
| 1725 |
given, then @code{--all} is assumed (thus, @code{tlmgr update --list} is the |
| 1726 |
same as @code{tlmgr update --list --all}). |
| 1727 |
If neither @code{--all} nor @code{--self} is given, but specific package names are |
| 1728 |
given, those packages are checked for updates. |
| 1729 |
|
| 1730 |
@item @strong{@asis{}-@asis{}-@asis{}exclude} @emph{pkg} |
| 1731 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}exclude} @emph{pkg}} |
| 1732 |
|
| 1733 |
Exclude @emph{pkg} from the update process. If this option is given more |
| 1734 |
than once, its arguments accumulate. |
| 1735 |
|
| 1736 |
An argument @emph{pkg} excludes both the package @emph{pkg} itself and all |
| 1737 |
its related platform-specific packages @emph{pkg.ARCH}. For example, |
| 1738 |
|
| 1739 |
@verbatim |
| 1740 |
tlmgr update --all --exclude a2ping |
| 1741 |
@end verbatim |
| 1742 |
|
| 1743 |
will not update @code{a2ping}, @code{a2ping.i386-linux}, or |
| 1744 |
any other @code{a2ping.}@emph{ARCH} package. |
| 1745 |
|
| 1746 |
If this option specifies a package that would otherwise be a candidate |
| 1747 |
for auto-installation, auto-removal, or reinstallation of a forcibly |
| 1748 |
removed package, @code{tlmgr} quits with an error message. Excludes are not |
| 1749 |
supported in these circumstances. |
| 1750 |
|
| 1751 |
This option can also be set permanently in the tlmgr config file with |
| 1752 |
the key @code{update-exclude}. |
| 1753 |
|
| 1754 |
@item @strong{@asis{}-@asis{}-@asis{}no-auto-remove} [@emph{pkg}...] |
| 1755 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-auto-remove} [@emph{pkg}...]} |
| 1756 |
|
| 1757 |
By default, @code{tlmgr} tries to remove packages in an existing collection |
| 1758 |
which have disappeared on the server, as described above under @code{--all}. |
| 1759 |
This option prevents such removals, either for all packages (with |
| 1760 |
@code{--all}), or for just the given @emph{pkg} names. This can lead to an |
| 1761 |
inconsistent TeX installation, since packages are not infrequently |
| 1762 |
renamed or replaced by their authors. Therefore this is not recommended. |
| 1763 |
|
| 1764 |
@item @strong{@asis{}-@asis{}-@asis{}no-auto-install} [@emph{pkg}...] |
| 1765 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-auto-install} [@emph{pkg}...]} |
| 1766 |
|
| 1767 |
Under normal circumstances @code{tlmgr} will install packages which are new |
| 1768 |
on the server, as described above under @code{--all}. This option prevents |
| 1769 |
any such automatic installation, either for all packages (with |
| 1770 |
@code{--all}), or the given @emph{pkg} names. |
| 1771 |
|
| 1772 |
Furthermore, after the @code{tlmgr} run using this has finished, the |
| 1773 |
packages that would have been auto-installed @emph{will be considered as |
| 1774 |
forcibly removed}. So, if @code{foobar} is the only new package on the |
| 1775 |
server, then |
| 1776 |
|
| 1777 |
@verbatim |
| 1778 |
tlmgr update --all --no-auto-install |
| 1779 |
@end verbatim |
| 1780 |
|
| 1781 |
is equivalent to |
| 1782 |
|
| 1783 |
@verbatim |
| 1784 |
tlmgr update --all |
| 1785 |
tlmgr remove --force foobar |
| 1786 |
@end verbatim |
| 1787 |
|
| 1788 |
Again, since packages are sometimes renamed or replaced, using this |
| 1789 |
option is not recommended. |
| 1790 |
|
| 1791 |
@item @strong{@asis{}-@asis{}-@asis{}reinstall-forcibly-removed} |
| 1792 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}reinstall-forcibly-removed}} |
| 1793 |
|
| 1794 |
Under normal circumstances @code{tlmgr} will not install packages that have |
| 1795 |
been forcibly removed by the user; that is, removed with @code{remove |
| 1796 |
--force}, or whose installation was prohibited by @code{--no-auto-install} |
| 1797 |
during an earlier update. |
| 1798 |
|
| 1799 |
This option makes @code{tlmgr} ignore the forcible removals and re-install |
| 1800 |
all such packages. This can be used to completely synchronize an |
| 1801 |
installation with the server's idea of what is available: |
| 1802 |
|
| 1803 |
@verbatim |
| 1804 |
tlmgr update --reinstall-forcibly-removed --all |
| 1805 |
@end verbatim |
| 1806 |
|
| 1807 |
@item @strong{@asis{}-@asis{}-@asis{}backup} |
| 1808 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}backup} 1} |
| 1809 |
|
| 1810 |
@item @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory} |
| 1811 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}backupdir} @emph{directory} 3} |
| 1812 |
|
| 1813 |
These two options control the creation of backups of packages @emph{before} |
| 1814 |
updating; that is, backing up packages as currently installed. If |
| 1815 |
neither option is given, no backup will made. If @code{--backupdir} is |
| 1816 |
given and specifies a writable directory then a backup will be made in |
| 1817 |
that location. If only @code{--backup} is given, then a backup will be made |
| 1818 |
to the directory previously set via the @ref{tlmgr option,, option} action (see |
| 1819 |
below). If both are given then a backup will be made to the specified |
| 1820 |
@emph{directory}. |
| 1821 |
|
| 1822 |
You can also set options via the @ref{tlmgr option,, option} action to automatically make |
| 1823 |
backups for all packages, and/or keep only a certain number of backups. |
| 1824 |
|
| 1825 |
@code{tlmgr} always makes a temporary backup when updating packages, in case |
| 1826 |
of download or other failure during an update. In contrast, the purpose |
| 1827 |
of this @code{--backup} option is to save a persistent backup in case the |
| 1828 |
actual @emph{content} of the update causes problems, e.g., introduces an TeX |
| 1829 |
incompatibility. |
| 1830 |
|
| 1831 |
The @ref{tlmgr restore,, restore} action explains how to restore from a backup. |
| 1832 |
|
| 1833 |
@item @strong{@asis{}-@asis{}-@asis{}no-depends} |
| 1834 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-depends} 2} |
| 1835 |
|
| 1836 |
If you call for updating a package normally all depending packages |
| 1837 |
will also be checked for updates and updated if necessary. This switch |
| 1838 |
suppresses this behavior. |
| 1839 |
|
| 1840 |
@item @strong{@asis{}-@asis{}-@asis{}no-depends-at-all} |
| 1841 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}no-depends-at-all} 2} |
| 1842 |
|
| 1843 |
See above under @ref{tlmgr install [@emph{option}...] @emph{pkg}...,, install} (and beware). |
| 1844 |
|
| 1845 |
@item @strong{@asis{}-@asis{}-@asis{}force} |
| 1846 |
@anchor{tlmgr @strong{@asis{}-@asis{}-@asis{}force} 3} |
| 1847 |
|
| 1848 |
Force update of normal packages, without updating @code{tlmgr} itself |
| 1849 |
(unless the @code{--self} option is also given). Not recommended. |
| 1850 |
|
| 1851 |
Also, @code{update --list} is still performed regardless of this option. |
| 1852 |
|
| 1853 |
@end table |
| 1854 |
|
| 1855 |
If the package on the server is older than the package already installed |
| 1856 |
(e.g., if the selected mirror is out of date), @code{tlmgr} does not |
| 1857 |
downgrade. Also, packages for uninstalled platforms are not installed. |
| 1858 |
|
| 1859 |
@code{tlmgr} saves one copy of the main @code{texlive.tlpdb} file used for an |
| 1860 |
update with a suffix representing the repository url, as in |
| 1861 |
@code{tlpkg/texlive.tlpdb.main.}@emph{long-hash-string}. Thus, even when many |
| 1862 |
mirrors are used, only one main @code{tlpdb} backup is kept. For non-main |
| 1863 |
repositories, which do not generally have (m)any mirrors, no pruning of |
| 1864 |
backups is done. |
| 1865 |
|
| 1866 |
This action does not automatically add or remove new symlinks in system |
| 1867 |
directories; you need to run @code{tlmgr} @ref{tlmgr path,, path} yourself if you are using |
| 1868 |
this feature and want new symlinks added. |
| 1869 |
|
| 1870 |
@node tlmgr CONFIGURATION FILE FOR TLMGR |
| 1871 |
@appendixsec CONFIGURATION FILE FOR TLMGR |
| 1872 |
|
| 1873 |
@code{tlmgr} reads two configuration files: one is system-wide, in |
| 1874 |
@code{TEXMFSYSCONFIG/tlmgr/config}, and the other is user-specific, in |
| 1875 |
@code{TEXMFCONFIG/tlmgr/config}. The user-specific one is the default for |
| 1876 |
the @code{conf tlmgr} action. (Run @code{kpsewhich |
| 1877 |
-var-value=TEXMFSYSCONFIG} or @code{... TEXMFCONFIG ...} to see the actual |
| 1878 |
directory names.) |
| 1879 |
|
| 1880 |
A few defaults corresponding to command-line options can be set in these |
| 1881 |
configuration files. In addition, the system-wide file can contain a |
| 1882 |
directive to restrict the allowed actions. |
| 1883 |
|
| 1884 |
In these config files, empty lines and lines starting with # are |
| 1885 |
ignored. All other lines must look like: |
| 1886 |
|
| 1887 |
@verbatim |
| 1888 |
key = value |
| 1889 |
@end verbatim |
| 1890 |
|
| 1891 |
where the spaces are optional but the @code{=} is required. |
| 1892 |
|
| 1893 |
The allowed keys are: |
| 1894 |
|
| 1895 |
@table @asis |
| 1896 |
@item @code{auto-remove =} 0 or 1 (default 1), same as command-line option. |
| 1897 |
@anchor{tlmgr @code{auto-remove =} 0 or 1 (default 1)@comma{} same as command-line option.} |
| 1898 |
|
| 1899 |
@item @code{gui-expertmode =} 0 or 1 (default 1). This switches between the full GUI and a simplified GUI with only the most common settings. |
| 1900 |
@anchor{tlmgr @code{gui-expertmode =} 0 or 1 (default 1). This switches between the full GUI and a simplified GUI with only the most common settings.} |
| 1901 |
|
| 1902 |
@item @code{gui-lang =} @emph{llcode}, with a language code value as with the command-line option. |
| 1903 |
@anchor{tlmgr @code{gui-lang =} @emph{llcode}@comma{} with a language code value as with the command-line option.} |
| 1904 |
|
| 1905 |
@item @code{no-checksums =} 0 or 1 (default 0, see below). |
| 1906 |
@anchor{tlmgr @code{no-checksums =} 0 or 1 (default 0@comma{} see below).} |
| 1907 |
|
| 1908 |
@item @code{persistent-downloads =} 0 or 1 (default 1), same as command-line option. |
| 1909 |
@anchor{tlmgr @code{persistent-downloads =} 0 or 1 (default 1)@comma{} same as command-line option.} |
| 1910 |
|
| 1911 |
@item @code{require-verification =} 0 or 1 (default 0), same as command-line option. |
| 1912 |
@anchor{tlmgr @code{require-verification =} 0 or 1 (default 0)@comma{} same as command-line option.} |
| 1913 |
|
| 1914 |
@item @code{tkfontscale =} @emph{floating-point number} (default 1.0); scaling factor for fonts in the Tk-based frontends. |
| 1915 |
@anchor{tlmgr @code{tkfontscale =} @emph{floating-point number} (default 1.0); scaling factor for fonts in the Tk-based frontends.} |
| 1916 |
|
| 1917 |
@item @code{update-exclude =} @emph{comma-separated list of packages} (no spaces allowed). Same as the command line option @code{--exclude} for the @code{update} action. |
| 1918 |
@anchor{tlmgr @code{update-exclude =} @emph{comma-separated list of packages} (no spaces allowed). Same as the command line option @code{--exclude} for the @code{update} action.} |
| 1919 |
|
| 1920 |
@item @code{verify-downloads =} 0 or 1 (default 1), same as command-line option. |
| 1921 |
@anchor{tlmgr @code{verify-downloads =} 0 or 1 (default 1)@comma{} same as command-line option.} |
| 1922 |
|
| 1923 |
@end table |
| 1924 |
|
| 1925 |
The system-wide config file can contain one additional key: |
| 1926 |
|
| 1927 |
@table @asis |
| 1928 |
@item @code{allowed-actions =} @emph{action1}[,@emph{action2},...] The value is a comma-separated list (no spaces) of @code{tlmgr} actions which are allowed to be executed when @code{tlmgr} is invoked in system mode (that is, without @code{--usermode}). This allows distributors to include @code{tlmgr} in their packaging, but allow only a restricted set of actions that do not interfere with their distro package manager. For native TeX Live installations, it doesn't make sense to set this. |
| 1929 |
@anchor{tlmgr @code{allowed-actions =} @emph{action1}[@comma{}@emph{action2}@comma{}...] The value is a comma-separated list (no spaces) of @code{tlmgr} actions which are allowed to be executed when @code{tlmgr} is invoked in system mode (that is@comma{} without @code{--usermode}). This allows distributors to include @code{tlmgr} in their packaging@comma{} but allow only a restricted set of actions that do not interfere with their distro package manager. For native TeX Live installations@comma{} it doesn't make sense to set this.} |
| 1930 |
|
| 1931 |
@end table |
| 1932 |
|
| 1933 |
Finally, the @code{no-checksums} key needs more explanation. By default, |
| 1934 |
package checksums computed and stored on the server (in the TLPDB) are |
| 1935 |
compared to checksums computed locally after downloading. |
| 1936 |
@code{no-checksums} disables this process. The checksum algorithm is |
| 1937 |
SHA-512. Your system must have one of (looked for in this order) the |
| 1938 |
Perl @code{Digest::SHA} module, the @code{openssl} program |
| 1939 |
(@url{https://openssl.org}), the @code{sha512sum} program (from GNU Coreutils, |
| 1940 |
@url{https://www.gnu.org/software/coreutils}), or finally the @code{shasum} |
| 1941 |
program (just to support old Macs). If none of these are available, a |
| 1942 |
warning is issued and @code{tlmgr} proceeds without checking checksums. |
| 1943 |
@code{no-checksums} avoids the warning. (Incidentally, other SHA |
| 1944 |
implementations, such as the pure Perl and pure Lua modules, are much |
| 1945 |
too slow to be usable in our context.) |
| 1946 |
|
| 1947 |
@node tlmgr CRYPTOGRAPHIC VERIFICATION |
| 1948 |
@appendixsec CRYPTOGRAPHIC VERIFICATION |
| 1949 |
|
| 1950 |
@code{tlmgr} and @code{install-tl} perform cryptographic verification if |
| 1951 |
possible. If verification is performed and successful, the programs |
| 1952 |
report @code{(verified)} after loading the TLPDB; otherwise, they report |
| 1953 |
@code{(not verified)}. But either way, by default the installation and/or |
| 1954 |
updates proceed normally. |
| 1955 |
|
| 1956 |
If a program named @code{gpg} is available (that is, found in @code{PATH}), by |
| 1957 |
default cryptographic signatures will be checked: we require the main |
| 1958 |
repository be signed, but not any additional repositories. If @code{gpg} is |
| 1959 |
not available, by default signatures are not checked and no verification |
| 1960 |
is carried out, but @code{tlmgr} still proceeds normally. |
| 1961 |
|
| 1962 |
The behavior of the verification can be controlled by the command line |
| 1963 |
and config file option @code{verify-repo} which takes one of the following |
| 1964 |
values: @code{none}, @code{main}, or @code{all}. With @code{none}, no verification |
| 1965 |
whatsoever is attempted. With @code{main} (the default) verification is |
| 1966 |
required only for the main repository, and only if @code{gpg} is available; |
| 1967 |
though attempted for all, missing signatures of subsidiary repositories |
| 1968 |
will not result in an error. Finally, in the case of @code{all}, @code{gpg} |
| 1969 |
must be available and all repositories need to be signed. |
| 1970 |
|
| 1971 |
In all cases, if a signature is checked and fails to verify, an error |
| 1972 |
is raised. |
| 1973 |
|
| 1974 |
Cryptographic verification requires checksum checking (described just |
| 1975 |
above) to succeed, and a working GnuPG (@code{gpg}) program (see below for |
| 1976 |
search method). Then, unless cryptographic verification has been |
| 1977 |
disabled, a signature file (@code{texlive.tlpdb.*.asc}) of the checksum file |
| 1978 |
is downloaded and the signature verified. The signature is created by |
| 1979 |
the TeX Live Distribution GPG key 0x0D5E5D9106BAB6BC, which in turn is |
| 1980 |
signed by Karl Berry's key 0x0716748A30D155AD and |
| 1981 |
Norbert Preining's key 0x6CACA448860CDC13. All |
| 1982 |
of these keys are obtainable from the standard key servers. |
| 1983 |
|
| 1984 |
Additional trusted keys can be added using the @code{key} action. |
| 1985 |
|
| 1986 |
@node tlmgr Configuration of GnuPG invocation |
| 1987 |
@appendixsubsec Configuration of GnuPG invocation |
| 1988 |
|
| 1989 |
The executable used for GnuPG is searched as follows: If the environment |
| 1990 |
variable @code{TL_GNUPG} is set, it is tested and used; otherwise @code{gpg} is |
| 1991 |
checked; finally @code{gpg2} is checked. |
| 1992 |
|
| 1993 |
Further adaptation of the @code{gpg} invocation can be made using the two |
| 1994 |
environment variables @code{TL_GNUPGHOME}, which is passed to @code{gpg} as the |
| 1995 |
value for @code{--homedir}, and @code{TL_GNUPGARGS}, which replaces the default |
| 1996 |
options @code{--no-secmem-warning --no-permission-warning}. |
| 1997 |
|
| 1998 |
@node tlmgr USER MODE |
| 1999 |
@appendixsec USER MODE |
| 2000 |
|
| 2001 |
@code{tlmgr} provides a restricted way, called ``user mode'', to manage |
| 2002 |
arbitrary texmf trees in the same way as the main installation. For |
| 2003 |
example, this allows people without write permissions on the |
| 2004 |
installation location to update/install packages into a tree of their |
| 2005 |
own. |
| 2006 |
|
| 2007 |
@code{tlmgr} is switched into user mode with the command line option |
| 2008 |
@code{--usermode}. It does not switch automatically, nor is there any |
| 2009 |
configuration file setting for it. Thus, this option has to be |
| 2010 |
explicitly given every time user mode is to be activated. |
| 2011 |
|
| 2012 |
This mode of @code{tlmgr} works on a user tree, by default the value of the |
| 2013 |
@code{TEXMFHOME} variable. This can be overridden with the command line |
| 2014 |
option @code{--usertree}. In the following when we speak of the user tree |
| 2015 |
we mean either @code{TEXMFHOME} or the one given on the command line. |
| 2016 |
|
| 2017 |
Not all actions are allowed in user mode; @code{tlmgr} will warn you and not |
| 2018 |
carry out any problematic actions. Currently not supported (and |
| 2019 |
probably will never be) is the @code{platform} action. The @code{gui} action is |
| 2020 |
currently not supported, but may be in a future release. |
| 2021 |
|
| 2022 |
Some @code{tlmgr} actions don't need any write permissions and thus work the |
| 2023 |
same in user mode and normal mode. Currently these are: @code{check}, |
| 2024 |
@code{help}, @code{list}, @code{print-platform}, @code{print-platform-info}, @code{search}, |
| 2025 |
@code{show}, @code{version}. |
| 2026 |
|
| 2027 |
On the other hand, most of the actions dealing with package management |
| 2028 |
do need write permissions, and thus behave differently in user mode, as |
| 2029 |
described below: @code{install}, @code{update}, @code{remove}, @code{option}, @code{paper}, |
| 2030 |
@code{generate}, @code{backup}, @code{restore}, @code{uninstall}, @code{symlinks}. |
| 2031 |
|
| 2032 |
Before using @code{tlmgr} in user mode, you have to set up the user tree |
| 2033 |
with the @code{init-usertree} action. This creates @emph{usertree}@code{/web2c} and |
| 2034 |
@emph{usertree}@code{/tlpkg/tlpobj}, and a minimal |
| 2035 |
@emph{usertree}@code{/tlpkg/texlive.tlpdb}. At that point, you can tell |
| 2036 |
@code{tlmgr} to do the (supported) actions by adding the @code{--usermode} |
| 2037 |
command line option. |
| 2038 |
|
| 2039 |
In user mode the file @emph{usertree}@code{/tlpkg/texlive.tlpdb} contains only |
| 2040 |
the packages that have been installed into the user tree using @code{tlmgr}, |
| 2041 |
plus additional options from the ``virtual'' package |
| 2042 |
@code{00texlive.installation} (similar to the main installation's |
| 2043 |
@code{texlive.tlpdb}). |
| 2044 |
|
| 2045 |
All actions on packages in user mode can only be carried out on packages |
| 2046 |
that are known as @code{relocatable}. This excludes all packages containing |
| 2047 |
executables and a few other core packages. Of the 2500 or so packages |
| 2048 |
currently in TeX Live the vast majority are relocatable and can be |
| 2049 |
installed into a user tree. |
| 2050 |
|
| 2051 |
Description of changes of actions in user mode: |
| 2052 |
|
| 2053 |
@node tlmgr User mode install |
| 2054 |
@appendixsubsec User mode install |
| 2055 |
|
| 2056 |
In user mode, the @code{install} action checks that the package and all |
| 2057 |
dependencies are all either relocated or already installed in the system |
| 2058 |
installation. If this is the case, it unpacks all containers to be |
| 2059 |
installed into the user tree (to repeat, that's either @code{TEXMFHOME} or |
| 2060 |
the value of @code{--usertree}) and add the respective packages to the user |
| 2061 |
tree's @code{texlive.tlpdb} (creating it if need be). |
| 2062 |
|
| 2063 |
Currently installing a collection in user mode installs all dependent |
| 2064 |
packages, but in contrast to normal mode, does @emph{not} install dependent |
| 2065 |
collections. For example, in normal mode @code{tlmgr install |
| 2066 |
collection-context} would install @code{collection-basic} and other |
| 2067 |
collections, while in user mode, @emph{only} the packages mentioned in |
| 2068 |
@code{collection-context} are installed. |
| 2069 |
|
| 2070 |
If a package shipping map files is installed in user mode, a backup of |
| 2071 |
the user's @code{updmap.cfg} in @code{USERTREE/web2c/} is made, and then this file |
| 2072 |
regenerated from the list of installed packages. |
| 2073 |
|
| 2074 |
@node tlmgr User mode backup@comma{} restore@comma{} remove@comma{} update |
| 2075 |
@appendixsubsec User mode backup, restore, remove, update |
| 2076 |
|
| 2077 |
In user mode, these actions check that all packages to be acted on are |
| 2078 |
installed in the user tree before proceeding; otherwise, they behave |
| 2079 |
just as in normal mode. |
| 2080 |
|
| 2081 |
@node tlmgr User mode generate@comma{} option@comma{} paper |
| 2082 |
@appendixsubsec User mode generate, option, paper |
| 2083 |
|
| 2084 |
In user mode, these actions operate only on the user tree's |
| 2085 |
configuration files and/or @code{texlive.tlpdb}. |
| 2086 |
|
| 2087 |
@node tlmgr User mode logs |
| 2088 |
@appendixsubsec User mode logs |
| 2089 |
|
| 2090 |
In user mode, @code{tlmgr.log} and <tlmgr-commands.log> are written in the |
| 2091 |
@code{TEXMFVAR/web2c/} directlry instead of @code{TEXMFSYSVAR/web2c/}. |
| 2092 |
|
| 2093 |
@node tlmgr MULTIPLE REPOSITORIES |
| 2094 |
@appendixsec MULTIPLE REPOSITORIES |
| 2095 |
|
| 2096 |
The main TeX Live repository contains a vast array of packages. |
| 2097 |
Nevertheless, additional local repositories can be useful to provide |
| 2098 |
locally-installed resources, such as proprietary fonts and house styles. |
| 2099 |
Also, alternative package repositories distribute packages that cannot |
| 2100 |
or should not be included in TeX Live, for whatever reason. |
| 2101 |
|
| 2102 |
The simplest and most reliable method is to temporarily set the |
| 2103 |
installation source to any repository (with the @code{-repository} or |
| 2104 |
@code{option repository} command line options), and perform your operations. |
| 2105 |
|
| 2106 |
When you are using multiple repositories over a sustained length of |
| 2107 |
time, however, explicitly switching between them becomes inconvenient. |
| 2108 |
Thus, it's possible to tell @code{tlmgr} about additional repositories you |
| 2109 |
want to use. The basic command is @code{tlmgr repository add}. The rest of |
| 2110 |
this section explains further. |
| 2111 |
|
| 2112 |
When using multiple repositories, one of them has to be set as the main |
| 2113 |
repository, which distributes most of the installed packages. When you |
| 2114 |
switch from a single repository installation to a multiple repository |
| 2115 |
installation, the previous sole repository will be set as the main |
| 2116 |
repository. |
| 2117 |
|
| 2118 |
By default, even if multiple repositories are configured, packages are |
| 2119 |
@emph{still} @emph{only} installed from the main repository. Thus, simply |
| 2120 |
adding a second repository does not actually enable installation of |
| 2121 |
anything from there. You also have to specify which packages should be |
| 2122 |
taken from the new repository, by specifying so-called ``pinning'' |
| 2123 |
rules, described next. |
| 2124 |
|
| 2125 |
@node tlmgr Pinning |
| 2126 |
@appendixsubsec Pinning |
| 2127 |
|
| 2128 |
When a package @code{foo} is pinned to a repository, a package @code{foo} in any |
| 2129 |
other repository, even if it has a higher revision number, will not be |
| 2130 |
considered an installable candidate. |
| 2131 |
|
| 2132 |
As mentioned above, by default everything is pinned to the main |
| 2133 |
repository. Let's now go through an example of setting up a second |
| 2134 |
repository and enabling updates of a package from it. |
| 2135 |
|
| 2136 |
First, check that we have support for multiple repositories, and have |
| 2137 |
only one enabled (as is the case by default): |
| 2138 |
|
| 2139 |
@verbatim |
| 2140 |
$ tlmgr repository list |
| 2141 |
List of repositories (with tags if set): |
| 2142 |
/var/www/norbert/tlnet |
| 2143 |
@end verbatim |
| 2144 |
|
| 2145 |
Ok. Let's add the @code{tlcontrib} repository (this is a real |
| 2146 |
repository hosted at @url{http://contrib.texlive.info}) with the tag @code{tlcontrib}: |
| 2147 |
|
| 2148 |
@verbatim |
| 2149 |
$ tlmgr repository add http://contrib.texlive.info/current tlcontrib |
| 2150 |
@end verbatim |
| 2151 |
|
| 2152 |
Check the repository list again: |
| 2153 |
|
| 2154 |
@verbatim |
| 2155 |
$ tlmgr repository list |
| 2156 |
List of repositories (with tags if set): |
| 2157 |
http://contrib.texlive.info/current (tlcontrib) |
| 2158 |
/var/www/norbert/tlnet (main) |
| 2159 |
@end verbatim |
| 2160 |
|
| 2161 |
Now we specify a pinning entry to get the package @code{classico} from |
| 2162 |
@code{tlcontrib}: |
| 2163 |
|
| 2164 |
@verbatim |
| 2165 |
$ tlmgr pinning add tlcontrib classico |
| 2166 |
@end verbatim |
| 2167 |
|
| 2168 |
Check that we can find @code{classico}: |
| 2169 |
|
| 2170 |
@verbatim |
| 2171 |
$ tlmgr show classico |
| 2172 |
package: classico |
| 2173 |
... |
| 2174 |
shortdesc: URW Classico fonts |
| 2175 |
... |
| 2176 |
@end verbatim |
| 2177 |
|
| 2178 |
- install @code{classico}: |
| 2179 |
|
| 2180 |
@verbatim |
| 2181 |
$ tlmgr install classico |
| 2182 |
tlmgr: package repositories: |
| 2183 |
... |
| 2184 |
[1/1, ??:??/??:??] install: classico @tlcontrib [737k] |
| 2185 |
@end verbatim |
| 2186 |
|
| 2187 |
In the output here you can see that the @code{classico} package has been |
| 2188 |
installed from the @code{tlcontrib} repository (@code{@@tlcontrib}). |
| 2189 |
|
| 2190 |
Finally, @code{tlmgr pinning} also supports removing certain or all packages |
| 2191 |
from a given repository: |
| 2192 |
|
| 2193 |
@verbatim |
| 2194 |
$ tlmgr pinning remove tlcontrib classico # remove just classico |
| 2195 |
$ tlmgr pinning remove tlcontrib --all # take nothing from tlcontrib |
| 2196 |
@end verbatim |
| 2197 |
|
| 2198 |
A summary of @code{tlmgr pinning} actions is given above. |
| 2199 |
|
| 2200 |
@node tlmgr GUI FOR TLMGR |
| 2201 |
@appendixsec GUI FOR TLMGR |
| 2202 |
|
| 2203 |
The graphical user interface for @code{tlmgr} requires Perl/Tk |
| 2204 |
@url{https://search.cpan.org/search?query=perl%2Ftk}. For Unix-based |
| 2205 |
systems Perl/Tk (as well as Perl of course) has to be installed |
| 2206 |
outside of TL. @url{https://tug.org/texlive/distro.html#perltk} has a |
| 2207 |
list of invocations for some distros. For Windows the necessary |
| 2208 |
modules are no longer shipped within TeX Live, so you'll have to have an |
| 2209 |
external Perl available that includes them. |
| 2210 |
|
| 2211 |
We are talking here about the GUI built into tlmgr itself, not about the |
| 2212 |
other tlmgr GUIs, which are: tlshell (Tcl/Tk-based), tlcockpit |
| 2213 |
(Java-based) and, only on Macs, TeX Live Utility. These are invoked as |
| 2214 |
separate programs. |
| 2215 |
|
| 2216 |
The GUI mode of tlmgr is started with the invocation @code{tlmgr gui}; |
| 2217 |
assuming Tk is loadable, the graphical user interface will be shown. |
| 2218 |
The main window contains a menu bar, the main display, and a status |
| 2219 |
area where messages normally shown on the console are displayed. |
| 2220 |
|
| 2221 |
Within the main display there are three main parts: the @code{Display |
| 2222 |
configuration} area, the list of packages, and the action buttons. |
| 2223 |
|
| 2224 |
Also, at the top right the currently loaded repository is shown; this |
| 2225 |
also acts as a button and when clicked will try to load the default |
| 2226 |
repository. To load a different repository, see the @code{tlmgr} menu item. |
| 2227 |
|
| 2228 |
Finally, the status area at the bottom of the window gives additional |
| 2229 |
information about what is going on. |
| 2230 |
|
| 2231 |
@node tlmgr Main display |
| 2232 |
@appendixsubsec Main display |
| 2233 |
|
| 2234 |
@node tlmgr Display configuration area |
| 2235 |
@appendixsubsubsec Display configuration area |
| 2236 |
|
| 2237 |
The first part of the main display allows you to specify (filter) which |
| 2238 |
packages are shown. By default, all are shown. Changes here are |
| 2239 |
reflected right away. |
| 2240 |
|
| 2241 |
@table @asis |
| 2242 |
@item Status |
| 2243 |
@anchor{tlmgr Status} |
| 2244 |
|
| 2245 |
Select whether to show all packages (the default), only those installed, |
| 2246 |
only those @emph{not} installed, or only those with update available. |
| 2247 |
|
| 2248 |
@item Category |
| 2249 |
@anchor{tlmgr Category} |
| 2250 |
|
| 2251 |
Select which categories are shown: packages, collections, and/or |
| 2252 |
schemes. These are briefly explained in the @ref{tlmgr DESCRIPTION,, DESCRIPTION} section |
| 2253 |
above. |
| 2254 |
|
| 2255 |
@item Match |
| 2256 |
@anchor{tlmgr Match} |
| 2257 |
|
| 2258 |
Select packages matching for a specific pattern. By default, this |
| 2259 |
searches both descriptions and filenames. You can also select a subset |
| 2260 |
for searching. |
| 2261 |
|
| 2262 |
@item Selection |
| 2263 |
@anchor{tlmgr Selection} |
| 2264 |
|
| 2265 |
Select packages to those selected, those not selected, or all. Here, |
| 2266 |
``selected'' means that the checkbox in the beginning of the line of a |
| 2267 |
package is ticked. |
| 2268 |
|
| 2269 |
@item Display configuration buttons |
| 2270 |
@anchor{tlmgr Display configuration buttons} |
| 2271 |
|
| 2272 |
To the right there are three buttons: select all packages, select none |
| 2273 |
(a.k.a. deselect all), and reset all these filters to the defaults, |
| 2274 |
i.e., show all available. |
| 2275 |
|
| 2276 |
@end table |
| 2277 |
|
| 2278 |
@node tlmgr Package list area |
| 2279 |
@appendixsubsubsec Package list area |
| 2280 |
|
| 2281 |
The second are of the main display lists all installed packages. If a |
| 2282 |
repository is loaded, those that are available but not installed are |
| 2283 |
also listed. |
| 2284 |
|
| 2285 |
Double clicking on a package line pops up an informational window with |
| 2286 |
further details: the long description, included files, etc. |
| 2287 |
|
| 2288 |
Each line of the package list consists of the following items: |
| 2289 |
|
| 2290 |
@table @asis |
| 2291 |
@item a checkbox |
| 2292 |
@anchor{tlmgr a checkbox} |
| 2293 |
|
| 2294 |
Used to select particular packages; some of the action buttons (see |
| 2295 |
below) work only on the selected packages. |
| 2296 |
|
| 2297 |
@item package name |
| 2298 |
@anchor{tlmgr package name} |
| 2299 |
|
| 2300 |
The name (identifier) of the package as given in the database. |
| 2301 |
|
| 2302 |
@item local revision (and version) |
| 2303 |
@anchor{tlmgr local revision (and version)} |
| 2304 |
|
| 2305 |
If the package is installed the TeX Live revision number for the |
| 2306 |
installed package will be shown. If there is a catalogue version given |
| 2307 |
in the database for this package, it will be shown in parentheses. |
| 2308 |
However, the catalogue version, unlike the TL revision, is not |
| 2309 |
guaranteed to reflect what is actually installed. |
| 2310 |
|
| 2311 |
@item remote revision (and version) |
| 2312 |
@anchor{tlmgr remote revision (and version)} |
| 2313 |
|
| 2314 |
If a repository has been loaded the revision of the package in the |
| 2315 |
repository (if present) is shown. As with the local column, if a |
| 2316 |
catalogue version is provided it will be displayed. And also as with |
| 2317 |
the local column, the catalogue version may be stale. |
| 2318 |
|
| 2319 |
@item short description |
| 2320 |
@anchor{tlmgr short description} |
| 2321 |
|
| 2322 |
The short description of the package. |
| 2323 |
|
| 2324 |
@end table |
| 2325 |
|
| 2326 |
@node tlmgr Main display action buttons |
| 2327 |
@appendixsubsubsec Main display action buttons |
| 2328 |
|
| 2329 |
Below the list of packages are several buttons: |
| 2330 |
|
| 2331 |
@table @asis |
| 2332 |
@item Update all installed |
| 2333 |
@anchor{tlmgr Update all installed} |
| 2334 |
|
| 2335 |
This calls @code{tlmgr update --all}, i.e., tries to update all available |
| 2336 |
packages. Below this button is a toggle to allow reinstallation of |
| 2337 |
previously removed packages as part of this action. |
| 2338 |
|
| 2339 |
The other four buttons only work on the selected packages, i.e., those |
| 2340 |
where the checkbox at the beginning of the package line is ticked. |
| 2341 |
|
| 2342 |
@item Update |
| 2343 |
@anchor{tlmgr Update} |
| 2344 |
|
| 2345 |
Update only the selected packages. |
| 2346 |
|
| 2347 |
@item Install |
| 2348 |
@anchor{tlmgr Install} |
| 2349 |
|
| 2350 |
Install the selected packages; acts like @code{tlmgr install}, i.e., also |
| 2351 |
installs dependencies. Thus, installing a collection installs all its |
| 2352 |
constituent packages. |
| 2353 |
|
| 2354 |
@item Remove |
| 2355 |
@anchor{tlmgr Remove} |
| 2356 |
|
| 2357 |
Removes the selected packages; acts like @code{tlmgr remove}, i.e., it will |
| 2358 |
also remove dependencies of collections (but not dependencies of normal |
| 2359 |
packages). |
| 2360 |
|
| 2361 |
@item Backup |
| 2362 |
@anchor{tlmgr Backup} |
| 2363 |
|
| 2364 |
Makes a backup of the selected packages; acts like @code{tlmgr backup}. This |
| 2365 |
action needs the option @code{backupdir} set (see @code{Options -} General>). |
| 2366 |
|
| 2367 |
@end table |
| 2368 |
|
| 2369 |
@node tlmgr Menu bar |
| 2370 |
@appendixsubsec Menu bar |
| 2371 |
|
| 2372 |
The following entries can be found in the menu bar: |
| 2373 |
|
| 2374 |
@table @asis |
| 2375 |
@item @code{tlmgr} menu |
| 2376 |
@anchor{tlmgr @code{tlmgr} menu} |
| 2377 |
|
| 2378 |
The items here load various repositories: the default as specified in |
| 2379 |
the TeX Live database, the default network repository, the repository |
| 2380 |
specified on the command line (if any), and an arbitrarily |
| 2381 |
manually-entered one. Also has the so-necessary @code{quit} operation. |
| 2382 |
|
| 2383 |
@item @code{Options menu} |
| 2384 |
@anchor{tlmgr @code{Options menu}} |
| 2385 |
|
| 2386 |
Provides access to several groups of options: @code{Paper} (configuration of |
| 2387 |
default paper sizes), @code{Platforms} (only on Unix, configuration of the |
| 2388 |
supported/installed platforms), @code{GUI Language} (select language used in |
| 2389 |
the GUI interface), and @code{General} (everything else). |
| 2390 |
|
| 2391 |
Several toggles are also here. The first is @code{Expert options}, which is |
| 2392 |
set by default. If you turn this off, the next time you start the GUI a |
| 2393 |
simplified screen will be shown that display only the most important |
| 2394 |
functionality. This setting is saved in the configuration file of |
| 2395 |
@code{tlmgr}; see @ref{tlmgr CONFIGURATION FILE FOR TLMGR,, CONFIGURATION FILE FOR TLMGR} for details. |
| 2396 |
|
| 2397 |
The other toggles are all off by default: for debugging output, to |
| 2398 |
disable the automatic installation of new packages, and to disable the |
| 2399 |
automatic removal of packages deleted from the server. Playing with the |
| 2400 |
choices of what is or isn't installed may lead to an inconsistent TeX Live |
| 2401 |
installation; e.g., when a package is renamed. |
| 2402 |
|
| 2403 |
@item @code{Actions menu} |
| 2404 |
@anchor{tlmgr @code{Actions menu}} |
| 2405 |
|
| 2406 |
Provides access to several actions: update the filename database (aka |
| 2407 |
@code{ls-R}, @code{mktexlsr}, @code{texhash}), rebuild all formats (@code{fmtutil-sys |
| 2408 |
--all}), update the font map database (@code{updmap-sys}), restore from a backup |
| 2409 |
of a package, and use of symbolic links in system directories (not on |
| 2410 |
Windows). |
| 2411 |
|
| 2412 |
The final action is to remove the entire TeX Live installation (also not |
| 2413 |
on Windows). |
| 2414 |
|
| 2415 |
@item @code{Help menu} |
| 2416 |
@anchor{tlmgr @code{Help menu}} |
| 2417 |
|
| 2418 |
Provides access to the TeX Live manual (also on the web at |
| 2419 |
@url{https://tug.org/texlive/doc.html}) and the usual ``About'' box. |
| 2420 |
|
| 2421 |
@end table |
| 2422 |
|
| 2423 |
@node tlmgr GUI options |
| 2424 |
@appendixsubsec GUI options |
| 2425 |
|
| 2426 |
Some generic Perl/Tk options can be specified with @code{tlmgr gui} to |
| 2427 |
control the display: |
| 2428 |
|
| 2429 |
@table @asis |
| 2430 |
@item @code{-background} @emph{color} |
| 2431 |
@anchor{tlmgr @code{-background} @emph{color}} |
| 2432 |
|
| 2433 |
Set background color. |
| 2434 |
|
| 2435 |
@item @code{-font "} @emph{fontname} @emph{fontsize} @code{"} |
| 2436 |
@anchor{tlmgr @code{-font "} @emph{fontname} @emph{fontsize} @code{"}} |
| 2437 |
|
| 2438 |
Set font, e.g., @code{tlmgr gui -font "helvetica 18"}. The argument to |
| 2439 |
@code{-font} must be quoted, i.e., passed as a single string. |
| 2440 |
|
| 2441 |
@item @code{-foreground} @emph{color} |
| 2442 |
@anchor{tlmgr @code{-foreground} @emph{color}} |
| 2443 |
|
| 2444 |
Set foreground color. |
| 2445 |
|
| 2446 |
@item @code{-geometry} @emph{geomspec} |
| 2447 |
@anchor{tlmgr @code{-geometry} @emph{geomspec}} |
| 2448 |
|
| 2449 |
Set the X geometry, e.g., @code{tlmgr gui -geometry 1024x512-0+0} creates |
| 2450 |
the window of (approximately) the given size in the upper-right corner |
| 2451 |
of the display. |
| 2452 |
|
| 2453 |
@item @code{-xrm} @emph{xresource} |
| 2454 |
@anchor{tlmgr @code{-xrm} @emph{xresource}} |
| 2455 |
|
| 2456 |
Pass the arbitrary X resource string @emph{xresource}. |
| 2457 |
|
| 2458 |
@end table |
| 2459 |
|
| 2460 |
A few other obscure options are recognized but not mentioned here. See |
| 2461 |
the Perl/Tk documentation (@url{https://search.cpan.org/perldoc?Tk}) for the |
| 2462 |
complete list, and any X documentation for general information. |
| 2463 |
|
| 2464 |
@node tlmgr MACHINE-READABLE OUTPUT |
| 2465 |
@appendixsec MACHINE-READABLE OUTPUT |
| 2466 |
|
| 2467 |
With the @code{--machine-readable} option, @code{tlmgr} writes to stdout in the |
| 2468 |
fixed line-oriented format described here, and the usual informational |
| 2469 |
messages for human consumption are written to stderr (normally they are |
| 2470 |
written to stdout). The idea is that a program can get all the |
| 2471 |
information it needs by reading stdout. |
| 2472 |
|
| 2473 |
Currently this option only applies to the |
| 2474 |
@ref{tlmgr update [@emph{option}...] [@emph{pkg}...],, update}, |
| 2475 |
@ref{tlmgr install [@emph{option}...] @emph{pkg}...,, install}, and |
| 2476 |
@ref{tlmgr option,, option} actions. |
| 2477 |
|
| 2478 |
@node tlmgr Machine-readable @code{update} and @code{install} output |
| 2479 |
@appendixsubsec Machine-readable @code{update} and @code{install} output |
| 2480 |
|
| 2481 |
The output format is as follows: |
| 2482 |
|
| 2483 |
@verbatim |
| 2484 |
fieldname "\t" value |
| 2485 |
... |
| 2486 |
"end-of-header" |
| 2487 |
pkgname status localrev serverrev size runtime esttot |
| 2488 |
... |
| 2489 |
"end-of-updates" |
| 2490 |
other output from post actions, not in machine readable form |
| 2491 |
@end verbatim |
| 2492 |
|
| 2493 |
The header section currently has two fields: @code{location-url} (the |
| 2494 |
repository source from which updates are being drawn), and |
| 2495 |
@code{total-bytes} (the total number of bytes to be downloaded). |
| 2496 |
|
| 2497 |
The @emph{localrev} and @emph{serverrev} fields for each package are the |
| 2498 |
revision numbers in the local installation and server repository, |
| 2499 |
respectively. The @emph{size} field is the number of bytes to be |
| 2500 |
downloaded, i.e., the size of the compressed tar file for a network |
| 2501 |
installation, not the unpacked size. The runtime and esttot fields |
| 2502 |
are only present for updated and auto-install packages, and contain |
| 2503 |
the currently passed time since start of installation/updates |
| 2504 |
and the estimated total time. |
| 2505 |
|
| 2506 |
Line endings may be either LF or CRLF depending on the current platform. |
| 2507 |
|
| 2508 |
@table @asis |
| 2509 |
@item @code{location-url} @emph{location} |
| 2510 |
@anchor{tlmgr @code{location-url} @emph{location}} |
| 2511 |
|
| 2512 |
The @emph{location} may be a url (including @code{file:///foo/bar/...}), or a |
| 2513 |
directory name (@code{/foo/bar}). It is the package repository from which |
| 2514 |
the new package information was drawn. |
| 2515 |
|
| 2516 |
@item @code{total-bytes} @emph{count} |
| 2517 |
@anchor{tlmgr @code{total-bytes} @emph{count}} |
| 2518 |
|
| 2519 |
The @emph{count} is simply a decimal number, the sum of the sizes of all the |
| 2520 |
packages that need updating or installing (which are listed subsequently). |
| 2521 |
|
| 2522 |
@end table |
| 2523 |
|
| 2524 |
Then comes a line with only the literal string @code{end-of-header}. |
| 2525 |
|
| 2526 |
Each following line until a line with literal string @code{end-of-updates} |
| 2527 |
reports on one package. The fields on |
| 2528 |
each line are separated by a tab. Here are the fields. |
| 2529 |
|
| 2530 |
@table @asis |
| 2531 |
@item @emph{pkgname} |
| 2532 |
@anchor{tlmgr @emph{pkgname}} |
| 2533 |
|
| 2534 |
The TeX Live package identifier, with a possible platform suffix for |
| 2535 |
executables. For instance, @code{pdftex} and @code{pdftex.i386-linux} are given |
| 2536 |
as two separate packages, one on each line. |
| 2537 |
|
| 2538 |
@item @emph{status} |
| 2539 |
@anchor{tlmgr @emph{status}} |
| 2540 |
|
| 2541 |
The status of the package update. One character, as follows: |
| 2542 |
|
| 2543 |
@table @asis |
| 2544 |
@item @code{d} |
| 2545 |
@anchor{tlmgr @code{d}} |
| 2546 |
|
| 2547 |
The package was removed on the server. |
| 2548 |
|
| 2549 |
@item @code{f} |
| 2550 |
@anchor{tlmgr @code{f}} |
| 2551 |
|
| 2552 |
The package was removed in the local installation, even though a |
| 2553 |
collection depended on it. (E.g., the user ran @code{tlmgr remove |
| 2554 |
--force}.) |
| 2555 |
|
| 2556 |
@item @code{u} |
| 2557 |
@anchor{tlmgr @code{u}} |
| 2558 |
|
| 2559 |
Normal update is needed. |
| 2560 |
|
| 2561 |
@item @code{r} |
| 2562 |
@anchor{tlmgr @code{r}} |
| 2563 |
|
| 2564 |
Reversed non-update: the locally-installed version is newer than the |
| 2565 |
version on the server. |
| 2566 |
|
| 2567 |
@item @code{a} |
| 2568 |
@anchor{tlmgr @code{a}} |
| 2569 |
|
| 2570 |
Automatically-determined need for installation, the package is new on |
| 2571 |
the server and is (most probably) part of an installed collection. |
| 2572 |
|
| 2573 |
@item @code{i} |
| 2574 |
@anchor{tlmgr @code{i}} |
| 2575 |
|
| 2576 |
Package will be installed and isn't present in the local installation |
| 2577 |
(action install). |
| 2578 |
|
| 2579 |
@item @code{I} |
| 2580 |
@anchor{tlmgr @code{I}} |
| 2581 |
|
| 2582 |
Package is already present but will be reinstalled (action install). |
| 2583 |
|
| 2584 |
@end table |
| 2585 |
|
| 2586 |
@item @emph{localrev} |
| 2587 |
@anchor{tlmgr @emph{localrev}} |
| 2588 |
|
| 2589 |
The revision number of the installed package, or @code{-} if it is not |
| 2590 |
present locally. |
| 2591 |
|
| 2592 |
@item @emph{serverrev} |
| 2593 |
@anchor{tlmgr @emph{serverrev}} |
| 2594 |
|
| 2595 |
The revision number of the package on the server, or @code{-} if it is not |
| 2596 |
present on the server. |
| 2597 |
|
| 2598 |
@item @emph{size} |
| 2599 |
@anchor{tlmgr @emph{size}} |
| 2600 |
|
| 2601 |
The size in bytes of the package on the server. The sum of all the |
| 2602 |
package sizes is given in the @code{total-bytes} header field mentioned above. |
| 2603 |
|
| 2604 |
@item @emph{runtime} |
| 2605 |
@anchor{tlmgr @emph{runtime}} |
| 2606 |
|
| 2607 |
The run time since start of installations or updates. |
| 2608 |
|
| 2609 |
@item @emph{esttot} |
| 2610 |
@anchor{tlmgr @emph{esttot}} |
| 2611 |
|
| 2612 |
The estimated total time. |
| 2613 |
|
| 2614 |
@end table |
| 2615 |
|
| 2616 |
@node tlmgr Machine-readable @code{option} output |
| 2617 |
@appendixsubsec Machine-readable @code{option} output |
| 2618 |
|
| 2619 |
The output format is as follows: |
| 2620 |
|
| 2621 |
@verbatim |
| 2622 |
key "\t" value |
| 2623 |
@end verbatim |
| 2624 |
|
| 2625 |
If a value is not saved in the database the string @code{(not set)} is shown. |
| 2626 |
|
| 2627 |
If you are developing a program that uses this output, and find that |
| 2628 |
changes would be helpful, do not hesitate to write the mailing list. |
| 2629 |
|
| 2630 |
@node tlmgr ENVIRONMENT VARIABLES |
| 2631 |
@appendixsec ENVIRONMENT VARIABLES |
| 2632 |
|
| 2633 |
@code{tlmgr} uses many of the standard TeX environment variables, as |
| 2634 |
reported by, e.g., @code{tlmgr conf} (@ref{tlmgr conf,, conf}). |
| 2635 |
|
| 2636 |
In addition, for ease in scripting and debugging, @code{tlmgr} looks for the |
| 2637 |
following environment variables. These are not of interest for normal |
| 2638 |
user installations. |
| 2639 |
|
| 2640 |
@table @asis |
| 2641 |
@item @code{TEXLIVE_COMPRESSOR} |
| 2642 |
@anchor{tlmgr @code{TEXLIVE_COMPRESSOR}} |
| 2643 |
|
| 2644 |
This variable allows selecting a different compressor program for |
| 2645 |
backups and intermediate rollback containers. The order of selection is: |
| 2646 |
|
| 2647 |
@enumerate |
| 2648 |
@item If the environment variable @code{TEXLIVE_COMPRESSOR} is |
| 2649 |
defined, use it; abort if it doesn't work. Possible values: |
| 2650 |
@code{lz4}, @code{gzip}, @code{xz}. The necessary options are added internally. |
| 2651 |
|
| 2652 |
@item If lz4 is available (either from the system or TL) and working, use that. |
| 2653 |
|
| 2654 |
@item If gzip is available (from the system) and working, use that. |
| 2655 |
|
| 2656 |
@item If xz is available (either from the system or TL) and working, use that. |
| 2657 |
|
| 2658 |
@end enumerate |
| 2659 |
|
| 2660 |
lz4 and gzip are faster in creating tlmgr's local backups, hence they |
| 2661 |
are preferred. The unconditional use of xz for the tlnet containers is |
| 2662 |
unaffected, to minimize download sizes. |
| 2663 |
|
| 2664 |
@item @code{TEXLIVE_DOWNLOADER} |
| 2665 |
@anchor{tlmgr @code{TEXLIVE_DOWNLOADER}} |
| 2666 |
|
| 2667 |
@item @code{TL_DOWNLOAD_PROGRAM} |
| 2668 |
@anchor{tlmgr @code{TL_DOWNLOAD_PROGRAM}} |
| 2669 |
|
| 2670 |
@item @code{TL_DOWNLOAD_ARGS} |
| 2671 |
@anchor{tlmgr @code{TL_DOWNLOAD_ARGS}} |
| 2672 |
|
| 2673 |
These options allow selecting different download programs then the ones |
| 2674 |
automatically selected by the installer. The order of selection is: |
| 2675 |
|
| 2676 |
@enumerate |
| 2677 |
@item If the environment variable @code{TEXLIVE_DOWNLOADER} is defined, use it; |
| 2678 |
abort if the specified program doesn't work. Possible values: @code{lwp}, |
| 2679 |
@code{curl}, @code{wget}. The necessary options are added internally. |
| 2680 |
|
| 2681 |
@item If the environment variable @code{TL_DOWNLOAD_PROGRAM} is |
| 2682 |
defined (can be any value), use it together with |
| 2683 |
@code{TL_DOWNLOAD_ARGS}; abort if it doesn't work. |
| 2684 |
|
| 2685 |
@item If LWP is available and working, use that (by far the most |
| 2686 |
efficient method, as it supports persistent downloads). |
| 2687 |
|
| 2688 |
@item If curl is available (from the system) and working, use that. |
| 2689 |
|
| 2690 |
@item If wget is available (either from the system or TL) and working, use that. |
| 2691 |
|
| 2692 |
@end enumerate |
| 2693 |
|
| 2694 |
TL provides @code{wget} binaries for platforms where necessary, so some |
| 2695 |
download method should always be available. |
| 2696 |
|
| 2697 |
@item @code{TEXLIVE_PREFER_OWN} |
| 2698 |
@anchor{tlmgr @code{TEXLIVE_PREFER_OWN}} |
| 2699 |
|
| 2700 |
By default, compression and download programs provided by the system, |
| 2701 |
i.e., found along @code{PATH} are preferred over those shipped with TeX |
| 2702 |
Live. |
| 2703 |
|
| 2704 |
This can create problems with systems that are too old, and so can be |
| 2705 |
overridden by setting the environment variable @code{TEXLIVE_PREFER_OWN} to |
| 2706 |
1. In this case, executables shipped with TL will be preferred. |
| 2707 |
|
| 2708 |
Extra compression/download programs not provided by TL, such as gzip, |
| 2709 |
lwp, and curl, are still checked for on the system and used if |
| 2710 |
available, per the above. @code{TEXLIVE_PREFER_OWN} only applies when the |
| 2711 |
program being checked for is shipped with TL, namely the lz4 and |
| 2712 |
xz compressors and wget downloader. |
| 2713 |
|
| 2714 |
Exception: on Windows, the @code{tar.exe} shipped with TL is always used, |
| 2715 |
regardless of any setting. |
| 2716 |
|
| 2717 |
@end table |
| 2718 |
|
| 2719 |
@node tlmgr AUTHORS AND COPYRIGHT |
| 2720 |
@appendixsec AUTHORS AND COPYRIGHT |
| 2721 |
|
| 2722 |
This script and its documentation were written for the TeX Live |
| 2723 |
distribution (@url{https://tug.org/texlive}) and both are licensed under the |
| 2724 |
GNU General Public License Version 2 or later. |
| 2725 |
|
| 2726 |
$Id: tlmgr.pl 77655 2026-02-07 15:38:21Z karl $ |
| 2727 |
|