Manual Local Installation of a Binary on Linux

Steps for installing a (pre)compiled binary and its corresponding manpage.

1. Binary

  1. mkdir -m 755 ~/bin
  2. copy compiled/binary files to ~/bin
  3. vim .bashrc
  4. export PATH="${HOME}/bin:${PATH}"
  5. restart terminal
  6. verify: <binary> --help

2. Manpage

Note: Manpage number could be suggested by the filename of the man file, example: manfile.1. Or can be hand-picked from man man, under Description.

  1. copy man file <manfile.1> to your system’s man folder: sudo cp <manfile.1> /usr/local/share/man/man1/
  2. update man db: sudo mandb
  3. test: man <manfile>

It has been recommended[2] copying to /usr/local/ instead of /usr/share/ in order to separate this one from package manager installs.


  1. How to Add a Binary (or Executable, or Program) to Your PATH on macOS, Linux, or Windows | zwbetz
  2. command line – How do I manually install a man page file? – Ask Ubuntu
  3. Ubuntu Manpage: man – an interface to the system reference manuals

Did this solve your issue?