No manual entry for man

I’m working in a Centos 6.6 Docker image. I thought I installed everything to get access to man pages, but apparently not…

$ yum install -y man man-pages man-pages-overrides
$ which man
$ man man
No manual entry for man

What am I missing ?

Regarding questions in comments (thanks for your help everyone):

$ echo $MANPATH
# empty
$ man 1 man
No entry for man in section 1 of the manual
$ man 7 man
No entry for man in section 7 of the manual
$ ll /usr/share/man/man1/
total 8
drwxr-xr-x  2 root root 4096 Sep 23  2011 ./
drwxr-xr-x 61 root root 4096 Jan 31 01:55 ../
$ yum search man | grep db
ModemManager.x86_64 : Mobile broadband modem management service
hsqldb-manual.noarch : Manual for hsqldb
db4-utils.x86_64 : Command line tools for managing Berkeley DB (version 4)
foomatic-db-ppds.noarch : PPDs from printer manufacturers
ldb-tools.x86_64 : Tools to manage LDB files

$ rpm -q -l man | grep man.1
Asked By: Anto


See the comment re: removing tsflags=nodocs from /etc/yum.conf, put there as a purported consequence of base docker image build policy:!topic/docker-user/fuW0e9xlqQE

I just tested this on a CentOS 6.7 container and it works.

Answered By: barrelobits

If echo $MANPATH is empty you need to set the manpath.

echo "MANPATH=/usr/share/man" >> ~/.bashrc

The login again.

Answered By: Michael Tomkins
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.