1

Generally, when I install a package from the source, I can't use the man command to see the manual of that package. I guess because there is no manual installed with it.

So, is there a way to install a manual for a package installed from the source ??!!

PS : I know that using the option --help with almost every program will bring me some kind of help, or even a manual of the command, but I really need to install a real manual, the one that can be brought with the man command.

I hope my question is clear.

Sidahmed
  • 1,106
  • @JonasCz The link you gave explains for the developers how to create their manpages (I guess). I am looking how to install manpages of an open source program that isn't mine. – Sidahmed Jul 04 '16 at 13:52
  • 1
    It's going to depend on the particular package i.e. whether it includes manual pages, and whether the default install command processes and installs them (for example, some provide a separate Makefile target such as make docs that you can use) – steeldriver Jul 04 '16 at 13:54
  • Can I have an example please, of any open source package (It will be better if you can give me an example with metasploit, but I guess that I am asking a lot this way) – Sidahmed Jul 04 '16 at 13:55

1 Answers1

1

man man says:

   -l, --local-file
          Activate `local' mode.  Format and display  local  manual  files

You can use man --local-file /path/to/file. For example, if you want to read a man page called example, you can use man --local-file ./example, assuming such file exists in the current directory.

grooveplex
  • 2,486