How to Install “man” Command on CentOS 5.8

Man pages are a common way to learn the commands that are on your system. man is actually the system’s manual pager. The man command will give you all the details of a given command, including switches used, and syntax. man formats and displays the on-line manual pages. Each page argument given to man is normally the name of a program, utility or function.

If your server does not installed with man command, you will get this error when you run it :

[root@centos58 ~]# man chage
-bash: man: command not found

Simply run this command to install “man” command on linux CentOS 5.8.

[root@centos58 ~]# yum install man -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.oscc.org.my
 * epel: mirror.nus.edu.sg
 * extras: mirror.oscc.org.my
 * rpmforge: mirror.oscc.org.my
 * updates: mirrors.hostemo.com
CentOS5.8-Repository                                                         | 1.3 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package man.i386 0:1.6d-2.el5 set to be updated
--> Processing Dependency: groff >= 1.18 for package: man
--> Processing Dependency: bzip2 for package: man
--> Processing Dependency: nroff-i18n for package: man
--> Running transaction check
---> Package bzip2.i386 0:1.0.3-6.el5_5 set to be updated
---> Package groff.i386 0:1.18.1.1-13.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package          Arch            Version                     Repository                       Size
====================================================================================================
Installing:
 man              i386            1.6d-2.el5                  CentOS5.8-Repository            262 k
Installing for dependencies:
 bzip2            i386            1.0.3-6.el5_5               base                             49 k
 groff            i386            1.18.1.1-13.el5             base                            1.9 M

Transaction Summary
====================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 2.2 M
Downloading Packages:
(1/3): bzip2-1.0.3-6.el5_5.i386.rpm                                          |  49 kB     00:00
(2/3): groff-1.18.1.1-13.el5.i386.rpm                                        | 1.9 MB     00:17
----------------------------------------------------------------------------------------------------
Total                                                                95 kB/s | 2.2 MB     00:23
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : bzip2                                                                        1/3
  Installing     : groff                                                                        2/3
  Installing     : man                                                                          3/3

Installed:
  man.i386 0:1.6d-2.el5

Dependency Installed:
  bzip2.i386 0:1.0.3-6.el5_5                      groff.i386 0:1.18.1.1-13.el5

Complete!

Example of man usage :

[root@centos58 ~]# man chage

How to Install “man” Command on Fedora 16

man is the system’s manual pager. Each page argument given to man is normally the name of a program, utility or function. The Linux command “man” is used to display the manual page for other command and also will help you to explain the functions for the commands that commonly used. The term “man” is short for manual. On Fedora 16 minimum installation, “man” command has not been installed. In this post, i will show how to install “man” pages command on Linux Fedora 16 server.

You’ill get the following warning if you type man command on your Fedora 16 server.

-bash: man: command not found

To install “man” command, simply run the following line :

[root@fedora16 ~]# yum install man -y

Examples :

[root@fedora16 ~]# yum install man -y
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package man-db.i686 0:2.6.0.2-2.fc16 will be installed
--> Processing Dependency: groff for package: man-db-2.6.0.2-2.fc16.i686
--> Processing Dependency: libpipeline.so.1 for package: man-db-2.6.0.2-2.fc16.i686
--> Processing Dependency: less for package: man-db-2.6.0.2-2.fc16.i686
--> Running transaction check
---> Package groff.i686 0:1.21-3.fc16 will be installed
---> Package less.i686 0:444-2.fc16 will be installed
---> Package libpipeline.i686 0:1.2.0-1.fc16 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package               Arch           Version                   Repository                     Size
====================================================================================================
Installing:
 man-db                i686           2.6.0.2-2.fc16            Fedora16-Repository           563 k
Installing for dependencies:
 groff                 i686           1.21-3.fc16               Fedora16-Repository           1.9 M
 less                  i686           444-2.fc16                Fedora16-Repository           109 k
 libpipeline           i686           1.2.0-1.fc16              Fedora16-Repository            47 k

Transaction Summary
====================================================================================================
Install       4 Packages

Total download size: 2.6 M
Installed size: 9.3 M
Downloading Packages:
----------------------------------------------------------------------------------------------------
Total                                                                18 MB/s | 2.6 MB     00:00
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : less-444-2.fc16.i686                                                             1/4
  Installing : groff-1.21-3.fc16.i686                                                           2/4
  Installing : libpipeline-1.2.0-1.fc16.i686                                                    3/4
  Installing : man-db-2.6.0.2-2.fc16.i686                                                       4/4

Installed:
  man-db.i686 0:2.6.0.2-2.fc16

Dependency Installed:
  groff.i686 0:1.21-3.fc16       less.i686 0:444-2.fc16       libpipeline.i686 0:1.2.0-1.fc16

Complete!