CentOS – How to Install Man Pages

centosman

Note: This applies to Centos 7. If you are looking for a Debian answer, see this question. Those answers will not be duplicated here.

After an install of centos 7, I can't access man pages :

# man ls
-bash: man: command not found

I tried to install it via yum

# yum install man-pages
... ok

But again:

# man ls
-bash: man: command not found

Why?

Best Answer

In order to use the man command, you must also install the man package before or after the man-pages one

# yum install man-pages
... ok
# yum install man
... ok

Now man is installed

# man ls


NAME
      ls - list directory contents

SYNOPSIS
      ls [OPTION]... [FILE]...

DESCRIPTION
      List information about the FILEs (the current directory by default).  Sort entries alphabetically if none of -cftuvSUX nor --sort.

      Mandatory arguments to long options are mandatory for short options too. ...