[tex-live] Fwd: tlmgr on Ubuntu linux?

Axel E. Retif axel.retif at mac.com
Tue Feb 10 04:01:14 CET 2009

On  9 Feb, 2009, at 18:36, Karl Berry wrote:

>    To update TeX Live on Ubuntu, I have to use root terminal ---sudo  
> is
>    not enough in a regular terminal
> I know this isn't very important to you, but FWIW, my guess is that  
> the
> subshell started by sudo is not seeing your PATH initialization, and
> it's just something like /usr/bin and /bin.  E.g., if you set PATHl
> (containing the /usr/local/texlive/2008-ish directory) in
> .bash_login, sudo won't see it by default.

In Mac OS, shell is a login shell by default; in Ubuntu, it's a non- 
login shell.

> What I do myself is set PATH in .bashrc and have .bash_login  
> source .bashrc

This is what I do in Mac OS ---I put everything in ~.bashrc (even  
though, as I said, login shell is the default) and ~.bash_profile just  
sources ~.bashrc.

> (and .bashrc source .bash_login)

I don't  do this.

> with some sentinels to avoid infinite looping, of course.
> I.e., if your dot files are set up one way on MacOSX and another way  
> on
> Ubuntu, that could explain the difference.

I don't set TeX Live paths in Mac OS, as MacTeX installer sets the  
path globally for it.

But in Ubuntu..., well ---I didn't remember, but I just found out that  
I did set the path everywhere I could! In ~.bashrc I have

export PATH

in ~.profile


and in /etc/bash.bashrc

export PATH

and, of course, /etc/profile sources /etc/bash.bashrc

No wonder with echo $PATH I get


Anyway, I just discovered that in a regular Terminal I can do ``sudo  
su'' and then ``tlmgr update --all''.

I guess I have to learn a lot more about Ubuntu!



More information about the tex-live mailing list