[Tex/LaTex] the easiest way to set path of updated(new version) texlive installation


I can remember that I might get a easy solution, but now I can't find this in this site.

$ whereis pdflatex
pdflatex: /usr/bin/pdflatex /usr/bin/X11/pdflatex /usr/share/man/man1/pdflatex.1.gz

But, updated installation location is


Some solution

Set PATH to use the current TeX Live bin directory

TeXlive update – how do I permanently set the path?

How do I configure the paths for TexLive2011 to work on my system with TexWorks 0.5?

Best Answer

Open your .bashrc script and write the following lines at the end:

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

And then you should be good to go.

Related Question