Having installed TeX Live on my system (by downloading and running the script from TUG's website: http://www.tug.org/texlive/acquire-netinstall.html), I tried editing the MANPATH variable by adding the following line in my /etc/environment:
MANPATH=$MANPATH:/usr/local/texlive/2012/texmf/doc/man
(There was no MANPATH entry previously)
However, setting the MANPATH here seems to be overriding the /etc/manpath.config file, and thus the system manual pages are no longer found. Whereas, if I use export in my .bashrc, mandb prepends the content of manpath.config to the exported value.
What is wrong with this syntax? After all, https://help.ubuntu.com/community/EnvironmentVariables does say that /etc/environment is the place for setting system-wide environment variables
The same issue for INFOPATH
$MANPATHare not supported in/etc/environment: http://askubuntu.com/questions/150789/difference-between-bash-bashrc-and-etc-environment-file . I think you would need to extend/etc/manpath.configitself with your customizations instead of using/etc/environment. – Paul Jun 05 '13 at 04:34manpath.configthe only way to go for achieving global persistence (WITHOUT opening the terminal once)? – Chatterjee Jun 05 '13 at 04:41/usr/localin the first place? If you install it using Software Center (orsudo apt-get) instead, then the man pages would go into the default system path and the question of how to updateMANPATHwould be moot. – Paul Jun 05 '13 at 12:17sudo apt-getis apparently choosing/usr/localas the default installation directory! – Chatterjee Jun 05 '13 at 21:28dpkg -L texlive texlive-baseonly lists things in/etc,/usr/bin,/usr/share, etc., not/usr/local. Take a look at your software sources: http://askubuntu.com/questions/4983/what-are-ppas-and-how-do-i-use-them – Paul Jun 05 '13 at 22:01MANPATHnot supporting variable interpolation – Chatterjee Jun 06 '13 at 01:48