Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've been using texlive 2011 on Fedora for a few weeks successfully but every time I restart the computer the paths for tlmgr, texdoc and so on are forgotten.

I set the paths as root using the following command

    PATH=/usr/local/texlive/2011/bin/i386-linux:$PATH

How can I make this permanent so I don't need to do it every time I restart my computer?

Many thanks.

share|improve this question
2  
Did you do export PATH after you set it? Otherwise, the environment variable change will only be valid for the current terminal session and of course will not persist restarting of the computer or exiting the terminal – Martin Tapankov Oct 19 '11 at 9:53
1  
(This is really a Unix/Linux question ...) You need to put the path definitions in some file that is read at login. Exactly which file depends on the shell you are using (echo $SHELL) and whether you want it to be system-wide or just for a particular user. Finally, you should (almost) never do anything "as root"! – Andrew Stacey Oct 19 '11 at 9:56
read my answer in tex.stackexchange.com/questions/27922/… – Herbert Oct 19 '11 at 10:01
@Herbert: I just knew we'd had something similar before but couldn't find it. (And now that I see you fixed the uname issue, I'll happily link to that as the "standard" answer on paths.) – Andrew Stacey Oct 19 '11 at 10:15
1  
Read Jan Hlavacek's answer as well. Messing with your $PATH and /etc/profile shouldn't be necessary for this. – kahen Oct 19 '11 at 11:11
show 2 more comments

closed as off topic by Leo Liu, Seamus, Marco Daniel, lockstep, Torbjørn T. Oct 24 '11 at 17:03

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.