How to Install wget on Linux RHEL 6/7, CentOS 6/7, Oracle Linux 6/7

Wget is a free network utility to download files from the Web using http and ftp, the two most widely used Internet protocols. Wget utility is available for free and licensed is under GNU GPL License. However, it’s also supports https protocol as well as retrieval through HTTP proxies. This article will describe how to install wget on linux RHEL 6/7, CentOS 6/7 and Oracle Linux 6/7.

Symptom:
When you try to download something from linux server, you get this error message.

# wget http://pkgs.repoforge.org/yum/yum-2.4.2-0.4.el5.rf.noarch.rpm
-bash: wget: command not found

Findings:
Looks like you don’t have wget installed on your linux server

READ  How to Install wget on CentOS 6.2

Solution:
Please install wget using yum command as below.

# yum install wget -y

How to download single file without change the file name :

# wget http://pkgs.repoforge.org/yum/yum-2.4.2-0.4.el5.rf.noarch.rpm

How to download file using wget with different name ?

# wget -O wget-filename.zip http://pkgs.repoforge.org/yum/yum-2.4.2-0.4.el5.rf.noarch.rpm

I hope this article gives you some ideas and essential guidance on how to install wget on Linux RHEL 6/7, CentOS 6/7, Oracle Linux 6/7.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

SiteGround.com

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.

TRY FREE

* up to 30 days money back guarantee