Thread: Restoring curl
04-12-2013, 11:15 AM #1
- Member Since
- Apr 12, 2013
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.
04-12-2013, 11:41 AM #2
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Semotd in forum OS X - Operating SystemReplies: 7Last Post: 11-11-2014, 11:39 AM
By FallenAsh in forum OS X - Development and DarwinReplies: 3Last Post: 01-06-2013, 02:59 PM
By kuklachica in forum OS X - Operating SystemReplies: 9Last Post: 02-08-2012, 07:19 AM
By SAMills in forum Apple DesktopsReplies: 2Last Post: 02-26-2008, 09:50 AM
By celtictricky in forum OS X - Operating SystemReplies: 4Last Post: 04-14-2007, 02:48 AM