Apropos: Difference between revisions

From NixOS Wiki
imported>Jtojnar
updated with a command that works for me
imported>Ncfavier
document documentation.man.generateCaches
Line 1: Line 1:
As of NixOS 18.09, <code>apropos</code> (and likely also <code>whatis</code>) does not find anything when run. This is because the Apropos database is not generated automatically.
By default as of NixOS 21.05, <code>apropos</code>, <code>whatis</code> and <code>man -k</code> do not find anything when run. To enable automatically building the man page index caches, you can set:


To generate it manually (and again to update it when new software is installed), run:
<syntaxhighlight lang=nix>
<syntaxhighlight lang=bash>
documentation.man.generateCaches = true;
sudo mkdir -p /var/cache/man/nixos
sudo mandb
</syntaxhighlight>
</syntaxhighlight>
For more information, see:
* {{issue|14472|Make NixOS module to update apropos database}}
* {{pull|18521|mandb: fix apropos}}

Revision as of 22:45, 11 June 2021

By default as of NixOS 21.05, apropos, whatis and man -k do not find anything when run. To enable automatically building the man page index caches, you can set:

documentation.man.generateCaches = true;