Manual pages are software documentation found in Unix like Operating system and man linux distro. To get the information about package and command, we use the syntax yum install Package_name-Command_name
.The abbreviation of Manual Page is man page . When you work in Unix like operating system,we generally need help and information about the package and commands.In this case man page of command or software helps you.
So here, we will discuss about the error message man command not found in CentOS and Red Hat .
Generally we see this error,when you do minimal installation of operating system because of which man command is not installed.
To solve this problem,run the below given command
yum install man
Below given is the reference from my system when we run the command yum install man
[root@localhost ~]# yum install man Loaded plugins: fastestmirror base | 3.7 kB 00:00 base/primary_db | 4.4 MB 00:09 extras | 3.4 kB 00:00 extras/primary_db | 19 kB 00:02 updates | 3.4 kB 00:00 updates/primary_db | 1.3 MB 00:03 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package man.x86_64 0:1.6f-32.el6 will be installed --> Processing Dependency: lzma for package: man-1.6f-32.el6.x86_64 --> Running transaction check ---> Package xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Processing Dependency: xz = 4.999.9-0.3.beta.20091007git.el6 for package: xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 --> Running transaction check ---> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================== Package Arch Version Repository Size ==================================================================================================== Installing: man x86_64 1.6f-32.el6 base 263 k Installing for dependencies: xz x86_64 4.999.9-0.3.beta.20091007git.el6 base 137 k xz-lzma-compat x86_64 4.999.9-0.3.beta.20091007git.el6 base 16 k Transaction Summary ==================================================================================================== Install 3 Package(s) Total download size: 416 k Installed size: 886 k Is this ok [y/N]: y Downloading Packages: (1/3): man-1.6f-32.el6.x86_64.rpm | 263 kB 00:00 (2/3): xz-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm | 137 kB 00:00 (3/3): xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm | 16 kB 00:00 ---------------------------------------------------------------------------------------------------- Total 437 kB/s | 416 kB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Importing GPG key 0xC105B9DE: Userid : CentOS-6 Key (CentOS 6 Official Signing Key)Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : xz-4.999.9-0.3.beta.20091007git.el6.x86_64 1/3 Installing : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 2/3 Installing : man-1.6f-32.el6.x86_64 3/3 Verifying : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 1/3 Verifying : man-1.6f-32.el6.x86_64 2/3 Verifying : xz-4.999.9-0.3.beta.20091007git.el6.x86_64 3/3 Installed: man.x86_64 0:1.6f-32.el6 Dependency Installed: xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6 xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6 Complete! [root@localhost ~]#
After installation, check the command again. for eg.
man ls
You will see there is no more error message “man command not found”