wget is a very useful utility. It can retrieve files from the web using http or ftp protocols. Unfortunately, it does not come natively in Mac OS X. I had occassionally tried to use wget to download some html pages from some websites a few months ago but wget just wasn’t there. I was kind of lazy to download and compile the source until today, when I needed to download some 50 files from a website. I needed wget badly.
It took me not more than 5 minutes to download, build and install. I downloaded the latest and stable version 1.10.2 on Mac OS X 10.4.8.
- Download the source from http://ftp.gnu.org/gnu/wget/
- Unpack the tarball tar xzvf wget-1.10.2.tar.gz
- This creates a directory wget-1.10.2. Change the working directory to it: cd wget-1.10.2
- Configure the build: ./configure
- Build: make
- Install: sudo make install
- wget should now be in /usr/local/bin