{"id":2150,"date":"2012-03-08T20:14:57","date_gmt":"2012-03-08T12:14:57","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2150"},"modified":"2023-04-28T09:49:42","modified_gmt":"2023-04-28T09:49:42","slug":"how-to-install-man-command-on-linux-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-man-command-on-linux-centos-6-2\/","title":{"rendered":"How to Install &#8220;man&#8221; Command on Linux CentOS 6.2"},"content":{"rendered":"<p>CentOS 6.2 is an older version of CentOS and has reached its End of Life (EOL) on November 30, 2020. It is strongly recommended that you upgrade to a newer version, such as CentOS 7 or 8, as they receive security updates and support.<\/p>\n<pre>\r\n[root@centos62 ~]# man chown\r\n-bash: man: command not found\r\n<\/pre>\n<p>However, if you still need to install the &#8220;man&#8221; command on CentOS 6.2, you can follow these steps:<\/p>\n<h2>Step 1: Update the Package List<\/h2>\n<p>First, open a terminal window and run the following command to update the package list:<\/p>\n<pre>\r\nsudo yum update\r\n<\/pre>\n<p>This command fetches the latest package information from the configured repositories and updates the local package list.<\/p>\n<h2>Step 2: Install the \u201cman\u201d Command<\/h2>\n<p>After updating the package list, install the &#8220;man&#8221; command and the required packages using the following command:<\/p>\n<pre>\r\nsudo yum install -y man man-pages\r\n<\/pre>\n<p>This command installs the &#8220;man&#8221; package and the man-pages package, which contains the manual pages for Linux commands and functions.<\/p>\n<pre>\r\n[root@centos62 ~]# yum install man -y\r\nLoaded plugins: fastestmirror\r\nLoading mirror speeds from cached hostfile\r\n * base: mirrors.hostemo.com\r\n * epel: ftp.riken.jp\r\n * extras: mirrors.hostemo.com\r\n * updates: ossm.utm.my\r\nSetting up Install Process\r\nResolving Dependencies\r\n--> Running transaction check\r\n---> Package man.i686 0:1.6f-29.el6 will be installed\r\n--> Processing Dependency: lzma for package: man-1.6f-29.el6.i686\r\n--> Running transaction check\r\n---> Package xz-lzma-compat.i686 0:4.999.9-0.3.beta.20091007git.el6 will be installed\r\n--> Processing Dependency: xz = 4.999.9-0.3.beta.20091007git.el6 for package: xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686\r\n--> Running transaction check\r\n---> Package xz.i686 0:4.999.9-0.3.beta.20091007git.el6 will be installed\r\n--> Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n====================================================================================================\r\n Package            Arch     Version                                 Repository                Size\r\n====================================================================================================\r\nInstalling:\r\n man                i686     1.6f-29.el6                             CentOS6.2-Repository     260 k\r\nInstalling for dependencies:\r\n xz                 i686     4.999.9-0.3.beta.20091007git.el6        CentOS6.2-Repository     137 k\r\n xz-lzma-compat     i686     4.999.9-0.3.beta.20091007git.el6        CentOS6.2-Repository      16 k\r\n\r\nTransaction Summary\r\n====================================================================================================\r\nInstall       3 Package(s)\r\n\r\nTotal download size: 412 k\r\nInstalled size: 864 k\r\nDownloading Packages:\r\n----------------------------------------------------------------------------------------------------\r\nTotal                                                               3.6 MB\/s | 412 kB     00:00\r\nRunning rpm_check_debug\r\nRunning Transaction Test\r\nTransaction Test Succeeded\r\nRunning Transaction\r\n  Installing : xz-4.999.9-0.3.beta.20091007git.el6.i686                                         1\/3\r\n  Installing : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686                             2\/3\r\n  Installing : man-1.6f-29.el6.i686                                                             3\/3\r\n\r\nInstalled:\r\n  man.i686 0:1.6f-29.el6\r\n\r\nDependency Installed:\r\n  xz.i686 0:4.999.9-0.3.beta.20091007git.el6 xz-lzma-compat.i686 0:4.999.9-0.3.beta.20091007git.el6\r\n\r\nComplete!\r\n<\/pre>\n<h2>Step 3: Verify the Installation<\/h2>\n<p>To verify that the &#8220;man&#8221; command has been successfully installed, run the following command:<\/p>\n<pre>\r\nman chown\r\n<\/pre>\n<p>This command displays the manual page for the &#8220;chown&#8221; command.<\/p>\n<pre>\r\nCHOWN(1)                         User Commands                        CHOWN(1)\r\n\r\nNAME\r\n       chown - change file owner and group\r\n\r\nSYNOPSIS\r\n       chown [OPTION]... [OWNER][:[GROUP]] FILE...\r\n       chown [OPTION]... --reference=RFILE FILE...\r\n\r\nDESCRIPTION\r\n       This manual page documents the GNU version of chown.  chown changes the user and\/or\r\n       group ownership of each given file.  If only an owner (a user name or numeric  user\r\n       ID)  is given, that user is made the owner of each given file, and the files\u00e2 group\r\n       is not changed.  If the owner is followed by a colon and a group name  (or  numeric\r\n       group ID), with no spaces between them, the group ownership of the files is changed\r\n       as well.  If a colon but no group name follows the user name, that user is made the\r\n       owner  of  the  files  and  the  group of the files is changed to that user\u00e2s login\r\n       group.  If the colon and group are given, but the owner is omitted, only the  group\r\n       of  the  files is changed; in this case, chown performs the same function as chgrp.\r\n       If only a colon is given, or if the entire operand is empty, neither the owner  nor\r\n       the group is changed.\r\n\r\nOPTIONS\r\n       Change  the  owner  and\/or group of each FILE to OWNER and\/or GROUP.  With --refer-\r\n       ence, change the owner and group of each FILE to those of RFILE.\r\n\r\n       -c, --changes\r\n              like verbose but report only when a change is made\r\n\r\n<\/pre>\n<p>If you see the manual page, the installation was successful.<\/p>\n<h2>Conclusion<\/h2>\n<p>You have now successfully installed the &#8220;man&#8221; command on your CentOS 6.2 system. However, it is important to note that CentOS 6.2 is no longer supported, and you should consider upgrading to a newer version to ensure the security and stability of your system.<\/p>\n<p>If you have any questions, comments, or suggestions for improvement, please feel free to share your thoughts in the comments section below. Your feedback is invaluable to us, and it helps us create better and more informative content for our users.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 6.2 is an older version of CentOS and has reached its End of Life (EOL) on November 30, 2020. It is strongly recommended that you upgrade to a newer&#8230;<\/p>\n","protected":false},"author":6,"featured_media":1554,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055],"tags":[1244,1253,1536,1562],"class_list":["post-2150","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-centos","tag-centos-6-2","tag-linux","tag-man"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2150"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2150\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/1554"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}