Install wget on Centos 6.4 6.3 5.9 Redhat RHEL Fedora 18 17

Install wget on Centos 6.4 6.3 5.9 Redhat RHEL Fedora 18 17

centos

 

Wget command

Wget is a free utility for non-interactive download of files from the Web.  It supports HTTP, HTTPS, and FTP protocols, and Proxy.

1. Use wget command on Centos 6.4

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

2. Install wget command by yum

[root@localhost ~]# yum install wget
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: virror.hanoilug.org
* epel: buaya.klas.or.id
* extras: virror.hanoilug.org
* updates: ossm.utm.my
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package wget.x86_64 0:1.12-1.8.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
wget x86_64 1.12-1.8.el6 base 482 k

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

Total download size: 482 k
Installed size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
wget-1.12-1.8.el6.x86_64.rpm | 482 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : wget-1.12-1.8.el6.x86_64 1/1
Verifying : wget-1.12-1.8.el6.x86_64 1/1

Installed:
wget.x86_64 0:1.12-1.8.el6

Complete!
[root@localhost ~]#

3. Try to use wget command on Centos 6.4 to download a file

[root@localhost ~]# wget http://mirror01.th.ifl.net/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-netinstall.iso
–2013-05-16 01:46:43– http://mirror01.th.ifl.net/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-netinstall.iso
Resolving mirror01.th.ifl.net… 213.18.249.81
Connecting to mirror01.th.ifl.net|213.18.249.81|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 241172480 (230M) [application/octet-stream]
Saving to: âCentOS-6.4-x86_64-netinstall.iso

 

That’s it. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>