wget replacement in MAC OS X Server

Category:

I have a MAC OS X Server and would like to be able to use "wget" command to download some file using Terminal. However, wget doesn't come with it. So, I checked on Google and found an article about using Curl as a replacement for wget. What you have to do is run command below in Terminal :

echo 'alias wget="curl -O"' >> ~/.bash_profile

Then, log out and login again. Now, you can use "wget" command to download file as you normally do. For example, I ran

wget http://pecl.php.net/get/APC-3.1.7.tgz

It will looks like this :

Server Information - Software
- Mac OS X Server - Snow Leopard 10.6.7

Source : http://www.mymacosx.com/terminal/wget-replacement-macos.html

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <pre> <br /> <img> <center>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or class="OPTIONS" [title="the title"].
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.