< Man page

Man page/Local installation

Assuming the man pages are installed in ~/.local/share/man:

FILE ~/.bash_profileAdding the full local path to MANPATH environment variable.
MANPATH="${HOME}/.local/share/man:${MANPATH}"
FILE ~/.manpathInstructing mandb where to look.
MANDATORY_PATH /home/user/.local/share/man
  • Updating the database :
user $mandb --create --user-db

Hacks

New man page sections like cxx can be created but the man pages themselves have to at least be properly postfixed with .cxx

The default sections must also be included.

user $ grep ^SECTION /etc/man_db.conf >> ~/.manpath # The default sections must also be included.
user $ echo SECTION cxx >> ~/.manpath
This article is issued from Gentoo. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.