1

I just install postgres 9.6 inside my /opt directory. I want to show the man page of the postgres. While I type man postgres, it says,

No manual entry for postgres.

I think this error may arises due to $PATH. I don't know how can I fix the path. Or, should I install postgres inside usr/local directory?

Tek Kshetri
  • 121
  • 3

1 Answers1

1

In general, it's better to install postgreSQL through the Ubuntu packages (with apt). Doing that, man postgres would work directly. When using custom installers, the fact than manpages are not being readily available is just one of many annoyances you'll see, due to lack of integration with the rest of your system.

But if you have good reasons to do it the hard way, adding non-default directories to the paths searched by man is possible and explained at : How to set MANPATH without overriding defaults?