Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 want to fetch a tarball of this python library from terminal.

However, I cannot simply call


because doing so retrieves a web page. How do I fetch this resource from terminal?

share|improve this question
web browser from terminal, such as lynx? – Jakob Weisblat Jul 18 '12 at 3:49
up vote 10 down vote accepted

Use curl instead – and if you know it's a tar archive, you can just pipe the output into tar to extract it automatically.

curl -L | tar xz

If you just want to save the file, use the -o option with your own name, or try -O, which will use the remote file name automatically (but might not always work).

From man curl:

-L: If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place

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.