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.
~/.profilefile, with something likePATH=/usr/local/texlive/2014/bin/x86_64-linux:$PATH(and similarly forMANPATHANDINFOPATH, though paths not identical). This means thatwhich latexreturns:/usr/local/texlive/2014/bin/x86_64-linux/latex. But note that I have yet to update to 2015: you'll need to find your own current file path. – jon Jul 03 '15 at 16:57ls -a ~/.profilereturn? As for your paths, it sounds like it is going to be/usr/local/texlive/2015/x86_64-inux/, but that depends on a few things like whether you are using a 64-bit or 32-bit OS, etc. – jon Jul 03 '15 at 17:13sudo gedit ~/.profile! You should not needsudoto edit a file in your home directory. – jon Jul 03 '15 at 17:48/usr/local/all/the/way/to/latex; from there we can get the correct path. And I hope you realize that statements like " it contains lines like PATH="$PATH:bin/$PATH" etc or something like that" are not helpful. Setting a path correctly obviously requires a certain degree of precision, not vague-and-possibly-accurate generalities. I would suggest editing your question to reflect what you have so far regarding setting paths and what is still unclear. Then we can delete all of our comments. – jon Jul 03 '15 at 17:54/usr/local/texlive/2015/and the directory 2015 contains the subdirectoriesbin,readme-html.dir,readme-txt.dir,texmf-config,texmf-dist,texmf-varandtlpkg.Besides this, there is a directory
– usr203050 Jul 03 '15 at 17:58/usr/local/texlive/texmf-local/which ramifies to several subdirectories! Do I make sense?/usr/local/texlive/2015/texmf-dist/tex/latex/. Should I then setPATH="/usr/local/texlive/2015/texmf-dist/tex/latex/? – usr203050 Jul 03 '15 at 18:12$PATHvariable is so your system can find the commandslatexand so forth, not find the packages. – jon Jul 03 '15 at 18:34sudo apt-get purge texlive*. But let's see. – usr203050 Jul 03 '15 at 19:26which latexcontinues to give/usr/bin/latex. – usr203050 Jul 04 '15 at 05:52