LoginSignup
6
7

More than 5 years have passed since last update.

過去にリリースされたTeX Live YYYYをインストールしてみよう!

Last updated at Posted at 2015-05-11

みなさん、#テフライブ! していますか?

テフライブ!を毎日シャンシャン♪と楽しんでいると、たまに過去にリリースされたテフライブ!が懐かしく、思わず振り返りたくなります♪ 1

TeX Live historicからTeX Live YYYYの最終更新状態を取得しよう

TeX Live historic ftp://tug.org/texlive/historic/ では、各バージョンYYYYに対して、過去にリリースされたTeX Live YYYYにおけるfrozenの状態(YYYYの最終更新状態)で補完されています。現時点(TeX Live 2015/pretest)において、TeX Live 1996からTeX Live 20142まで補完されています。

各バージョンTeX Live YYYYに対する最終更新状態の場所

TeX Live historic ftp://tug.org/texlive/historic/ の各バージョンYYYYディレクトリをそれぞれ潜ると、YYYY frozenに対するtlnetの最終更新状態を補完している場所が異なっている場合があります。

  • TeX Live 2009 frozen: 2009/tlnet/
  • TeX Live 2010--2013 frozen: YYYY/tlnet-final/

例:TeX Live 2010 frozenをお好みの構成で入れてみる

インストール構成

実際にTeX Live historicを使い、TeX Live 2010をインストールしてみます。この例では、以下の構成でTeX Live 2010をインストールします。

  • TeX Live 2010 frozen
  • Mac OS X
  • OmegaとXeTeX、いくつかのフォント関連補助ソフト
  • インストール場所3/opt/texlive/2010
  • 各プログラムやパッケージに付属しているマニュアルやソースを入れない

インストーラーを起動

TeX Live 2010 frozenのインストーラーを取得し、インストーラーを起動する直前までもっていきます。

$ wget -N ftp://tug.org/texlive/historic/2010/tlnet-final/install-tl-unx.tar.gz
$ tar -xf install-tl-unx.tar.gz 
$ cd install-tl-20110526/

実際に、インストーラーinstall-tlを実行します。今回、TeX Live 2010 frozenのtlnetリポジトリとして、TeX Live historicに補完されている ftp://tug.org/texlive/historic/2010/tlnet-final/ を利用しますので、その場所を -repository オプションを用いて指定します! ここがテストにでます♪

$ sudo ./install-tl -repository ftp://tug.org/texlive/historic/2010/tlnet-final/
Password:
Installing TeX Live 2010 from: ftp://tug.org/texlive/historic/2010/tlnet-final
Platform: universal-darwin => 'universal binaries for MacOSX/Darwin'
Distribution: net  (downloading)
Using URL: ftp://tug.org/texlive/historic/2010/tlnet-final
Directory for temporary files: /tmp
Loading ftp://tug.org/texlive/historic/2010/tlnet-final/tlpkg/texlive.tlpdb

/opt/texlive/以下に他のYYYYなどのパスが存在した場合、以下のように気を遣ってくれますが、ここでは n を打って拒否りましょう!

An old installation of TeX Live has been found in /opt/texlive/2015

If you want the selection of collections and various options being taken
over press `y', otherwise anything else.

Import settings from previous TeX Live installation: (y/n): n

インストーラーの遷移

インストーラーに従い、希望している構成を与えていきます。以下にその遷移を簡単に示します4

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

=======> Note: Letters/digits in <angle brackets> indicate menu items <=======
=======>       for commands or configurable options                   <=======

 Detected platform: universal binaries for MacOSX/Darwin

 <B> platforms: 1 out of 19

 <S> installation scheme (scheme-full)
     84 collections out of 85, disk space required: 2667 MB

 Customizing installation scheme:
   <C> standard collections
   <L> language collections

 <D> directories:
   TEXDIR (the main TeX directory):
     /usr/local/texlive/2010
   TEXMFLOCAL (directory for site-wide local files):
     /usr/local/texlive/texmf-local
   TEXMFSYSVAR (directory for variable and automatically generated data):
     /usr/local/texlive/2010/texmf-var
   TEXMFSYSCONFIG (directory for local config):
     /usr/local/texlive/2010/texmf-config
   TEXMFVAR (personal directory for variable and automatically generated data):
     ~/.texlive2010/texmf-var
   TEXMFCONFIG (personal directory for local config):
     ~/.texlive2010/texmf-config
   TEXMFHOME (directory for user-specific files):
     ~/texmf

 <O> options:
   [ ] use letter size instead of A4 by default
   [X] allow execution of restricted list of programs via \write18
   [X] create all format files
   [X] install macro/font doc tree
   [X] install macro/font source tree

 <V> set up for portable installation

Actions:
 <I> start installation to hard disk
 <H> help
 <Q> quit

Enter command: 

最小構成を選んでおく

標準で最大構成全部入りである scheme-full が選択されています。ここでは、一旦、最小構成としてminimal scheme (plain only)を選択します。

===============================================================================
Select scheme:

 a [ ] basic scheme (plain and LaTeX)
 b [ ] ConTeXt scheme
 c [ ] full scheme (everything)
 d [ ] GUST TeX Live scheme
 e [ ] medium scheme (plain, latex, recommended packages, some languages)
 f [X] minimal scheme (plain only)
 g [ ] teTeX scheme (more than medium, but nowhere near full)
 h [ ] XML scheme
 i [ ] custom selection of collections

Actions: (disk space required: 82 MB)
 <R> return to main menu
 <Q> quit

Enter letter to select scheme: 

必要なパッケージ集を選択する

===============================================================================
Select collections:

 a [X] Essential programs and files      o [X] Basic LaTeX packages            
 b [ ] Extra BibTeX styles               p [ ] LaTeX supplementary packages    
 c [ ] TeX auxiliary programs            s [ ] LaTeX recommended packages      
 d [ ] ConTeXt format                    t [ ] LuaTeX packages                 
 e [ ] TeX Live documentation            u [ ] Advanced math typesetting       
 f [ ] Extra fonts                       v [ ] Music typesetting               
 g [ ] Recommended fonts                 w [X] Omega                           
 h [X] TeX and Outline font utilities    x [ ] Graphics packages and programs  
 i [ ] Extra formats                     y [ ] PSTricks packages               
 j [ ] Games typesetting                 z [ ] GNU Texinfo                     
 k [ ] Extra generic packages            A [ ] The TeXworks Editor             
 l [ ] Recommended generic packages      B [ ] Windows support programs        
 m [ ] HTML/SGML/XML support             C [X] XeTeX packages                  
 n [ ] Humanities packages              
 D [ ] MetaPost (and Metafont) drawing packages
 E [ ] Plain TeX supplementary packages
 F [ ] Support for publishers, theses, standards, conferences, etc.
 G [ ] Typesetting for natural and computer sciences

Actions: (disk space required: 297 MB)
 <-> deselect all
 <+> select all
 <R> return to main menu
 <Q> quit

Enter letter(s) to select collection(s): 

TeX Live YYYYのインストール場所を変更する

1 を選んで、YYYY を入れる場所を与えると、他のsystem wide なtexmf treesの変数 TEXMFLOCAL, TeXMFSYSVAR, TEXMFSYSCONFIG もそれに追従します。

===============================================================================
Directories setup:

 <1> TEXDIR:       /usr/local/texlive/2010
     support tree: /usr/local/texlive/2010/texmf

 <2> TEXMFLOCAL:     /usr/local/texlive/texmf-local
 <3> TEXMFSYSVAR:    /usr/local/texlive/2010/texmf-var
 <4> TEXMFSYSCONFIG: /usr/local/texlive/2010/texmf-config

 <5> TEXMFVAR:       ~/.texlive2010/texmf-var
 <6> TEXMFCONFIG:    ~/.texlive2010/texmf-config
 <7> TEXMFHOME:      ~/texmf

 Note: ~ will expand to $HOME (or to %USERPROFILE% on Windows)

Actions:
 <R> return to main menu
 <Q> quit

Enter command: 1
New value for TEXDIR [/usr/local/texlive/2010]: /opt/texlive/2010

こんな感じになります。

===============================================================================
Directories setup:

 <1> TEXDIR:       /opt/texlive/2010
     support tree: /opt/texlive/2010/texmf

 <2> TEXMFLOCAL:     /opt/texlive/texmf-local
 <3> TEXMFSYSVAR:    /opt/texlive/2010/texmf-var
 <4> TEXMFSYSCONFIG: /opt/texlive/2010/texmf-config

 <5> TEXMFVAR:       ~/.texlive2010/texmf-var
 <6> TEXMFCONFIG:    ~/.texlive2010/texmf-config
 <7> TEXMFHOME:      ~/texmf

 Note: ~ will expand to $HOME (or to %USERPROFILE% on Windows)

Actions:
 <R> return to main menu
 <Q> quit

Enter command: r

必要に応じて、いくつかオプションを与える

今回は、 D, E に対するチェック印 X をはずして、インストールされるプログラムやパッケージに対するマニュアルやソースをインストールしないようにしました。

===============================================================================
Options setup:

 <P> use letter size instead of A4 by default: [ ]
 <E> execution of restricted list of programs: [X]
 <F> create format files:                      [X]
 <D> install font/macro doc tree:              [ ]
 <S> install font/macro source tree:           [ ]
 <L> create symlinks in standard directories:  [ ]
            binaries to: 
            manpages to: 
                info to: 

Actions: (disk space required: 163 MB)
 <R> return to main menu
 <Q> quit

Enter command: 

指定した構成でインストールを開始

最終確認を終えたら、I からインストールを開始します。現時点において、インターネット上で日本から ftp.tug.org が遠いので、インストール完了時間がそれなりにかかります。The TeXbookでも眺めながら、このインストール完了を気長に待つよりほかありません♪5

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

=======> Note: Letters/digits in <angle brackets> indicate menu items <=======
=======>       for commands or configurable options                   <=======

 Detected platform: universal binaries for MacOSX/Darwin

 <B> platforms: 2 out of 19

 <S> installation scheme (scheme-custom)
     5 collections out of 85, disk space required: 163 MB

 Customizing installation scheme:
   <C> standard collections
   <L> language collections
     !! No language specific collection selected!
     !! If you only write American English documents that is fine!

 <D> directories:
   TEXDIR (the main TeX directory):
     /opt/texlive/2010
   TEXMFLOCAL (directory for site-wide local files):
     /opt/texlive/texmf-local
   TEXMFSYSVAR (directory for variable and automatically generated data):
     /opt/texlive/2010/texmf-var
   TEXMFSYSCONFIG (directory for local config):
     /opt/texlive/2010/texmf-config
   TEXMFVAR (personal directory for variable and automatically generated data):
     ~/.texlive2010/texmf-var
   TEXMFCONFIG (personal directory for local config):
     ~/.texlive2010/texmf-config
   TEXMFHOME (directory for user-specific files):
     ~/texmf

 <O> options:
   [ ] use letter size instead of A4 by default
   [X] allow execution of restricted list of programs via \write18
   [X] create all format files
   [ ] install macro/font doc tree
   [ ] install macro/font source tree

 <V> set up for portable installation

Actions:
 <I> start installation to hard disk
 <H> help
 <Q> quit

Enter command: I
Installing to: /opt/texlive/2010
Installing [001/184, time/total: ??:??/??:??]: accfonts [22k]
(snip)
Installing [184/184, time/total: 13:31/13:31]: xunicode [17k]
Time used for installing the packages: 13:34
running mktexlsr /opt/texlive/2010/texmf-dist /opt/texlive/2010/texmf
mktexlsr: Updating /opt/texlive/2010/texmf-dist/ls-R... 
mktexlsr: Updating /opt/texlive/2010/texmf/ls-R... 
mktexlsr: Done.
writing fmtutil.cnf data to /opt/texlive/2010/texmf-var/web2c/fmtutil.cnf
writing updmap.cfg to /opt/texlive/2010/texmf-config/web2c/updmap.cfg
writing language.dat data to /opt/texlive/2010/texmf-var/tex/generic/config/language.dat
writing language.def data to /opt/texlive/2010/texmf-var/tex/generic/config/language.def
writing language.dat.lua data to /opt/texlive/2010/texmf-var/tex/generic/config/language.dat.lua
running mktexlsr /opt/texlive/2010/texmf-var /opt/texlive/2010/texmf-config
mktexlsr: Updating /opt/texlive/2010/texmf-var/ls-R... 
mktexlsr: Updating /opt/texlive/2010/texmf-config/ls-R... 
mktexlsr: Done.
running updmap-sys...done
re-running mktexlsr /opt/texlive/2010/texmf-var /opt/texlive/2010/texmf-config
mktexlsr: Updating /opt/texlive/2010/texmf-var/ls-R... 
mktexlsr: Updating /opt/texlive/2010/texmf-config/ls-R... 
mktexlsr: Done.
pre-generating all format files (fmtutil-sys --all), be patient...done
running package specific postactions
finished with package specific postactions

 See
   /opt/texlive/2010/index.html
 for links to documentation.  The TeX Live web site (http://tug.org/texlive/)
 contains updates and corrections.

 TeX Live is a joint project of the TeX user groups around the world;
 please consider supporting it by joining the group best for you. The
 list of groups is available on the web at http://tug.org/usergroups.html.

 Add /opt/texlive/2010/texmf/doc/man to MANPATH, if not dynamically determined.
 Add /opt/texlive/2010/texmf/doc/info to INFOPATH.

 Most importantly, add /opt/texlive/2010/bin/universal-darwin
 to your PATH for current and future sessions.

 ----------------------------------------------------------------------
 The following environment variables contain the string "tex"
 (case-independent).  If you're doing anything but adding personal
 directories to the system paths, they may well cause trouble with
 some parts of running TeX.  If you encounter problems, try unsetting
 them.  Please ignore any spurious matches that are unrelated to TeX.

    SUDO_COMMAND=./install-tl -repository ftp://tug.org/texlive/historic/2010/tlnet-final/
    __CF_USER_TEXT_ENCODING=0x0:1:14
 ----------------------------------------------------------------------

 Welcome to TeX Live!
Logfile: /opt/texlive/2010/install-tl.log

無事にインストールが終わったら、あとは Happy TeXing! ですよ♪

[おまけという名の本題]tlmgr経由でTeX Live 2013の構成のまま、TeX Live 2013からTeX Live 2014 frozen, 2015 pretestへ更新されちゃった件

To be continued... とりあえず、今日のお仕事しまぁす♪

続きを書きました! → tlmgr経由でTeX Live 2013の構成のまま、TeX Live 2013からTeX Live 2014 frozen, 2015 pretestへ更新されちゃった件


  1. そんなときは、あるプログラムやパッケージがどんな挙動していたか、検証する場合ばっかりなんですがーーー。 

  2. 現時点においてTeX Live 2014 frozenですが、tlnet-finalのディレクトリが存在していません。それゆえ、現時点においてTeX Live 2014 frozenのtlnetを得るためには、最寄りのCTAN mirrors内に同期されているtlnetを参照するのが最善です。 

  3. インストール場所は、律儀に /some/where/texlive/YYYY とする必要もなく、例えば /some/where/orenotexlive/oreoreYYYYware でも構わない。 

  4. インストールプロファイルを用いると、インストール処理も自動化できますが、ここではインストールプロファイルの説明を省略します。 

  5. 現時点において、日本国内、または、日本から近い場所にTeX Live historicのミラーもしくは補完が存在しません。それゆえ、お手元にtlnetのlocal mirrorをお持ちになることをオススメします。また、わたし個人的に、TeX Live historicを近い将来日本国内に作りたいと思っています。 

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7