Learn about wget command

Hello, Il like to know how can i use the wget command to download isos directly from the source page, whitout redirections ? Thanks a lot.

man wget

should tell you all you need to know.
I am sure if you use a search engine you can find a thousand examples as well.

1 Like

Have you looked at the manual? :arrow_down:

man wget

Alternatively, you can also use curl. :arrow_down:

man curl

? but server return redirection ! if we not follow 302 we download nothing !

can add --max-redirect=0 for test

OSDN doesn’t allow direct links (aka hotlinking).

This seems to be a bit obfuscated of late … sure in the past I’ve just selected my preferred mirror and then just copied and added the resulting URL after wget (and obviously in the desired directory, or using the -O option)

… whereas now, I needed to click the popup button “Great, take me to download” and then cancel the download itself, copy that URL from the URLbar and paste it after the wget command:
wget https://osdn.net/projects/manjaro/storage/xfce/20.2/manjaro-xfce-20.2-201203-linux59.iso/
(which still seems to involve redirects). :frowning:

Direct links, anyone? :man_shrugging:
i.e. ```

ETA: This is why I was fighting with the edit then … Forum software/rules, sorry @Yochanan

You are right, but when i use wget, always take redirection fakes servers. :slight_smile:

People seem confused here. OP seems to want to download Manjaro ISO from cli with wget, yet users still say to check the manual as if this were about wget and not about getting direct links to downloads.
I have the same issue, I have a broken arch install and don’t feel like rescuing it, so manjaro it was. The problem is that no GUI works on this machine (x is done for), so going to the download page, and clicking a box, let alone redirecting me, isn’t gonna cut it. I have a valid use case for needing permalinks to ISO, but for some stupid reason or another, Manjaro decides to hide these behind GUI friendly walls, with complete disregard to users without a GUI. I’d honestly rather spend 2 hours reinstalling arch than use an OS that disregards its roots…

I’ll confirm this; you can’t even use Lynx or w3m to download, either.

Not sure what the complain is here. Using wget

wget https://osdn.net/projects/manjaro/storage/gnome/20.2/manjaro-gnome-20.2-201203-linux59.iso
--2020-12-29 19:49:17--  https://osdn.net/projects/manjaro/storage/gnome/20.2/manjaro-gnome-20.2-201203-linux59.iso
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving osdn.net (osdn.net)...
Connecting to osdn.net (osdn.net)||:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://osdn.net/frs/redir.php?m=rwthaachen&f=%2Fstorage%2Fg%2Fm%2Fma%2Fmanjaro%2Fgnome%2F20.2%2Fmanjaro-gnome-20.2-201203-linux59.iso [following]
--2020-12-29 19:49:18--  https://osdn.net/frs/redir.php?m=rwthaachen&f=%2Fstorage%2Fg%2Fm%2Fma%2Fmanjaro%2Fgnome%2F20.2%2Fmanjaro-gnome-20.2-201203-linux59.iso
Reusing existing connection to osdn.net:443.
HTTP request sent, awaiting response... 302 Found
Location: https://ftp.halifax.rwth-aachen.de/osdn/storage/g/m/ma/manjaro/gnome/20.2/manjaro-gnome-20.2-201203-linux59.iso [following]
--2020-12-29 19:49:19--  https://ftp.halifax.rwth-aachen.de/osdn/storage/g/m/ma/manjaro/gnome/20.2/manjaro-gnome-20.2-201203-linux59.iso
Resolving ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)..., 2a00:8a60:e012:a00::21
Connecting to ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2819753984 (2,6G) [application/octet-stream]
Saving to: ‘manjaro-gnome-20.2-201203-linux59.iso’

manjaro-gnome-20.2-201203-linux59.i  28%[=================>                                               ] 753,48M  11,0MB/s    eta 2m 56s 

Well. First they didnt make that clear. Lets quote the OP:

So … they want the ‘source’ ISOs?
I guess we can take that to mean where the ISOs are uploaded/stored/etc.

But, if we do that … then I am quite confused as to both OP and your post.

The ISO is hosted on OSDN, and the files are there.
There isnt any problem using curl or wget to download them.

…so whats the problem?

Ah … so you dont understand how to find these ‘source’ links and are making that into some imaginary problem?

Kinda funny … cuz it sounds like you are lost using the CLI.

I will show you some examples using some of the dumbest low-level tools possible.
No browser, nothing…

curl https://www.manjaro.org/download/ | grep download | grep kde

From there you can see the very first line is


Hm … I wonder what happens if I look there?

curl https://www.manjaro.org/downloads/official/kde/ | grep iso

Once again the very first line shows me a link:


Hm … I wonder how I will get that pesky ISO :thinking:

Note … there are a thousand other ways to do this … for example, it would probably have been easier to read the first page and come up with all the OSDN links such as lines like this:

<p>If you are looking for older images check the <a href="https://osdn.net/projects/manjaro-archive/storage/kde/">KDE</a> archive.</p>

Stop complaining about your ineptitude as if it is some sort of example of manjaro failing :wink:


A post was split to a new topic: Downloading with wget