[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

PATH="$PATH:/usr/local/texlive/2008/bin/x86_64-linux"
export PATH

in ~.profile

PATH="/usr/local/texlive/2008/bin/x86_64-linux:$PATH"

and in /etc/bash.bashrc

PATH="$PATH:/usr/local/texlive/2008/bin/x86_64-linux"
export PATH

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

No wonder with echo $PATH I get

/usr/local/texlive/2008/bin/x86_64-linux:/usr/local/sbin:/usr/local/ 
bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/texlive/2008/ 
bin/x86_64-linux:/usr/local/texlive/2008/bin/x86_64-linux:/usr/local/ 
texlive/2008/bin/x86_64-linux

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!

Best,

Axel


More information about the tex-live mailing list