I'm trying to set up Latex, and as part of it need to add to the $PATH
. Something I read (probably on here) said modifying /etc/environment
was better than adding to .profile
(I think because it changes things for all users?).
I've done this, and then when I run . /etc/environment
, for the rest of that terminal session everything works fine. When I open a new terminal though, the commands such as latex
don't work again. Restarting the computer also doesn't make the changes to /etc/environment
be effective across shell sessions.
What can I do to make these changes happen system wide?
UPDATE: I ended up installing through the PPA mentioned in the comments, which installed Tex Live 2016 (and set the environment variables) with no issues.