When I change a given manpage, apropos
and whatis
do only reflect these changes when I perform the following steps:
store a copy of the manpage elsewhere and delete it in
/usr/local/man/man1
run
makedb
run
makewhatis
restore the manpage in
/usr/local/man/man1
run
makedb
run
makewhatis
Details:
When I change the NAME section to contain a certain keyword which should be found by apropos
, it will only be found by apropos
after performing the six (!) steps described above.
It is definitely not sufficient, just to update with mandb
and makewhatis
. I know that I can recreate the whatis
database by makewhatis -c
, but an update process which requires the deletion of the database first, is somewhat weird.
Question:
How can I change a manpage and have this change reflected by apropos
and whatis
without the deletion/restore/update process?