DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th June 2021
stanl stanl is offline
Real Name: Stan
Shell Scout
 
Join Date: Jun 2019
Location: New York
Posts: 122
Default Updating man pages?

Using pkg_add I installed node so that I could then use npm to install a program called ntbk
(https://michaelsoolee.com/ntbk-journal/).
Everything worked fine and at the end suggestion was made to add:
/usr/local/lib/node-modules/npm/man
and:
/usr/local/lib/node-modules/sshpk/man
to /etc/man.conf.

But now if I do man npm or man sshpk I'm told there is no entry for npm in the manual.
I tried makewhatis but I;m not sure if that is what I need.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 7th June 2021
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,821
Default

I assume that you first copied /etc/examples/man.conf to /etc/? And then added those two lines so you now have something like this?
Code:
manpath /usr/share/man
manpath /usr/X11R6/man
manpath /usr/local/man

# node.js related man pages

manpath /usr/local/lib/node-modules/npm/man
manpath /usr/local/lib/node-modules/sshpk/man
And then ran # makewhatis?

I just created a test man page file hierarchy as user snap2 and copied two man pages from another system:
Code:
snap2[~]mkdir -p man/man1

snap2[~/man/man1]scp siralas.nl:spip\* .
spipe.1                                       100% 2790   307.2KB/s   00:00    
spiped.1                                      100% 5089   532.1KB/s   00:00    
snap2[~/man/man1]ls -l
total 24
-r--r--r--  1 snap2  snap2  2790 Jun  8 01:04 spipe.1
-r--r--r--  1 snap2  snap2  5089 Jun  8 01:04 spiped.1
As root in another xterm added the following line to /etc/man.conf
Code:
# test
/home/snap2/man
An attempt to view the man page succeeded but showed the recommendation to update mandoc.db:
Code:
snap2[~]man spiped
man: outdated mandoc.db lacks spiped(1) entry, run makewhatis /home/snap2/man
Ran # makewhatis and then I could view the man page without the mandoc.db warning.
After running that command:
Code:
ls -lR /home/snap2/man 
/home/snap2/man:
total 16
drwxr-xr-x  2 snap2  snap2  512 Jun  8 01:04 man1
-rw-r--r--  1 root   snap2  452 Jun  8 01:47 mandoc.db

/home/snap2/man/man1:
total 24
-r--r--r--  1 snap2  snap2  2790 Jun  8 01:04 spipe.1
-r--r--r--  1 snap2  snap2  5089 Jun  8 01:04 spiped.1
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 8th June 2021
stanl stanl is offline
Real Name: Stan
Shell Scout
 
Join Date: Jun 2019
Location: New York
Posts: 122
Default

You assume incorrectly, giving me more credit than I deserve.
I was not aware of /etc/examples/man.conf. My guess is that I installed some program which advised me to add /path/to/some/file/man to /etc/man.conf.
So, I created /etc/man.conf and added /path/to/some/file/man and never included "manpath" at the beginning of the line.

I've since corrected it following your example. Now the man page for npm shows up but several other man pages in /etc/man.conf still don't. I'm not overly concerned about this as I doubt I'll ever need to read the man page for tk8.6 but I am curious as to why.

In any case, thank you for your assistance. I do appreciate it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
texlive_base: no man pages for tex and pdflatex attilio OpenBSD Packages and Ports 4 21st February 2016 03:26 AM
Incomplete man pages? montie OpenBSD General 8 20th January 2015 06:12 PM
mod_gzip2 not compressing pages Weaseal FreeBSD Ports and Packages 0 23rd September 2008 11:56 PM
Man pages obsolete? corey_james Other BSD and UNIX/UNIX-like 13 14th July 2008 07:59 PM
Man pages for X robbak Feedback and Suggestions 0 9th May 2008 12:32 AM


All times are GMT. The time now is 10:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick