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.
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
Looks like you don’t have wget installed on your linux server
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.