3 Installation and use under Unix

You can use the TeX Live CD-ROM in three ways:

  1. You can mount the CD-ROM on your file system, adjust your PATH, and run everything off the CD-ROM; this takes very little disk space, and gives you immediate access to everything on the CD-ROM; although the performance will not be optimal, it is perfectly acceptable on, for instance, PCs running Linux.
  2. You can install all or part of the system to your local hard disk; this is the best method for many people, if they have enough disk space to spare (a minimum of about 10 megabytes, or 100 megabytes for a recommended good-sized system).
  3. You can install selected packages to work either with your existing TeX system or a TeX Live system you installed earlier.

Each of these methods is described in more detail in the following sections.


Warning: This CD-ROM is in ISO 9660 (High Sierra) format, with Rock Ridge and Joliet extensions. In order to take full advantage of the CD-ROM on a Unix system, your system needs to be able to use the Rock Ridge extensions. Please consult the documentation for your mount command to see if it is possible. If you have several different machines on a local network, see if you can mount the CD-ROM on one which does support Rock Ridge, and use this with the others.

Linux, FreeBSD, Sun, SGI and DEC Alpha systems should be able to use the CD-ROM with no problems. We would appreciate receiving detailed advice from other system users who also succeed, for future versions of this documentation.

The discussion below about installation assumes you have been able to mount the CD-ROM with full Rock Ridge compatibility.


3.1 Running TeX Live from the CD-ROM

The organisation of Web2c means that you can run programs simply by adding the appropriate directory under bin on the CD-ROM to your PATH, and the support files will all be found with no further ado. The following shows the list of available systems and the corresponding directories.

DEC Alpha (3.2 and 4.0)
alpha-osf3.2
alpha-osf4.0
Amiga
m68000-amigaos2.1
HP9000 HPUX 10.10
hppa11-hpux10.10
Linux (on Intel Pentium)
i386-linux
SGI IRIX (5.3 and 6.2)
mips-irix5.3
mips-irix6.2
IBM RS 6000 AIX (3.2.5 and 4.1.1)
rs6000-aix3.2.5
rs6000-aix4.1.1
Sun Sparc Sunos 4.1.3
sparc-sunos4.1.3
Sun Sparc Solaris (2.5.1 and 2.6)
sparc-solaris2.5.1
sparc-solaris2.6
Windows 95 or NT (Intel machines)
win32

You may worry that when you subsequently make fonts or change configuration, things will go wrong because you cannot change files on the CD-ROM. However, you can maintain a parallel, writeable, TeX tree on your hard disk; this is searched before the main tree on the CD-ROM. The default location is /usr/TeX.local, but you can override this by setting the TEXMFLOCAL environment variable.

Thus sh or bash users on an Intel PC running Linux can mount the TeX Live CD-ROM on /cdrom by issuing the command:


>> mount -t iso9660 /dev/cdrom /cdrom
Then they should include the directory containing the binaries for the given architecture into the search path by updating the PATH variable.

  PATH=/cdrom/bin/i386-linux:$PATH

  export PATH

For convenience, these statements can also be entered into the .profile script.

If in doubt, ask your local system support guru to help you work out how to mount your CD-ROM or which directory to use for your system.

Appropriate support files will be installed on your hard disk the first time you need them. It is a good idea to immediately run the texconfig script to initialize things, and check it all works.

3.2 Installing TeX Live to a hard disk

All of the necessary steps to install all or part of the distribution on your hard disk are achieved by mounting the CD-ROM, changing to the top-level directory, and typing:


>> sh install-cd.sh
(On some Unix systems, you may need to use sh5 or bsh.) This script works by accessing lists of collections and packages from the CD-ROM, and trying to guess what sort of computer system you are on. It should start by displaying the following:

    Initializing collections... Done.

    Counting selected collections... Done.

    Calculating disk space requirements for

                    collections...Done.

    Initializing system packages... Done.

It will then show the main control screen (Figure 1(a)), which lets you change four things:
  1. the type of system you are on, or want to install for;
  2. the collections you want to install, at the basic, recommended or other level;
  3. the location on your hard disk to put the files;
  4. some runtime behaviour features.

You choose options by typing a letter or number and pressing `return'. In the example, a Linux ELF system has been detected, the default of all collections to recommended level has been chosen, and the default installation directory is /usr/local; note that the disk space required for the current installation configuration is also displayed. If you make a suggested setup, you need about 100 megabytes of disk free; however, the basic setup will only take about 10 megabytes, and you can enhance it with selected packages as you need them.

Under the directory you choose for installation, the installation script will put the binaries in a subdirectory of bin, and the support tree in texmf.


  ===================> TeX Live installation procedure <==================

  

  ===> Note: Letters/digits in <angle brackets> indicate menu items <===

  ===>       for commands or configurable options                   <===

  

      Proposed platform: Intel x86 with Linux (ELF)

      <P> over-ride system detection and choose platform

  

      <C> collections:    23 out of 33, disk space required: 176108 kB

      <S> systems:         1 out of 13, disk space required:   6359 kB

                                  total disk space required: 182467 kB

      <D> directories:

            TEXMFMAIN  = /usr/TeX

              (where the main TeX system will live)

            TEXMFLOCAL = /var/TeX

              (where you will install your own styles and site changes)

  

      <O> options:

            [ ] alternate directory for automatically generated fonts

                            ()

            [ ] create symlinks in standard directories

  

      Other commands:

            <I> start installation,  <H> help,  <Q> quit

(a) Main control screen

  Current collections setup:           total size : 171901 kB

  =============================================================

          name      selection         size

    <1>   ams       [recommended]     6359 kB

    <2>   bibtex    [recommended]     6584 kB

    <3>   doc       [recommended]    26531 kB

    <4>   dvips     [recommended]      563 kB

    <5>   fonts     [recommended]    21862 kB

    <6>   formats   [recommended]     1003 kB

    <7>   generic   [recommended]      501 kB

    <8>   graphics  [recommended]    10373 kB

    <9>   lang      [recommended]     3287 kB

    <W>   metapost  [recommended]     1280 kB

    <X>   latex     [recommended]    28333 kB

    <Y>   plain     [recommended]      756 kB

    <Z>   texlive   [recommended]    56523 kB

                             SUM:   163955 kB

  ==================================================

    global commands: select <n>one / <b>asic / r<e>commended / <a>ll

                     for all collections

    <R>   return to platform menu

    <Q>   quit

  Enter command to modify current selection:

(b) Selecting collections

Figure 1Examples of screens used by the installation script


  Collection: Fonts

  ====================================================

  Fonts, including metrics, virtual fonts and sources

  ====================================================

    <N>  no packages

    <B>  basic packages                 [  2007 kB]

    <E>  basic + recommended packages   [ 21862 kB]

    <A>  all packages                   [ 34303 kB]

  ====================================================

    <R>   return to collection menu

    <Q>   quit

  Enter command:

(c) Customizing a collection

Figure 1Examples of screens used by the installation script (contd.)

The options item lets you decide whether to make new fonts be created in another location (if you want the main package mounted read-only for most users), and whether to make symbolic links for the man and GNU info pages in the `standard' locations.

When you choose <C> for `collections', you will see the display of available collections, the level of installation selected, and the disk space required (Figure 1(b)). You can set alternative levels of installation for each collection, ranging from none to all. You can either set this for all collections at once, or choose a particular collection and set its level (Figure 1(c)).

When you are finished, return to the main screen, and ask the installation to start. It will take each of the collections and systems that you requested, consult the list of files on the CD-ROM, and build a master list of files to transfer. These will then be copied to your hard disk. If you installed a system, an initialization sequence is now run (creating format files, etc.). When this has finished, all you need do is add the correct subdirectory of bin in the TeX installation to your path, and start using TeX. If you want, you can move the binaries up one level, e.g. from /usr/local/bin/alpha-osf3.2 to /usr/local/bin; if you do this, however, you must edit texmf/web2c/texmf.cnf (see Appendix A) and change line 50:

    TEXMFMAIN = $SELFAUTOPARENT

to

    TEXMFMAIN = $SELFAUTODIR

If you move the binaries to another directory tree entirely, you need to edit TEXMFMAIN to specify the support tree explicitly, and set TEXMFCNF in your environment to $TEXMFMAIN/texmf/web2c.

3.3 Installing individual packages from TeX Live to a hard disk

You may want to use the TeX Live CD-ROM to either update an existing setup, or add features to an earlier installation from the CD-ROM. The main installation program is intended for the first time only, and subsequently you should use the install-pkg.sh script on the CD-ROM. Run this by mounting the CD-ROM, changing to the mounted directory, and typing


>> sh install-pkg.sh options

The script supports nine options; the first four let you set the individual package you want to install, the whole collection (i.e., ams2), the name of the mounted CD-ROM directory, and the name of the directory containing the list files (normally these latter two will be set automatically):

--package=name
--collection=name
--cddir=name
--listdir=name

What actually happens is controlled by four more switches; the first two allow you to exclude documentation or source files from the installation, the third stops the default action of running mktexlsr on completion to rebuild the file database, and the last does nothing but list the files that would be installed:

--nodoc
--nosrc
--nohash
--listonly

Finally, you can specify that, instead of installing the files, the script should make a tar archive in a specified location:

--archive=name

Thus, if we simply wanted to see the files that make up the package fancyhdr before we installed it, our command and output would be as follows:


>> sh install-pkg.sh --package=fancyhdr --listonly
texmf/doc/latex/fancyhdr/fancyhdr.dvi
texmf/doc/latex/fancyhdr/fancyhdr.tex
texmf/lists/latex3/fancyhdr
texmf/source/latex/fancyhdr/README
texmf/source/latex/fancyhdr/fancyheadings.new
texmf/tex/latex/fancyhdr/extramarks.sty
texmf/tex/latex/fancyhdr/fancyhdr.sty
texmf/tex/latex/fancyhdr/fixmarks.sty
Other examples of usage are:

3.4 The texconfig program

After the installation program has copied all files to their final locations, you can use a program called texconfig that allows you to configure the system to fit your local needs. This can be called at any other time to change your setup, with a full-screen (which requires the dialog program) or command-line interface. It should be used for all maintenance, such as changes of installed printers, or rebuilding the file database. Both modes have help text to guide you through the facilities.