LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2007, 05:11 PM   #1
OldJohnB
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Rep: Reputation: 0
Where is the 'whatis' data base?


I have recently been writing a GUI for the whatis database to display and access man pages in html. To do this I ran makewhatis to create the database and then #man -k . > whatislist to generate a text file that I could read into my GUI. Very similar to the existing gman but gman is not available on my distribution (Fedora) and I could not compile the gman source successfully, so having nothing better to do I wrote my own "jman" in Qt4 C++. My GUI works beautifully! My question however is where is the whatis database stored and in which format? If I could access it directly perhaps I may not have to run a script with #man -k . > whatislist, creating an additional file whatislist?

Can anyone shed any light on this? I feel I am making too much work of this?
 
Old 09-29-2007, 05:22 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
man whatis:
Quote:
FILES
/usr/share/man/index.(bt|db|dir|pag)
A traditional global index database cache.

/var/cache/man/index.(bt|db|dir|pag)
An alternate or FSSTND compliant global index database cache.

/usr/share/man/.../whatis
A traditional whatis text database.
 
Old 09-29-2007, 10:47 PM   #3
OldJohnB
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Smile 'whatis' data base found

Thanks for the info. I found a whatis database in my /var/share/man/whatis which is a text file identical to the one created by 'man -k .' and by checking the makewhatis and whatis scripts in /usr/sbin/ and /usr/bin/ respectively I could see that it was the database they created and used. I should have worked that out before but scripts are not my strong point. I can now update my GUI program to read this database directly.

However, I was unable for find any references to the index type databases that you mentions. I guess this just depends on the distribution?
 
Old 09-30-2007, 12:32 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Yes. On my system for example, there is /var/cache/man/index.db and it is updated by the mandb command.
 
Old 10-01-2007, 11:48 AM   #5
OldJohnB
LQ Newbie
 
Registered: Sep 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Where is the whatis data base

Quote:
Originally Posted by colucix View Post
Yes. On my system for example, there is /var/cache/man/index.db and it is updated by the mandb command.
Thanks again. I have another question, this time on Troff file viewers, that you might be able to help me with but I think I will start a new thread in case others are interested also.
 
  


Reply



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
Data base C# archShade Programming 3 05-08-2007 01:35 PM
Data Base Software Help Ingla Linux - Software 15 03-02-2006 04:19 PM
Data base programmin mola Programming 1 06-05-2005 03:31 AM
Data Base Software sgtbob Linux - Software 2 04-14-2005 05:00 PM
Manage Data Base in c/c++ saint_devil Programming 3 01-03-2005 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration