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

Share this Article :

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

Also Read :   Static Website Configuration for Nginx Web Server on CentOS 6 / CentOS 7

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