Error:
-bash: wget: command not found
You get this error when wget isn’t installed (or in some other situations where you have to use the full path to wget). To install wget on CentOS 5 or 6 use this command:
yum install wget -y
Debian:
apt-get install wget
apt-get install wget