Operating System - HP-UX
1827453 Members
5020 Online
109965 Solutions
New Discussion

man pages for additional utilities

 
SOLVED
Go to solution
Sharon Prothero
Frequent Advisor

man pages for additional utilities

Often when I load extra software such as apache, perl etc it comes with a bunch of man pages. What's the best way of integrating these into the system?

I tried modifying the MANPATH to include paths for the new stuff, but that didn't work. I've tried copying manpages into relevant section under /usr/share/man; I can then access the man pages, but is that the "proper"/"best" way to install them? Thanks in advance for any help.
7 REPLIES 7
Vincent Farrugia
Honored Contributor

Re: man pages for additional utilities

Hello,

If you tried modifying the MANPATH to include paths for the new stuff, logging off and then back on should work.

I don't know of any more elegant ways of doing it though.

Hope it helps,
Vince
Tape Drives RULE!!!
Sharon Prothero
Frequent Advisor

Re: man pages for additional utilities

I modified MANPATH using

export MANPATH=$MANPATH:/new/path/on/end

& then checked the value with echo $MANPATH, so logging off & on shouldn't be needed.
Vincent Farrugia
Honored Contributor

Re: man pages for additional utilities

To edit the MANPATH file, type

vi /etc/MANPATH

I tried your version... worked fine when I echoed $MANPATH but when I vied the MANPATH file it didn't show the new entry. I logged out and logged in, did an echo $MANPATH again and the path entered previously using your version was gone.

HTH,
Vince
Tape Drives RULE!!!
Thierry Poels_1
Honored Contributor

Re: man pages for additional utilities

hi,

if the application provides "normal" man directories/pages should can simply add ":/opt/yourapp/man" at the end of /etc/MANPATH.

Before using "man -k keyword" you will need to rerun "catman" to search through this new manpages.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Sharon Prothero
Frequent Advisor

Re: man pages for additional utilities

Looks like it was my own silly mistake !! The directory I added to MANPATH was one-level too low . e.g. I added /opt/apache/man/man1 and I should've just added /opt/apache/man.
Carlos Fernandez Riera
Honored Contributor
Solution

Re: man pages for additional utilities

The correct way is edit /etc/MANPATH and follow it syntax:

for each new path to search add two additionals entries:

i.e.:
/opt/OV/man/itose/%L:/opt/OV/man/itose

When you start a new login /etc/profile will `cat /etc/MANPATH` so your new settings will be read.

unsupported
Roger Baptiste
Honored Contributor

Re: man pages for additional utilities

<>

After installing the software, check
the directory structure of the Software for
"man" -> find -name man -type d

*Append* this result to the /etc/MANPATH in
the /etc/profile file

-raj
Take it easy.