LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-14-2012, 05:53 PM   #1
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 276

Rep: Reputation: 65
"man -k" Question


In this recent thread http://www.linuxquestions.org/questi...nd-4175437057/ stf92 wrote in part ...
Quote:
I run 'apropos' and find two programs: rdev and vbetool. But rdev is nowhere to be seen.
I found the following interesting when exploring that post.

Code:
$ man -k rdev
 ...
rdev []              (8)  - query/set image root device, RAM disk size, or video mode
Although this man -k command responds with the rdev(8) reference, the man page for rdev doesn't exist in Section 8 or anywhere else in Slack64 14.0.

Yet, as the OP stated, the rdev program is not to be found .... except in busybox.

Previously, in Slack 13.0, the program /usr/sbin/rdev was included along with the section 8 man page.

rdev appears to have been removed in 13.37 & 14.0. I recall reading a while ago that rdev was deprecated.

My question is how did the man -k or apropos commands include the rdev(8) reference? Is there an old cache file leftover from an earlier version?

I looked through the /usr/lib64/man.conf file, and there was no /var/cache man file, but didn't find anything obvious to answer my question.
 
Old 11-14-2012, 06:19 PM   #2
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 13.37 & 14.0
Posts: 71

Rep: Reputation: 24
It uses the whatis files which are created using the makewhatis command. Possibly those files are not up to date. Read man makewhatis. What you may need to do is run makewhatis -w as root.
 
1 members found this post helpful.
Old 11-14-2012, 06:51 PM   #3
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 276

Original Poster
Rep: Reputation: 65
Uses /usr/man/whatis database

Thanks vulcan59 !

The file /usr/man/whatis is dated from 2009 and contains the rdev(8) entry.

When I edit that file, removing the rdev entry, then run the "man -k rdev" command, rdev(8) is no longer found.

Although commands to update file system "lists/indexes" may be considered part of the administrator's duties, it may not be a bad idea to include commands like makewhatis or updatedb as part of Slackware release build process to clean out the old stuff and include any new (included) man pages between releases.
 
  


Reply

Tags
man, man-pages


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange "characters" appearing in auto "created" man pages Sector11 Linux - General 7 02-28-2010 11:05 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
one man's "handy" is another man's "clunky" stabu Linux - Distributions 1 03-19-2009 05:51 PM
difference between "man" and "info" gexecuter Linux - Newbie 17 09-26-2007 03:17 PM
"man" on FC4 question kenwong Linux - General 1 11-28-2006 09:01 PM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration