Main Tutorials

wget on Mac OS X

By default, there is no wget on Mac OS X.


$ wget http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz
-bash: wget: command not found

On Mac OS X, the equivalent of Linux’s wget is curl -O


$ curl -O http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 49 9112k   49 4481k    0     0   654k      0  0:00:13  0:00:06  0:00:07  793k

P.S Uppercase alphabet O, not number zero.

Note
If you really like the original wget on Mac OS X, try install with brew


brew install wget

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
5 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
toan ho
4 years ago

awesome. thanks for having this.

frankkode
4 years ago

you saved me thanks

Kevin D
4 years ago

This just helped me. Thank you. Didn’t think of using brew

Walter Friagas
4 years ago

How can you write with those eyes?

Rodrigo Mego
4 years ago
Reply to  Walter Friagas

He writes with his hands…