Re: Incompplete Man Pages
Reply #18 –
With Debian based systems this is run on updates, possibly only when packages with man pages are updated, but that is pretty much every time. It can take a long time to run, e.g. trying here after not having run it for ages, then again to compare:
$ time sudo mandb
...
109 man subdirectories contained newer manual pages.
29798 manual pages were added.
0 stray cats were added.
482 old database entries were purged.
real 0m28.751s
user 0m0.097s
sys 0m0.092s
$ time sudo mandb
...
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.
real 0m0.606s
user 0m0.022s
sys 0m0.022s
So it can potentially slow down updates quite a bit. I run it manually before using man -k which I rarely do, although admittedly it's something I only found out about after a few years of using Artix. As mandb is only needed if the man pages are changed, a cron job seems inefficient, and man -k wouldn't give the correct results until the next day if you installed new or updated packages just after it had completed it's daily run. Perhaps there should be some mention of mandb in the Artix wiki under installation or configuration, as there doesn't seem to be at present?