Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

This question explains how to do it with curl. The accepted answer also points out that

If wget is available, that would be far simpler.

I looked through mam wget but the got lost in there, and didn't find an option to follow redirects.

share|improve this question

3 Answers 3

up vote 8 down vote accepted

wget follows redirects automatically. Just give the URL as an argument

wget ''
share|improve this answer
Oh. I had given it the wrong url and wandering why it is not working. Thanks a lot. – Vorac Aug 16 '13 at 8:18
Sourceforge URL's often need to be quoted due to the &'s in them as well (pre redirect) – Matt Aug 16 '13 at 15:46

Start the download in chrome browser. When it starts cancel it and go to downloads page. You can see the url for the download. Copy it and use it with wget.

share|improve this answer
This seems to be unnecessarily complicated.  Note that some systems don't have Chrome installed.  Is there any reason why your answer would be preferable over the two-year-old one? – G-Man Jun 2 at 8:27
Aptly said about chrome. I was just trying to provide a simple trick that might be useful for other sites as well. – Prasanna Kumar Jun 2 at 8:53

Click the link, you'll get redirected, and you'll see something like "Redirecting... if you are not automatically redirected, click the direct link.

Copy that [direct] link's location, paste it in the command-line like this

wget ""

That's it! It worked for me.

Edit: You should omit everything after the '?' character in the url, or else the filename will also have this part.

share|improve this answer
Doesn't wget automatically follow redirects for you? – Dmitry Grigoryev Nov 17 at 15:11
@DmitryGrigoryev it would, if it were a proper 301/302 redirect. This is a landing page followed by a scripted redirect. – muru Nov 17 at 15:17

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.