Man page/Local installation

From Gentoo Wiki
Jump to: navigation, search

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