Wget is a great command line for grabbing things from the web, but it doesn’t ship with macs. So if you want to install it here are a few steps:
1. download the source file:
2. compile and install it:
tar -zxvf wget-1.11.tar.gz cd wget-1.11/ ./configure make sudo make install
Now the binary file is located in /usr/local/bin/. If you use bash as your default shell then you can add:
PATH=$PATH:/usr/local/bin; export PATH
in your .bash_profile.
Or if you want, you can do a symbolic link to have it in /usr/bin/:
sudo ln -s /usr/local/bin/wget /usr/bin/wget
That's all and ... happy downloading.