[Tex/LaTex] Latexmk missing in TeXlive 2012


I would like to use latexmk tools together with TeX Live 2012, but I could not find latexmk. Is it extra tools, or did TeX Live stop supporting it?

In my case, I have OS Ubuntu 12.10.

Best Answer

Latexmk is a Perl script, and so can be installed on any system featuring a Perl set up: certainly Ubuntu has this! The latest code can be obtained from CTAN, and there are installation instructions there. Broadly, what you need to do is

  1. Put the latexmk.pl where the 'system can find it' (~/bin is common for 'personal' scripts, or /usr/local/bin if you have root privileges and want a system-wide install).

  2. Rename this file as just latexmk

  3. Mark it as executable (chmod 777 latexmk)

There is a bit more detail in the docs for the script, but that should hopefully get you started.

Note that the 'recommended' way to have an up-to-date TeX system on Linux is to use the 'vanilla' TeX Live from TUG: How to install "vanilla" TeXLive on Debian or Ubuntu?.