0

What is the best way to add the path for an updated Tex Live installation?

Using

PATH="${tldir}/bin/x86_64-linux:$PATH"

or

PATH="$PATH:${tldir}/bin/x86_64-linux"

That is, should PATH lead or follow the Tex Live path?

6
  • What is tldir? Directories earlier in the path are searched first, so if different executables in different directories have the same name, it will matter.
    – vanadium
    Apr 27, 2022 at 16:02
  • It is the directory where I installed Tex Live.
    – Fatipati
    Apr 27, 2022 at 16:04
  • Does one customarily add directories at the end? I have an old version of Tex Live and my installation is picking up the old one.
    – Fatipati
    Apr 27, 2022 at 16:06
  • Do the first one if you might have other binaries with the same names as the new TeXlive ones but you want to use the newer ones by default. Use the second if you want to use the old binaries by default. If you only have one set of binaries with those names, it doesn't matter.
    – frabjous
    Apr 27, 2022 at 16:11
  • Directories added to the beginning of $PATH are searched first when the shell looks for an executable. It's dangerous because same-named executables will mask executables in later directories. Add your directory at the end of $PATH.
    – waltinator
    Apr 27, 2022 at 18:09

0

You must log in to answer this question.

Browse other questions tagged .