[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[c904794a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[f3e940f7] | 7 | <!ENTITY tl-installer-download-http "https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz">
|
---|
[c904794a] | 8 |
|
---|
| 9 | <!ENTITY tl-installer-download-ftp " ">
|
---|
[9167f8d] | 10 | <!ENTITY tl-installer-md5sum "cec36f23d7d4e1a4a2a90f77bad8e667">
|
---|
| 11 | <!ENTITY tl-installer-date "20230313"> <!-- in the directory name -->
|
---|
| 12 | <!ENTITY tl-installer-size "5.5 MB">
|
---|
[c904794a] | 13 |
|
---|
[9167f8d] | 14 | <!ENTITY tl-installer-buildsize "310 MB for basic TeX and latex, 7.9GB if everything is included">
|
---|
[c904794a] | 15 | <!ENTITY tl-installer-time "varies, depending on network speed and traffic">
|
---|
| 16 | ]>
|
---|
| 17 |
|
---|
| 18 | <sect1 id="tl-installer" xreflabel="install-tl-unx">
|
---|
| 19 | <?dbhtml filename="tl-installer.html"?>
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | <title>install-tl-unx</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="tl-installer">
|
---|
| 25 | <primary sortas="a-install-tl-unx">install-tl-unx</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to TeX Live and its installer</title>
|
---|
| 30 |
|
---|
[fa3edfef] | 31 | <para>
|
---|
| 32 | The <application>TeX Live</application> package is a comprehensive
|
---|
| 33 | TeX document production system. It includes TeX, LaTeX2e, ConTeXt,
|
---|
| 34 | Metafont, MetaPost, BibTeX and many other programs; an extensive
|
---|
| 35 | collection of macros, fonts and documentation; and support for
|
---|
| 36 | typesetting in many different scripts from around the world.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
| 39 | <para>
|
---|
| 40 | This page is for people who wish to use the binary installer to
|
---|
| 41 | provide the programs, the scripts, and a lot of supporting files and
|
---|
[27885e7] | 42 | documentation. The installer is updated frequently, so any published
|
---|
| 43 | md5sum will soon be out of date. Newer versions of the
|
---|
[fa3edfef] | 44 | installer are expected to work with these instructions, for so long as
|
---|
| 45 | they install to a
|
---|
| 46 | <filename class="directory">&texlive-year;/</filename> directory.
|
---|
| 47 | </para>
|
---|
[c904794a] | 48 |
|
---|
[150482f] | 49 | <para>
|
---|
| 50 | There are two reasons why you may wish to install the binaries in BLFS:
|
---|
| 51 | either you need a smaller install (e.g. at a minimum plain TeX without
|
---|
| 52 | LaTeX2e, ConTeXt, etc), or you wish to use <command>tlmgr</command> to
|
---|
| 53 | get updates whilst this version is supported (typically, until April of
|
---|
| 54 | the year after it was released). For the latter, you might prefer to
|
---|
| 55 | install in your <filename class="directory">/home</filename> directory
|
---|
| 56 | as an unprivileged user, and to then make corresponding changes to the
|
---|
| 57 | PATH in your <filename>~/.bashrc</filename> or equivalent.
|
---|
| 58 | </para>
|
---|
| 59 |
|
---|
[32bcdbf0] | 60 | <!-- editors: latex-test-20230819.tar.xz at ~/ken/tex-testfiles and the
|
---|
[caea737] | 61 | ABOUT.pdf now deal with specifying which collections are needed when using
|
---|
| 62 | binary texlive. Please do not sign off this package without at least
|
---|
[32bcdbf0] | 63 | testing asy to ensure that the symlinks are as needed. Plese also be aware
|
---|
| 64 | that removing a collection might leave huge backups in tlpkg/backups -->
|
---|
[4a37aa1] | 65 |
|
---|
| 66 | &lfs121_checked;
|
---|
[c904794a] | 67 |
|
---|
| 68 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 69 | <itemizedlist spacing="compact">
|
---|
| 70 | <listitem>
|
---|
[fa3edfef] | 71 | <para>
|
---|
| 72 | Download (HTTP): <ulink url="&tl-installer-download-http;"/>
|
---|
| 73 | </para>
|
---|
[c904794a] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
[fa3edfef] | 76 | <para>
|
---|
| 77 | Download (FTP): <ulink url="&tl-installer-download-ftp;"/>
|
---|
| 78 | </para>
|
---|
[c904794a] | 79 | </listitem>
|
---|
| 80 | <listitem>
|
---|
[fa3edfef] | 81 | <para>
|
---|
[27885e7] | 82 | <!--Download MD5 sum: &tl-installer-md5sum; (for &tl-installer-date;)-->
|
---|
| 83 | Download MD5 sum: Varies frequently
|
---|
[fa3edfef] | 84 | </para>
|
---|
[c904794a] | 85 | </listitem>
|
---|
| 86 | <listitem>
|
---|
[fa3edfef] | 87 | <para>
|
---|
| 88 | Download size: &tl-installer-size;
|
---|
| 89 | </para>
|
---|
[c904794a] | 90 | </listitem>
|
---|
| 91 | <listitem>
|
---|
[fa3edfef] | 92 | <para>
|
---|
| 93 | Estimated disk space required: &tl-installer-buildsize;
|
---|
| 94 | </para>
|
---|
[c904794a] | 95 | </listitem>
|
---|
| 96 | <listitem>
|
---|
[fa3edfef] | 97 | <para>
|
---|
| 98 | Estimated build time: &tl-installer-time;
|
---|
| 99 | </para>
|
---|
[c904794a] | 100 | </listitem>
|
---|
| 101 | </itemizedlist>
|
---|
| 102 |
|
---|
[5e61060f] | 103 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 104 | <para role="recommended">
|
---|
| 105 | <xref linkend="gnupg2"/> (to validate both the initial downloads, and also
|
---|
| 106 | any updates you might later make using <command>tlmgr</command>.)
|
---|
[396abe0] | 107 | <xref linkend="perl-libwww-perl"/> (to use a single connection to the server,
|
---|
| 108 | which will reduce its load and speed things up.)
|
---|
[5e61060f] | 109 | </para>
|
---|
| 110 |
|
---|
[c904794a] | 111 | <bridgehead renderas="sect4">Recommended (at runtime)</bridgehead>
|
---|
| 112 | <para role="recommended">
|
---|
[5e61060f] | 113 | The binaries are mostly linked to included static libraries or
|
---|
| 114 | general (LFS) system libraries, but a few of the programs
|
---|
| 115 | and several scripts will fail if the following packages are not present:
|
---|
[c904794a] | 116 | </para>
|
---|
[d7f0b08] | 117 | <para role="recommended">
|
---|
[8558044] | 118 | <xref role="runtime" linkend="gs"/> is dynamically loaded by
|
---|
[b517db8] | 119 | the external application <ulink url="https://dvisvgm.de/">dvisvgm</ulink>,
|
---|
[06fd9a2] | 120 | which is used by <application>asy</application> when that creates SVG
|
---|
| 121 | files.
|
---|
[c904794a] | 122 | </para>
|
---|
[d7f0b08] | 123 | <para role="recommended">
|
---|
[f5cdf41] | 124 | <xref role="runtime" linkend="xorg7-lib"/> and
|
---|
| 125 | <xref role="runtime" linkend="libxcb"/> are needed for inimf, mf,
|
---|
| 126 | pdfclose, pdfopen and xdvi-xaw. But if you are using asy, or using a
|
---|
| 127 | <application>TeX</application> engine to create a PDF file, you will
|
---|
[46fb0f9] | 128 | need <xref role="runtime" linkend="x-window-system"/> (for PDF files,
|
---|
[f5cdf41] | 129 | this is to support a PDF viewer of your choice, for example
|
---|
| 130 | <xref role="nodep" linkend="epdfview"/>).
|
---|
[8c1b9f7] | 131 | </para>
|
---|
[00a3154] | 132 | <!-- seems to not be needed in 2021
|
---|
[d7f0b08] | 133 | <para role="recommended">
|
---|
[666e811] | 134 | the optional non-wide-character ncurses library (for "some binary-only
|
---|
[c904794a] | 135 | application") from the bottom of the <application>Ncurses</application>
|
---|
[06fd9a2] | 136 | page in LFS is needed
|
---|
| 137 | for xindy.run which is used by <application>xindy</application>
|
---|
[00a3154] | 138 | </para> -->
|
---|
[d7f0b08] | 139 | <para role="recommended">
|
---|
[06fd9a2] | 140 | The binary version of <application>asy</application> needs
|
---|
| 141 | <xref linkend="freeglut"/>.
|
---|
[8fc0db78] | 142 | </para>
|
---|
[f65def9] | 143 | <para> <!-- needed, but cannot recommend :-) -->
|
---|
| 144 | The binary version of asy is linked to libGLX.so.0 from
|
---|
| 145 | <ulink url="https://gitlab.freedesktop.org/glvnd/libglvnd/">libglvnd</ulink>,
|
---|
| 146 | but installing that will break future updates of BLFS packages such as
|
---|
| 147 | <xref linkend="mesa"/>. Work around that by creating a symlink as the
|
---|
| 148 | <systemitem class="username">root</systemitem> user:
|
---|
| 149 | </para>
|
---|
| 150 | <screen role="nodump"><userinput>ln -sv libGL.so.1 /usr/lib/libGLX.so.0</userinput></screen>
|
---|
[3a10692] | 151 | <para role="recommended">
|
---|
| 152 | The binary versions of <application>biber</application> and
|
---|
[e77e6329] | 153 | <application>xindy</application> are linked to <filename
|
---|
| 154 | class='libraryfile'>libcrypt.so.1</filename> from old versions
|
---|
| 155 | of <application>glibc</application>. To use these two applications, follow the
|
---|
[3a10692] | 156 | Note about binary-only applications in <application>libxcrypt</application> in
|
---|
[e77e6329] | 157 | LFS to install the ABI version 1 crypt library.
|
---|
[3a10692] | 158 | </para>
|
---|
[fa3edfef] | 159 | <note>
|
---|
| 160 | <para>
|
---|
| 161 | As always with contributed binary software, it is possible that the
|
---|
| 162 | required dependencies may change when the installer is updated. In
|
---|
| 163 | particular, these dependencies have only been checked on x86_64.
|
---|
| 164 | </para>
|
---|
| 165 | </note>
|
---|
[f594857] | 166 | <!-- text for runtime deps, shared with texlive -->
|
---|
[d7f0b08] | 167 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 168 | href="../../xincludes/texruntime.xml"/>
|
---|
[c904794a] | 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="installation">
|
---|
| 173 | <title>Binary Installation of TeX Live</title>
|
---|
| 174 |
|
---|
[8a4cd0a] | 175 | <para>
|
---|
[fa3edfef] | 176 | The <application>TeX Live</application> set of programs with its
|
---|
| 177 | supporting documents, fonts, and utilities is very large. The upstream
|
---|
| 178 | maintainers recommend placing all files in a single directory structure.
|
---|
| 179 | BLFS recommends <filename class='directory'>/opt/texlive</filename>.
|
---|
[8a4cd0a] | 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <para>
|
---|
[fa3edfef] | 183 | As with any other package, unpack the installer and change into its
|
---|
| 184 | directory, <filename class='directory'>
|
---|
| 185 | install-tl-<CCYYMMDD></filename>.
|
---|
| 186 | This directory name changes when the installer is updated, so replace
|
---|
| 187 | <CCYYMMDD> by the correct directory name.
|
---|
[8a4cd0a] | 188 | </para>
|
---|
[fa3edfef] | 189 |
|
---|
[9eed74c] | 190 | <warning>
|
---|
| 191 | <para>
|
---|
| 192 | If you have installed any of the luatex programs (luatex, luahbtex,
|
---|
| 193 | luajitex, luajithbtex) or ConTeXt with the luametatex backend there
|
---|
| 194 | was a security issue fixed by the introduction of luatex v1.17.0.
|
---|
| 195 | You should check the version with 'luatex --version' and if it is
|
---|
| 196 | less than 1.17.0 you can use tlmgr to update.
|
---|
| 197 | </para>
|
---|
| 198 | </warning>
|
---|
| 199 |
|
---|
[fa3edfef] | 200 | <note>
|
---|
| 201 | <para>
|
---|
| 202 | The distribution binaries installed below may use static linking
|
---|
| 203 | for general linux system libraries. Additional libraries or
|
---|
| 204 | interpreters as specified in the dependencies section do not need to
|
---|
| 205 | be present during the install, but the programs that need them will
|
---|
| 206 | not run until their specific dependencies have been installed.
|
---|
| 207 | </para>
|
---|
| 208 |
|
---|
| 209 | <!-- please keep something like this in the future -->
|
---|
| 210 | <para>
|
---|
| 211 | With all contributed binary software, there may be a mismatch between
|
---|
| 212 | the builder's toolchain and your hardware. In most of TeX this will
|
---|
| 213 | probably not matter, but in uncommon corner cases you might hit
|
---|
[ed3707e] | 214 | problems. For example, if your x86_64 processor does not support 3dnowext or
|
---|
[fa3edfef] | 215 | 3dnow, the 2014-06-28 binary failed in conTeXt when running LuaTeX,
|
---|
| 216 | although lualatex worked, as did the i686 binaries on the same
|
---|
| 217 | machine. In such cases, the easiest solution is to install texlive
|
---|
| 218 | from source. Similarly, the x86_64 binary version of
|
---|
| 219 | <command>asy</command> runs very slowly when creating 3-D diagrams.
|
---|
| 220 | </para>
|
---|
[8a4cd0a] | 221 | </note>
|
---|
[c904794a] | 222 |
|
---|
[fa3edfef] | 223 | <para>
|
---|
| 224 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 225 | </para>
|
---|
[c904794a] | 226 |
|
---|
[db39404] | 227 | <screen role="root"><userinput>TEXLIVE_INSTALL_PREFIX=/opt/texlive ./install-tl</userinput></screen>
|
---|
[c904794a] | 228 |
|
---|
[fa3edfef] | 229 | <para>
|
---|
| 230 | This command is interactive and allows selection or modification of
|
---|
| 231 | platform, packages, directories, and other options. The full installation
|
---|
| 232 | scheme will require about 4.9 gigabytes of disk space. The time to
|
---|
| 233 | complete the download will depend on your internet connection speed
|
---|
| 234 | and the number of packages selected.
|
---|
| 235 | </para>
|
---|
[c904794a] | 236 |
|
---|
[00a3154] | 237 | <para>
|
---|
[342d139a] | 238 | It has been established by Debian that the <command>python</command>
|
---|
[00a3154] | 239 | scripts in <filename class="directory">latex-make</filename> will work
|
---|
| 240 | with <command>python3</command>, so update them to invoke that by running
|
---|
| 241 | the following command as the <systemitem class="username">root</systemitem>
|
---|
| 242 | user:
|
---|
| 243 | </para>
|
---|
| 244 |
|
---|
| 245 | <screen role="root"><userinput>for F in /opt/texlive/&texlive-year;/texmf-dist/scripts/latex-make/*.py ; do
|
---|
| 246 | test -f $F && sed -i 's%/usr/bin/env python%/usr/bin/python3%' $F || true
|
---|
| 247 | done
|
---|
| 248 | </userinput></screen>
|
---|
| 249 |
|
---|
[c904794a] | 250 | </sect2>
|
---|
| 251 |
|
---|
[8fc0db78] | 252 | <sect2 role="commands">
|
---|
| 253 | <title>Command Explanations</title>
|
---|
| 254 |
|
---|
[00a3154] | 255 | <para>
|
---|
| 256 | <command>test -f $F && sed ...</command>: in a small install these
|
---|
| 257 | files might not be present, so test if they exist and if not return 'true'
|
---|
| 258 | to avoid any error if this command has been copied into one of your own install scripts.
|
---|
| 259 | </para>
|
---|
| 260 |
|
---|
[8fc0db78] | 261 | <para>
|
---|
| 262 | <option>./install-tl --location
|
---|
| 263 | http://mirror.aut.ac.nz/CTAN/systems/texlive/tlnet/</option>: use a
|
---|
[ed3707e] | 264 | variation of this if you wish to use a different mirror, for example, because
|
---|
[8fc0db78] | 265 | you are in New Zealand but the installer chooses to use an Australian
|
---|
[75b1a338] | 266 | mirror. The list of mirrors is at
|
---|
| 267 | <ulink url='https://ctan.org/mirrors/'/>.
|
---|
[8fc0db78] | 268 | </para>
|
---|
| 269 |
|
---|
| 270 | </sect2>
|
---|
| 271 |
|
---|
[c904794a] | 272 | <sect2 role="content">
|
---|
| 273 | <title>Contents</title>
|
---|
| 274 |
|
---|
| 275 | <segmentedlist>
|
---|
| 276 | <segtitle>Installed Programs</segtitle>
|
---|
| 277 | <segtitle>Installed Libraries</segtitle>
|
---|
| 278 | <segtitle>Installed Directories</segtitle>
|
---|
| 279 |
|
---|
| 280 | <seglistitem>
|
---|
| 281 | <seg>Over 300 binaries and symlinks to scripts</seg>
|
---|
| 282 | <seg>None</seg>
|
---|
| 283 | <seg>/opt/texlive</seg>
|
---|
| 284 | </seglistitem>
|
---|
| 285 | </segmentedlist>
|
---|
| 286 |
|
---|
| 287 | <variablelist>
|
---|
| 288 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 289 | <?dbfo list-presentation="list"?>
|
---|
| 290 | <?dbhtml list-presentation="table"?>
|
---|
| 291 |
|
---|
| 292 | <varlistentry id="tl-installer-programs">
|
---|
| 293 | <term><command>TeX programs</command></term>
|
---|
| 294 | <listitem>
|
---|
[666e811] | 295 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 296 | href="../../xincludes/texprogs.xml"/>
|
---|
[c904794a] | 297 | <indexterm zone="tl-installer tl-installer-programs">
|
---|
| 298 | <primary sortas="b-tl-installer-programs">TeX Live programs</primary>
|
---|
| 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
| 302 | </variablelist>
|
---|
| 303 |
|
---|
| 304 | </sect2>
|
---|
| 305 |
|
---|
| 306 | </sect1>
|
---|