So, I'm running linux Mint (but I guess the same applies to Ubuntu) and as is common knowledge, their TeX
distribution tends to be slightly outdated. Now I can't have none of that and decide to install it with the install-tl from the TeXlive homepage. Somehow, I cannot install it as a normal user (this I find normal as it is installing in the root directory), so I proceed to install TeXlive
sudo perl ./install-tl
and add the paths to .bashrc
. All is well and my TeXlive
installation works. Except for the texhash
option. Running it as a normal user is no problem, except that I installed TeXlive
as root, and so running texhash
as normal user doesn't do anything (directory not writable. Skipping...
). No problem I think, I'll just do it as root. But somehow texhash
isn't installed for root.
Now, texhash
is somehow connected to updating the directory tree, but I don't really know what it does. I use it on my ~/texmf/
folder to add my packages to a global path (I think), but when looking at info for this question I see in a comment for this question that this is apparently not needed, though I don't understand what I'm to do now.
So if I'm not adding new packages from CTAN or updating, I really don't need texhash
and all is good?
To summarize: I'd like to know:
- Why should I need
texhash
? - Can I avoid installing as root on linux Mint/ubuntu (here they say you don't have to be root, that it's even discouraged)?
- Should I somehow install
texhash
for root?
I realize this might be a vague question at best, but I didn't find an answer I readily understood, so I'd appreciate any thought on this.
alias sudo='sudo env PATH=$PATH'
to your.bashrc
(that's what helped here, on ubuntu)sudo mktexlsr
, as for all commands you're supposed to run with administrator privileges, after having done as henrique suggested.mktexlsr
andtexhash
are the same thing, the later is a symlink to the former.