|
From: | Jan Chaloupka |
Subject: | Re: [Man-db-devel] Easy way to update default manpath lookup paths? |
Date: | Mon, 03 Nov 2014 09:10:17 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
Hello Saurabh,have you tried to modify /etc/man_db.conf file? AFIAK, there is a MANPATH_MAP, where you can specify mappings of directories with binary/script/... into its corresponding path with man pages. I am not sure if there is a way to do this at once for each package you have, because there are /usr/local/bin and /usr/local/sbin mappings. Man-db is smart and tries to discover additional manpaths from PATH. But using a script, you can very quick generate a new MANPATH_MAP mappings for each package if a structure of those packages is similar.
If man-db takes a path from PATH (in a form path:path::...), it first checks if there is a MANPATH_MAP mapping, if not, it tries to test, if there are share/man or man subdirectories in path. It does not check the path for doc/man.
Regards Jan On 11/01/2014 04:14 PM, Saurabh T wrote:
Hi, I have several packages installed in /usr/local/package/. The bin/ under there is in PATH which makes manpath look in share/man/ etc automatically. However several packages have their man dir in different places, such as doc/man/. Is there a quick way to tell manpath to look in doc/man in addition to what it does by default (man, share/man etc), or do I have to set MANPATH for every one of them? saurabh
[Prev in Thread] | Current Thread | [Next in Thread] |