View Full Version : man -k What are the (rpm) ones?

28th April 2006, 03:44 AM
I notice when I do a command like
man -k gnome
I get some entries that I am familiar with, like:
tomboy (1)
and I expect
man 1 tomboy
to produce a man page.
But what do the one's like
oaf (rpm)
Does it mean it's something I haven't installed yet?

28th April 2006, 04:28 AM
The lines matching "(rpm)" just reference rpm's that are installed.

"man -k gnome" is equivalent to calling "apropos gnome". apropos is just a command that searches the whatis database for the given keyword. Its a simple wrapper around "grep".

The whatis database is cached in /var/cache/man/whatis. Inside that file, you'll see lines referencing rpm's similar to ones displayed by man -k.

The whatis database is built using the command "makewhatis". If you peek inside the script, /usr/sbin/makewhatis, you'll see that it uses rpm-qa to get a list of installed rpm's and inserts them into the whatis database.


28th April 2006, 05:30 AM
I'm glad to know about /var/cache/man/whatis. I'll probably start grepping it from the command line. I'm spoiled by all the short Linux commands like "ls" and "df", so I almost never use "whatis" and always avoid "apropos".