wget for OS X

One Linux utility that I find very useful is wget. Last night I found out that Mac OS X 10.4.7 doesn’t include wget and I was a bit stuffed… luckily I found Quentin Stafford-Fraser’s OS X port of GNU wget. I needed to refer to the blog post comments to get things working but the basic process was to issue the following commands from a terminal:

sudo mkdir /usr/local
sudo mkdir /usr/local/bin
sudo mkdir /usr/local/man
sudo mkdir /usr/local/man/man1
sudo mkdir /usr/local/etc
sudo cp wget /usr/local/bin
sudo cp wget.1 /usr/local/man/man1
sudo cp wgetrc /usr/local/etc

Then, create a file called .bash_profile containing the following:

export PATH=$PATH:/usr/local/bin
export MANPATH=$MANPATH:/usr/local/man

After logging off and on again, issuing the wget url or man wget commands from the terminal should produce the desired results.

2 thoughts on “wget for OS X

Leave a Reply