How to Install wget on CentOS 5.7

If your CentOS 5.7 server has been installed with minimal installation, wget command will not exist. Wget is a free network utility for linux to download files from the Web. Therefore, there is simple step to install the wget command utility into your CentOS 5.7 server.

When i try to download the webmin, i got this error:

[root@CentOS57 ~]# wget
-bash: wget: command not found

Simply run this command to install wget

[root@CentOS57 ~]# yum install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
base                                                                         | 1.1 kB     00:00
extras                                                                       | 2.1 kB     00:00
updates                                                                      | 1.9 kB     00:00
updates/primary_db                                                           | 480 kB     00:03
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package wget.i386 0:1.11.4-2.el5_4.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

 Package             Arch                Version                          Repository           Size
 wget                i386                1.11.4-2.el5_4.1                 base                582 k

Transaction Summary
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 582 k
Is this ok [y/N]: y
Downloading Packages:
wget-1.11.4-2.el5_4.1.i386.rpm                                               | 582 kB     00:04
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : wget                                                                         1/1

  wget.i386 0:1.11.4-2.el5_4.1