Take the 2-minute tour ×
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 using debian (unstable) and have installed most of my LaTeX packages from the official repositories (except few ones which I copied directly inside a folder recognized by texhash).

I just learned it is possible to update package with tlmgr utility and commands like :

tlmgr update --self --all

I am wondering how this command is "safe" on my debian. Indeed, if I update my texlive distro like this, my packages will be newer than what debian offers (inside meta-packages like texlive-latex-extra). So, what happens when there is a debian update? Isn't there some kind of conflict?

share|improve this question
3  
Short answer: no. Why? Because you do this in bypassing the package manager. And that's evil. And if texlive-latex-extra will be updated - it will rewrite all files updated by tlmgr. –  m0nhawk Nov 23 '13 at 17:49
    
@someonr I did : I specified "unstable" (sid). Unstable is always changing and, so, I can't be more specific. –  ppr Nov 23 '13 at 23:28
    
@ppr Sry, Looks like I was sleeping yesterday. –  someonr Nov 24 '13 at 14:07

1 Answer 1

up vote 9 down vote accepted

The unstable debian versions sid and Jessie provide tlmgr (as you may lookup here). You may use it, because it runs in user mode (see the doc or the man page). That means it will write the new/updated packages to your home folder and won't conflict with the package manager. PDFLaTex etc. prefer the packages from your home folder.

The tlmgr executable isn't included in any stable debian (see here). So you can't update with tlmgr. You can install texlive manually to /usr/local/texlive without messing up the debian package manger (this is the default directory). /usr/local won't be touched by the official debian packages (see the debian wiki). After doing this you may use tlmgr to update your texlive packages. (I'm doing this on ubuntu without any problems)

share|improve this answer
    
In Debian, tlmgr is installed when you installed texlive. There is no package with this name but the commandline works. however, this was not my question : I don't want to know how to update with tlmgr but only if it is safe or not. –  ppr Nov 23 '13 at 18:40
    
@ppr Sry I wasn't aware that it is included in the unstable debian versions. I'm updating my answer. –  someonr Nov 23 '13 at 18:58
    
It's getting clear but it still seems to me odd that two different versions of the same package are installed on the same system. And what can I do if I decide to change my mind and want to go back to the "official" debian repositories? simply delete the folder created by tlmgr inside my home folder? –  ppr Nov 24 '13 at 11:31
1  
@ppr: Yes. Or deinstall these packages with tlmgr (which should only work on your folder). –  Martin Schröder Nov 24 '13 at 13:41
2  
@ppr That's part of the 'design': your local tree is just for you, and can override the 'managed' tree. That idea is independent of using tlmgr. –  Joseph Wright Nov 26 '13 at 17:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.