Skip to content

Instantly share code, notes, and snippets.

@mwolson
Created October 21, 2016 01:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwolson/e874a761977cdcdd445955b3def8df0e to your computer and use it in GitHub Desktop.
Save mwolson/e874a761977cdcdd445955b3def8df0e to your computer and use it in GitHub Desktop.
Updating man database (for man -k) on OS X

After installing new packages, the M-x man command might not list the new manpages for those packages, because the whatis DB used by man gets updated weekly via a cron job. Further, any manpages for programs that are part of the XCode Commandline Tools will never get installed because the cron job inexplicably excludes them. To make force them to be generated, run the following:

sudo /etc/periodic/weekly/320.whatis
sudo /usr/libexec/makewhatis /Applications/Xcode.app/Contents/Developer/usr/share/man
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment