Bash: wget: command not found on Centos / RHEL Linux

Fig.01: Installing GNU/wget on CentOS/RHEL using yum command

Fig.01: Installing GNU/wget on CentOS/RHEL using yum command

If wget not installed you should see an error that read as follows:

bash: wget: command not found

Fix the error by installing wget

Type the following command to install GNU/wget as root user:
$ sudo yum install wget
Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: mirror01.idc.hinet.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-10.el7_0.1 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
 Package        Arch             Version                   Repository      Size
================================================================================
Installing:
 wget           x86_64           1.14-10.el7_0.1           base           545 k
 
Transaction Summary
================================================================================
Install  1 Package
 
Total download size: 545 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
wget-1.14-10.el7_0.1.x86_64.rpm                            | 545 kB   00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : wget-1.14-10.el7_0.1.x86_64                                  1/1 
  Verifying  : wget-1.14-10.el7_0.1.x86_64                                  1/1 
 
Installed:
  wget.x86_64 0:1.14-10.el7_0.1                                                 
 
Complete!

Now you can use wget command to grab files and more:
$ wget http://url-example.org/file.tar.gz
$ wget ftp://foo/bar/file.pdf

Examples and usage: How to install wget on RHEL/CentOS 7 using yum