cancel
Showing results for 
Search instead for 
Did you mean: 
Waldirio
Flight Engineer
Flight Engineer
  • 503 Views

How To: Update and Refresh Cache with mandb Command

Jump to solution

Hello,

Did you know that there's a database/index file that's used whenever you run the "man -k something" or "apropos something" command? And sometimes, when this file isn't updated and/or is missing, the result is empty, which can sometimes be a tricky one for the sysadmins.

In this video, you'll learn how to update and/or recreate this index.

https://www.youtube.com/watch?v=EpZldFVdZ-0

Enjoy it!
Wally

Labels (1)
How To Update and Refresh Cache with mandb Command Multi Language around, feel free to check all the available, and pick the one which is better for you! *Commands used in this video* --- man -k yum man -k yum | wc -l apropos yum apropos yum | wc -l mandb --- *Would you Like to Collab?* - ...
1 Solution

Accepted Solutions
Waldirio
Flight Engineer
Flight Engineer
  • 490 Views

Hey @Chetan_Tiwary_ 

Just a snippet from "man man"

---
-k, --apropos
Equivalent to apropos. Search the short manual page descriptions for keywords and display
any matches. See apropos(1) for details.
---

 

So, yea, we can say that they are pretty much equivalent

 

Best

Wally

View solution in original post

4 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 496 Views

@Waldirio Nice addition! Are man -k and apropos truly the same?

PetrCihlar
Moderator
Moderator
  • 439 Views

According to the video and what I have heard, the man -k and apropos are the same. Just apropos is newer.

I think mandb updates the index file and recreates it if it does not exist. It may be better to use mandb -c directly, which does not update the existing index file (it may be damaged), but recreates it immediately.

0 Kudos
Waldirio
Flight Engineer
Flight Engineer
  • 491 Views

Hey @Chetan_Tiwary_ 

Just a snippet from "man man"

---
-k, --apropos
Equivalent to apropos. Search the short manual page descriptions for keywords and display
any matches. See apropos(1) for details.
---

 

So, yea, we can say that they are pretty much equivalent

 

Best

Wally

Chetan_Tiwary_
Community Manager
Community Manager
  • 486 Views

oh no, oh yes @Waldirio ! Straight drop from the man page ! Thanks for clarifying!

Join the discussion
You must log in to join this conversation.