1833514 Members
6294 Online
110061 Solutions
New Discussion

Re: new man page

 
Kurtkarl
Frequent Advisor

new man page

Hi,

I assumed that this was already asked in this forum but I couldnt find the exact match of the answer I'm expecting. Anyways, here my question:

I installed a software which has a man page included. Than man page of this softwares has the ff dirs.
- /man/man1
- /man/man1/.1
So how would I include this to be just like an ordinary man pages? I tried to move all the files with .1 to /usr/share/man/man1.Z and changed permission and ownership with the same as the rest but didnt work.

Thanks in Advance.
Joey
Just starting to learn thru this forum
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: new man page

Have a look at the man page for the catman command. This should accomplish what you need.
Kofi ARTHIABAH
Honored Contributor

Re: new man page

Joey:

The path for MAN is kept in the file /etc/MANPATH - you have to edit this file and add the entry :/man ( do not drill down to /man/man1 - ) then log out and back in, you should be able to see you man pages.

By the way, it is not a very good idea to have the man pages sitting on / ( I would rather suggest that they follow the normal HP naming convention /opt/application/share/man ...)

Good luck.
nothing wrong with me that a few lines of code cannot fix!
Mike Stroyan
Honored Contributor

Re: new man page

The directories that have names ending with .Z are intended to contain compressed files. You would need to compress the manual files to put them there-
compress < new.1 > /usr/share/man/man1.Z/new.1
Or you could put them in /usr/share/man/man1.
It is better to add new directories to /etc/MANPATH so all the different manual files remain sorted out by package.
James R. Ferguson
Acclaimed Contributor

Re: new man page

Hi:

As a general rule, after I install patches, (which often carry new and/or modified man pages) I issue the following command:

# catman -m

This updates the /usr/share/lib/whatis database with new entries and formats the new manual pages at the same time.

...JRF...