Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Restoring curl
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JoeLiberté" data-source="post: 1509453" data-attributes="member: 300017"><p>Hello everyone,</p><p>I did something stupid and need your help.</p><p></p><p>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.</p><p>(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.)</p><p>Anyway, the reason why my script didn't work was quite simple. I didn't have "wget" on my system. </p><p></p><p>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.)</p><p></p><p>Anyway, this is the moment when my stupidity struck. </p><p>Half overtired, half distracted, I typed in without thinking or looking on my screen:</p><p>"sudo mv -v /Users/myname/Downloads/wget /usr/bin/curl"</p><p>D'oh!!!</p><p></p><p>Don't ask me why I did that.. It just happened. </p><p>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.</p><p>Any help?</p></blockquote><p></p>
[QUOTE="JoeLiberté, post: 1509453, member: 300017"] 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" D'oh!!! 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? [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Restoring curl
Top