Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm writing a shell script that needs to download some data from the Internet and I was just thinking if I can rely on cURL that it's pre-installed on all Unix distributions.
I know that wget is not on OS X by default but cURL is. I also remember me installing cURL on Ubuntu Server but it's already a year or two. I tried Ubuntu Server 12.04 today and it comes with cURL out of the box.

share|improve this question
    
Tried it right now, Ubuntu Desktop 12.04 is not distributed with cURL. –  Martin Jun 14 '12 at 7:55
add comment

4 Answers

up vote 2 down vote accepted

Everything else equals I would say it being more likely that you have wget installed.

Yet, why not simply make a conditional, looking for both wget and curl in the PATH, and use whatever is available, if any? If you want to be ambitious, also feel free to through in lynx, w3m, etc in the mix.

share|improve this answer
add comment

No, cURL is not a standard part of operating systems. It isn't ever standard on all Linux based distributions.

share|improve this answer
    
Is there some kind of list available for each distribution with all pre-installed commands? –  Martin Jun 14 '12 at 7:24
add comment

It should be available for all major distributions, though not considered part of OS generally, and if it is not installed, any admin can install it. since it is opensource, even distros that don't have it can compile it. There is a windows port as well.

share|improve this answer
add comment

It doesn't come with AIX. It's a pain in the butt to install on AIX, lots of dependencies.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.