Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a set of man pages in a non-standard location; however, the location is on my MANPATH (and I verified this with man --path). When I do

man fst-infl

(where fst-infl has a man page in this non-standard location), it works: it brings up the man page for fst-infl.

But when I do

man -k fst-infl

I get

fst-infl: nothing appropriate

Same for man -f or /usr/bin/apropos. All of these work fine for programs that are on the default MANPATH, e.g. man -k fstab-decode.

Why doesn't man -k look in the same place that plain man does? More specifically, why doesn't it use MANPATH?

share|improve this question
    
Have you tried using mandb? –  ramonovski Jun 5 '13 at 19:33
2  
Maybe the whatis database is not up to date or the makewhatis or the equivalent on your system wasn't called with the same MANPATH –  Stephane Chazelas Jun 5 '13 at 19:40
    
Well, I can see that even if it was called (it's run by root, right?), makewhatis wouldn't know about the MANPATH that I set in my ~/.bashrc. But what puzzles me is that 'man' by itself finds this man file just fine, but 'man -k' does not. –  Mike Maxwell Jun 5 '13 at 19:54
    
@ramonovski: No, and it doesn't seem to be installed on our system. –  Mike Maxwell Jun 5 '13 at 19:56
    
@MikeMaxwell In some systems it's called man-db –  ramonovski Jun 5 '13 at 20:59
show 1 more comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.