How to make local man page viewable by man

How to make local man page viewable by man

Post by Volker Hej » Tue, 16 May 1995 04:00:00



|>
|>Don't know if the procedure is unix-universal. We just set up our OSF/1
|>Ver 3.0 Unix system, and would like to copy man pages (e.g. pine.1
|>, pico.1  ...) into the local man directory so they can be used by the
|>man command.
|>Could someone tell me the steps to do it ?
|>

The OSF/1 man command understand the evironment variable
MANPATH.
Do the command:
set MANPATH=/usr/man:/usr/local/man
or something else, depending on your shell, and the man command looks
also in the additional trees.

This may not be true for other UNIX-dialects.

Hope this helps,

V. Hejny

==============================================================================
Volker Hejny                | Tel.: 0641 - 702 2783     |  \|/   ____   \|/

Universitaet Giessen        | Fax : 0641 - 74390        |    \_( \__/ )_/
Heinrich-Buff-Ring 16       |                           |       \____/

==============================================================================

 
 
 

How to make local man page viewable by man

Post by Tony Nugen » Tue, 16 May 1995 04:00:00



>Don't know if the procedure is unix-universal. We just set up our OSF/1
>Ver 3.0 Unix system, and would like to copy man pages (e.g. pine.1
>, pico.1  ...) into the local man directory so they can be used by the
>man command.
>Could someone tell me the steps to do it ?

Put the unformatted manpage.1 file goes into a directory called,
say:

$HOME/man/man1

(I use ~/bin/man/man1 myself), and anothermanpage.8 goes into:

$HOME/man/man8

and so on.  Note the correllation of the numeric extension of the
manpage file with the name of the man subdirectory.

If the man pages are already formatted, then put them into
corresponding subdirectories called $HOME/man/cat1 $HOME/man/cat2
etc.

Then run catman with something like the following command:

catman -w -M ~/man

Check the man pages for man, and for catman for the correct
syntax; it man vary from system to system.  The -w switch is to
stop the creation of the formatted ~/man/cat1/* files.

This will create a ~/man/whatis or ~/man/windex file (depending
on your system).

Then (for [t]csh, modify for sh shells) in ~/.login have the
following:

setenv MANPATH $HOME/man:$MANPATH

If you include your own manpath directory early in the $MANPATH
variable, then your manpages get read before any duplicates
elsewhere on the system.

Now you are set! :-)

Cheers
Tony
                                                             \\|//
                                                             (O-O)
  -------------------------------------------------------oOO--(_)--OOo-----
     Tony Nugent  Griffith University, Brisbane, Queensland, Australia

  -------------------------------------------------------------------------

 
 
 

How to make local man page viewable by man

Post by Dan P » Tue, 16 May 1995 04:00:00



Quote:>Don't know if the procedure is unix-universal. We just set up our OSF/1
>Ver 3.0 Unix system, and would like to copy man pages (e.g. pine.1
>, pico.1  ...) into the local man directory so they can be used by the
>man command.
>Could someone tell me the steps to do it ?

There is only one step:  put pine.1 in /usr/local/man/man1 (if it's in
nroff -man format) or in /usr/local/man/cat1 (if it's already formatted).
man will search /usr/local/man by default and will find the man page.

Additionally, you may want to run catman on /usr/local/man, to have a
whatis database created.  Read the catman(8) man page for details.

Dan
--
Dan Pop
CERN, CN Division

Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland

 
 
 

How to make local man page viewable by man

Post by Peter da Sil » Sat, 20 May 1995 04:00:00



> Don't know if the procedure is unix-universal. We just set up our OSF/1
> Ver 3.0 Unix system, and would like to copy man pages (e.g. pine.1
> , pico.1  ...) into the local man directory so they can be used by the
> man command.
> Could someone tell me the steps to do it ?

If you set your MANPATH environment variable to include /usr/local/man
(or wherever the root of your local man pages are) it will pick them up
automagically.
--
Peter da Silva                                            `-_-'
Network Management Technology Incorporated                 'U`
1601 Industrial Blvd.     Sugar Land, TX  77478  USA
+1 713 274 5180                                "Har du kramat din varg idag?"
 
 
 

1. How to format BSD man pages (groff man) using "classical" troff man?

I need to format BSD man pages, apparently written for the new man
macros which can only be used with GNU's groff text formatter,
using "classical" troff and man macros (e.g., troff from DWB 2.0).

Does there exist a conversion tool or a macroset usable with troff?

Please respond by E-MAIL, if necessary I'll summarize.

--

--    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands

2. Mount up!!!

3. Standard man pages to "Catted" man pages!

4. REQ: Help with Linux / nsca 1.3 httpd & {http proxy server}

5. Man Man more man?

6. Need help with SLIP

7. Red Hat 7.0 - man local gid 15 (man) exploit

8. PPCBoot Question

9. man oh man oh man!

10. tk man, perl man, and man servers

11. man a man page file at unspecified directory

12. double man pages in man and cat