Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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

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

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

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

share|improve this answer

Your Answer


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.