Difference between revisions of "Apropos"

From NixOS Wiki
Jump to: navigation, search
(Add warning about the new wiki)
m (rollback unauthorized mass edits)
Tag: Rollback
 
Line 1: Line 1:
{{warning|1=You are reading an article on the deprecated unofficial wiki. For the up to date version of this article, see https://wiki.nixos.org/wiki/Apropos.}}
 
 
 
By default as of NixOS 21.05, <code>apropos</code>, <code>whatis</code> and <code>man -k</code> do not find anything when run, because the man page index cache is not generated.  
 
By default as of NixOS 21.05, <code>apropos</code>, <code>whatis</code> and <code>man -k</code> do not find anything when run, because the man page index cache is not generated.  
  

Latest revision as of 10:58, 6 April 2024

By default as of NixOS 21.05, apropos, whatis and man -k do not find anything when run, because the man page index cache is not generated.

To generate it manually (and again to update it when new software is installed), run:

sudo mkdir -p /var/cache/man/nixos
sudo mandb

To enable automatically building the immutable cache, you can set:

documentation.man.generateCaches = true;

Note that this will rebuild the cache every time you change anything in environment.systemPackages, and will make the mandb command fail.