Results 1 to 2 of 2

Thread: Restoring curl

  1. #1

    Member Since
    Apr 12, 2013
    Restoring curl
    Hello everyone,
    I did something stupid and need your help.

    Thing is, I am kind of new to OSX and I am just trying to find my way around this system. I am used to work on linux machines. And just right now one of my download scripts refused to work.
    (I often build little download scripts, because I am on a volume limit with my internet and can't cancel my contract for another one and a half year, so I download what I need at a friend's place.)
    Anyway, the reason why my script didn't work was quite simple. I didn't have "wget" on my system.

    A simple google question later, I found out that OSX is using curl, but I was unsuccesful finding a follow option similar to wget -f in the man of curl, so I decided to install wget on my system. I found a precompiled version of wget. But I still didn't know where to put it. I figured it would be in the same folder as curl is in. So I ran a "find / -name curl 2>/dev/null" and found curl in /usr/bin/curl. (Could have guessed that.. But after the home folder isn't in /home/username/ I've became careful.)

    Anyway, this is the moment when my stupidity struck.
    Half overtired, half distracted, I typed in without thinking or looking on my screen:
    "sudo mv -v /Users/myname/Downloads/wget /usr/bin/curl"

    Don't ask me why I did that.. It just happened.
    Well, I renamed it to wget and made it executable and my script is working now, but I overwrote curl's binary. And now, I am wondering how to restore it.
    Any help?

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    2012 13" MBP (2.5 i5, 8GB)
    There are older versions of the binary here. However, if you want/need a more modern version, simply install a package manager such as Homebrew or MacPorts and use those to build it.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Restoring OS X
    By Semotd in forum OS X - Operating System
    Replies: 7
    Last Post: 11-11-2014, 11:39 AM
  2. Applescript Curl and Variable Help
    By FallenAsh in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 01-06-2013, 02:59 PM
  3. Restoring to old OS
    By kuklachica in forum OS X - Operating System
    Replies: 9
    Last Post: 02-08-2012, 07:19 AM
  4. Restoring a G4
    By SAMills in forum Apple Desktops
    Replies: 2
    Last Post: 02-26-2008, 09:50 AM
  5. Restoring New HD
    By celtictricky in forum OS X - Operating System
    Replies: 4
    Last Post: 04-14-2007, 02:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts