[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Man-db-devel] Easy way to update default manpath lookup paths?

From: Saurabh T
Subject: Re: [Man-db-devel] Easy way to update default manpath lookup paths?
Date: Wed, 5 Nov 2014 20:09:36 +0000

That's no less cumbersome and more hidden that setting MANPATH. It'd be useful 
to have a way to add to the subdirectories it searches when it finds an 
executable of the same name in PATH. By default this seems to be man/ ../man 
share/man and ../share/man. If you could set something like ADDPATHSUBDIR 
../doc/man in /etc/man_db.conf, that'd be very useful.


> Date: Mon, 3 Nov 2014 09:10:17 +0100
> From: address@hidden
> To: address@hidden; address@hidden
> Subject: Re: [Man-db-devel] Easy way to update default manpath lookup paths?
> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]