Apple - I downloaded a shell executable and man pages from a source I trust. Where should I put them?
The binary file goes in
/usr/local/bin. Each man page goes in the folder
N is the number at the end of the man page file name. For example,
gdisk.8 should appear in the folder
/usr/local/share/man/man8. When finished adding all man pages, you should run the command
to update the whatis database stored in the text file
whatis text file is used by the
/usr/local in general is the place to install user-provided unix-like software.
- For the binaries, see Where should shell tools be installed? or Where should shell tools be installed? which both point to
- For man pages use
/usr/local/share/man/manN(with N being the chapter, usually 1 or 8 for commands) and make sure
/etc/manpaths(or added as an additional entry in a specific file in