TeXLive and Linux

Fedora does not always include the latest version of TeXLive, which is currently version 2016.

In order to give Linux users access to the latest version, TeXLive 2016 has been installed in /usr/local and is available for all Linux systems. You are strongly encouraged to change to using the latest version as it contains many fixes to the older version available in Fedora and is regularly updated.

Using TeXLive 2016
To use the latest version of TeX you will need to add /usr/local/texbin to the beginning of your path, or at least before /usr/bin and /bin.

Help with paths
Before either testing this version or using the new version permanently you need to know which shell you are using. The command

echo $SHELL

should produce one of


The following instructions show how to test this and how to change your path permanently to use TeXLive 2016.

Changing your path temporarily
These changes to your path will only last while your session is active. When you log out the changes will disappear.

If you are using /bin/bash use the command

export PATH=/usr/local/texbin:$PATH

If you are using /bin/(t)csh

set path=(/usr/local/texbin $path)

If you are using /bin/ksh


In all cases the version of TeX that you will use can be checked with

pdflatex --version

If you are using the latest version from /usr/local you should see
pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016)
kpathsea version 6.2.2
Copyright 2016 Han The Thanh (pdfTeX) et al.

If you are using the  version in /bin/latex or /usr/bin/latex you will see:
pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2014)
kpathsea version 6.2.0
Copyright 2014 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).

Changing your path permanently
The following instructions assume that you have a standard .profile file: this is found in your home directory. Mail ithelp@stats.ox.ac.uk if you want to see a copy of the standard .profile file.

To change your path permanently edit your .profile file (carefully) and add a line


before the comment line

# PAGER: The command which you use to show output a screen at a time.

if there is no PATH variable defined.

If there is already a PATH variable add /usr/local/texbin to the beginning of the list of directories. For example, if you have


edit this to


You will need to log out and log back in again for this change to come into effect.