How to Install wget, telnet, man Utility on CentOS 6.4

centos 6.3On minimal CentOS 6.4 installation, wget, man and telnet command utilities does not install automatically. Wget is a free network utility for linux to download files from the Web. 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. Telnet is a network protocol used on the Internet or local area networks. Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers and very useful for troubleshooting and verify the opened ports. You will get the following warning when you use wget, man and telnet on minimal CentOS 6.4 installation.

[root@centos64 ~]# wget
-bash: wget: command not found
[root@centos64 ~]# man
-bash: man: command not found
[root@centos64 ~]# telnet
-bash: telnet: command not found

So here are the steps to install those three useful command utilities :

[root@centos64 ~]# yum install wget man telnet -y

Full installation :

[root@centos64 ~]# yum install wget man telnet -y
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.hostemo.com
 * extras: mirrors.hostemo.com
 * updates: mirrors.hostemo.com
base                                                                         | 3.7 kB     00:00
extras                                                                       | 3.5 kB     00:00
updates                                                                      | 3.5 kB     00:04
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
---> Package telnet.x86_64 1:0.17-47.el6_3.1 will be installed
---> Package wget.x86_64 0:1.12-1.8.el6 will be installed
--> 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
 telnet                 x86_64         1:0.17-47.el6_3.1                         base          58 k
 wget                   x86_64         1.12-1.8.el6                              base         482 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       5 Package(s)

Total download size: 955 k
Installed size: 2.8 M
Downloading Packages:
(1/5): man-1.6f-32.el6.x86_64.rpm                                            | 263 kB     00:05
(2/5): telnet-0.17-47.el6_3.1.x86_64.rpm                                     |  58 kB     00:00
(3/5): wget-1.12-1.8.el6.x86_64.rpm                                          | 482 kB     00:09
(4/5): xz-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm                        | 137 kB     00:04
(5/5): xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm            |  16 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                                42 kB/s | 955 kB     00:22
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/5
  Installing : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64                           2/5
  Installing : man-1.6f-32.el6.x86_64                                                           3/5
  Installing : 1:telnet-0.17-47.el6_3.1.x86_64                                                  4/5
  Installing : wget-1.12-1.8.el6.x86_64                                                         5/5
  Verifying  : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64                           1/5
  Verifying  : man-1.6f-32.el6.x86_64                                                           2/5
  Verifying  : xz-4.999.9-0.3.beta.20091007git.el6.x86_64                                       3/5
  Verifying  : wget-1.12-1.8.el6.x86_64                                                         4/5
  Verifying  : 1:telnet-0.17-47.el6_3.1.x86_64                                                  5/5

Installed:
  man.x86_64 0:1.6f-32.el6      telnet.x86_64 1:0.17-47.el6_3.1      wget.x86_64 0:1.12-1.8.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!

How to Fix “-bash: man: command not found” on CentOS 6.3

centos6This quick post shows the step to install “man” command on Linux. In linux CentOS 6.2 and CentOS 6.3 operating system, “man” command has not been installed automatically. 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.

If you typed “man” command on the linux server that has not been installed with man command, you will get the following message :

[root@centos63 ~]# man tar
-bash: man: command not found

To install “man“, simply run this command :

[root@centos63 ~]# yum install man -y
Loaded plugins: fastestmirror, presto, priorities
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * extras: centos.ipserverone.com
 * updates: centos.ipserverone.com
base                                                                         | 3.7 kB     00:00
extras                                                                       | 3.0 kB     00:00
updates                                                                      | 3.5 kB     00:00
updates/primary_db                                                           | 2.3 MB     00:19
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package man.i686 0:1.6f-30.el6 will be installed
--> Processing Dependency: lzma for package: man-1.6f-30.el6.i686
--> Running transaction check
---> Package xz-lzma-compat.i686 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.i686
--> Running transaction check
---> Package xz.i686 0:4.999.9-0.3.beta.20091007git.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch         Version                                     Repository    Size
====================================================================================================
Installing:
 man                    i686         1.6f-30.el6                                 base         260 k
Installing for dependencies:
 xz                     i686         4.999.9-0.3.beta.20091007git.el6            base         137 k
 xz-lzma-compat         i686         4.999.9-0.3.beta.20091007git.el6            base          16 k

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

Total download size: 413 k
Installed size: 864 k
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 413 k
(1/3): man-1.6f-30.el6.i686.rpm                                              | 260 kB     00:01
(2/3): xz-4.999.9-0.3.beta.20091007git.el6.i686.rpm                          | 137 kB     00:00
(3/3): xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686.rpm              |  16 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                               138 kB/s | 413 kB     00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : xz-4.999.9-0.3.beta.20091007git.el6.i686                                         1/3
  Installing : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686                             2/3
  Installing : man-1.6f-30.el6.i686                                                             3/3
  Verifying  : xz-4.999.9-0.3.beta.20091007git.el6.i686                                         1/3
  Verifying  : man-1.6f-30.el6.i686                                                             2/3
  Verifying  : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686                             3/3

Installed:
  man.i686 0:1.6f-30.el6

Dependency Installed:
  xz.i686 0:4.999.9-0.3.beta.20091007git.el6 xz-lzma-compat.i686 0:4.999.9-0.3.beta.20091007git.el6

Complete!

Once man command has been installed successfully, you will be able to read the manual pages :

[root@centos63 ~]# man tar
TAR(1)                           User Commands                          TAR(1)

NAME
       tar - manual page for tar 1.23

SYNOPSIS
       tar [OPTION...] [FILE]...

DESCRIPTION
       GNU  âtarâ  saves  many  files together into a single tape or disk archive, and can
       restore individual files from the archive.

EXAMPLES
       tar -cf archive.tar foo bar
              # Create archive.tar from files foo and bar.

       tar -tvf archive.tar
              # List all files in archive.tar verbosely.

       tar -xf archive.tar
              # Extract all files from archive.tar.

..
..

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!

How to Install man Pages Command on CentOS 5.7

Man pages are a common way to learn the commands that are on your system. 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. This post will show the quick steps to install man command on linux CentOS 5.7 server.

[root@CentOS57 ~]# yum install man -y
[root@CentOS57 ~]# yum install man -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.oscc.org.my
 * extras: mirror.oscc.org.my
 * rpmforge: ftp-stud.fht-esslingen.de
 * updates: mirror.oscc.org.my
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                      base                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): man-1.6d-2.el5.i386.rpm                                               | 262 kB     00:02
(3/3): groff-1.18.1.1-13.el5.i386.rpm                                        | 1.9 MB     00:17
----------------------------------------------------------------------------------------------------
Total                                                               104 kB/s | 2.2 MB     00:21
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!

To man command manual simply run “man man” as below :

[root@CentOS57 ~]# man man
man(1)                                                                  man(1)



NAME
       man - format and display the on-line manual pages

SYNOPSIS
       man  [-acdfFhkKtwW]  [--path]  [-m system] [-p string] [-C config_file]
       [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S  section_list]
       [section] name ...


DESCRIPTION
       man formats and displays the on-line manual pages.  If you specify sec-
       tion, man only looks in that section of the manual.  name  is  normally
       the  name of the manual page, which is typically the name of a command,
       function, or file.  However, if name contains  a  slash  (/)  then  man
       interprets  it  as a file specification, so that you can do man ./foo.5
       or even man /cd/foo/bar.1.gz.

       See below for a description of where man  looks  for  the  manual  page
       files.


OPTIONS
       -C  config_file
              Specify   the   configuration   file  to  use;  the  default  is
              /etc/man.config.  (See man.config(5).)

       -M  path
              Specify the list of directories to search for man pages.   Sepa-
              rate  the directories with colons.  An empty list is the same as
              not specifying -M at all.  See SEARCH PATH FOR MANUAL PAGES.

       -P  pager
              Specify which pager to use.  This option overrides the  MANPAGER
              environment  variable,  which  in turn overrides the PAGER vari-
              able.  By default, man uses /usr/bin/less -is.

       -B     Specify which browser to use on HTML files.  This  option  over-
              rides  the  BROWSER  environment  variable. By default, man uses
           /usr/bin/less-is,

       -H     Specify a command that renders HTML files as text.  This  option
              overrides  the  HTMLPAGER  environment variable. By default, man
              uses /bin/cat,

       -S  section_list
              List is a colon separated list of  manual  sections  to  search.
              This option overrides the MANSECT environment variable.

       -a     By default, man will exit after displaying the first manual page
              it finds.  Using this option forces man to display all the  man-
              ual pages that match name, not just the first.

       -c     Reformat  the  source man page, even when an up-to-date cat page
              exists.  This can be meaningful if the cat  page  was  formatted
              for  a screen with a different number of columns, or if the pre-
              formatted page is corrupted.

       -d     Donât actually display the man  pages,  but  do  print  gobs  of
              debugging information.

       -D     Both display and print debugging info.

       -f     Equivalent to whatis.

       -F or --preformat
              Format only - do not display.

       -h     Print a help message and exit.

       -k     Equivalent to apropos.

       -K     Search  for  the  specified  string in *all* man pages. Warning:
              this is probably very slow!  It  helps  to  specify  a  section.
              (Just  to  give  a  rough idea, on my machine this takes about a
              minute per 500 man pages.)

       -m  system
              Specify an alternate set of man pages to  search  based  on  the
              system name given.

       -p  string
              Specify  the  sequence  of  preprocessors to run before nroff or
              troff.  Not all installations will have a full set of preproces-
              sors.   Some of the preprocessors and the letters used to desig-
              nate them are: eqn (e), grap (g), pic (p), tbl (t), vgrind  (v),
              refer  (r).   This  option  overrides the MANROFFSEQ environment
              variable.

       -t     Use /usr/bin/groff -Tps -mandoc to format the manual page, pass-
              ing  the  output  to  stdout.   The  default  output  format  of
              /usr/bin/groff -Tps -mandoc is Postscript, refer to  the  manual
              page  of  /usr/bin/groff -Tps -mandoc for ways to pick an alter-
              nate format.

       Depending on the selected  format  and  the  availability  of  printing
       devices,  the  output  may  need  to  be  passed through some filter or
       another before being printed.

       -w or --path
              Donât actually display the man pages, but  do  print  the  loca-
              tion(s) of the files that would be formatted or displayed. If no
              argument is given: display (on stdout) the list  of  directories
              that  is  searched by man for man pages. If manpath is a link to
              man, then "manpath" is equivalent to "man --path".

       -W     Like -w, but print file names one per line,  without  additional
              information.   This is useful in shell commands like man -aW man
              | xargs ls -l

How to Install “man” Command on Linux CentOS 6.2

Question :
When i try to read the linux manual pages using man command, it returned me this error message. How to install man command ?

[root@centos62 ~]# man chown
-bash: man: command not found

Answer :
“man” command has not been installed on your linux CentOS 6.2 server. 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. To install “man”, simply run this command :

[root@centos62 ~]# yum install man -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.hostemo.com
 * epel: ftp.riken.jp
 * extras: mirrors.hostemo.com
 * updates: ossm.utm.my
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package man.i686 0:1.6f-29.el6 will be installed
--> Processing Dependency: lzma for package: man-1.6f-29.el6.i686
--> Running transaction check
---> Package xz-lzma-compat.i686 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.i686
--> Running transaction check
---> Package xz.i686 0:4.999.9-0.3.beta.20091007git.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package            Arch     Version                                 Repository                Size
====================================================================================================
Installing:
 man                i686     1.6f-29.el6                             CentOS6.2-Repository     260 k
Installing for dependencies:
 xz                 i686     4.999.9-0.3.beta.20091007git.el6        CentOS6.2-Repository     137 k
 xz-lzma-compat     i686     4.999.9-0.3.beta.20091007git.el6        CentOS6.2-Repository      16 k

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

Total download size: 412 k
Installed size: 864 k
Downloading Packages:
----------------------------------------------------------------------------------------------------
Total                                                               3.6 MB/s | 412 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : xz-4.999.9-0.3.beta.20091007git.el6.i686                                         1/3
  Installing : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.i686                             2/3
  Installing : man-1.6f-29.el6.i686                                                             3/3

Installed:
  man.i686 0:1.6f-29.el6

Dependency Installed:
  xz.i686 0:4.999.9-0.3.beta.20091007git.el6 xz-lzma-compat.i686 0:4.999.9-0.3.beta.20091007git.el6

Complete!

What is the path or “man” command ?

[root@centos62 ~]# which man
/usr/bin/man

Example of “man” command that will display chown manual page :

[root@centos62 ~]# man chown
CHOWN(1)                         User Commands                        CHOWN(1)

NAME
       chown - change file owner and group

SYNOPSIS
       chown [OPTION]... [OWNER][:[GROUP]] FILE...
       chown [OPTION]... --reference=RFILE FILE...

DESCRIPTION
       This manual page documents the GNU version of chown.  chown changes the user and/or
       group ownership of each given file.  If only an owner (a user name or numeric  user
       ID)  is given, that user is made the owner of each given file, and the filesâ group
       is not changed.  If the owner is followed by a colon and a group name  (or  numeric
       group ID), with no spaces between them, the group ownership of the files is changed
       as well.  If a colon but no group name follows the user name, that user is made the
       owner  of  the  files  and  the  group of the files is changed to that userâs login
       group.  If the colon and group are given, but the owner is omitted, only the  group
       of  the  files is changed; in this case, chown performs the same function as chgrp.
       If only a colon is given, or if the entire operand is empty, neither the owner  nor
       the group is changed.

OPTIONS
       Change  the  owner  and/or group of each FILE to OWNER and/or GROUP.  With --refer-
       ence, change the owner and group of each FILE to those of RFILE.

       -c, --changes
              like verbose but report only when a change is made