[Tex/LaTex] How to Update Tex Live on Ubuntu 14.04

texlive-2016Ubuntuupdate

I just installed a newer version of Tex Live on Ubuntu 14.04 LTS 64 bit
but when I type in the terminal:
tex –version
the answer is:
TeX 3.1415926 (TeX Live 2013/Debian)
Why if I just installed the 2016 version?

Thanks so much!

Best Answer

Set the $PATH variable to include the binaries of the new TeX installation. On my computer, the programs of TeXLive are in the directory /usr/local/texlive/2016/bin/x86_64-linux, so I added the lines

export PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2016/texmf-dist/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2016/texmf-dist/doc/info:$INFOPATH

to $HOME/.profile. To modify the path also for non-interactive shells (like for remote login), you may have to take extra steps depending on your shell and its habits when to load which initialization files. For bash, my $HOME/.bashrc contains

# If running interactively, then:
if [ "$PS1" ]; then
  ... all the commands and aliases only needed interactively
else
  source ~/.profile
fi

In fact, the installation script tells you in the end which directory you have to include in your command path (as well as the adjustments regarding $MANPATH and $INFOPATH).

Additionally I suggest to deinstall the texlive packages from Ubuntu, to avoid that the two TeX installations accidentally interfere. Search for all packages starting with texlive-.

Related Question