It seems that I have two installations of TeXlive, one of which is more updated.
When I run latex, it seems to search packages inside the old installation. How can I direct latex to look for the updated installation?
All my packages in the new installation (such as tcolorbox
) are listed as directories in the directory /usr/local/texlive/2015/texmf-dist/tex/latex/
.
The old installation lists the package files in /usr/share/texlive/texmf-dist/tex/latex/
.
Also, the command which latex
gives /usr/bin/latex
.
sudo gedit ~/.profile
! You should not needsudo
to edit a file in your home directory.$PATH
variable is so your system can find the commandslatex
and so forth, not find the packages.