From: Jonathan M. <jma...@fa...> - 2009-09-19 18:26:53
|
Josh Greenland wrote: > Is there a way to mass-download MinGW packages? Yes. It's just not very graphical, or very Windows-like. Install wget, and use it in a loop to download all the stuff you need. Using the MinGW wget could be seen either as "cheating", or as being a mild chicken and egg problem (!), so to get you started you can install the GNUwin32 version of wget, downloadable from http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-bin.zip http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-dep.zip Unzip these into an appropriate place (the official location is under %ProgramFiles%\GnuWin32) and then you can download as many of the MinGW files as you want with it. Create a text file with the files you need listed in it, one file per line, like this: binutils-2.19.1-mingw32-bin.tar.gz mingwrt-3.16-mingw32-dev.tar.gz mingwrt-3.16-mingw32-dll.tar.gz msysCORE-1.0.11-bin.tar.gz w32api-3.13-mingw32-dev.tar.gz and save that file as (say) mingw-files.txt Then just run (as a single DOS command, all on one line): for /F %F in (mingw-files.txt) do "%ProgramFiles%\GnuWin32\bin\wget" -c http://downloads.sourceforge.net/mingw/%F and all the files in your list will be downloaded, with no need for interaction with you. Problem solved :) If you have a working MSYS installation already, or a Linux machine, you can generate an initial list of all the relevant files by doing something like (as a single one line command): wget -q -O- http://sourceforge.net/projects/mingw/files/ |grep tar |grep href |sed -e 's/^.*href="//' -e 's%/download"$%%' -e 's%^.*/%%' |grep tar |sort |uniq |egrep -v "(src|doc|lic|man)\.tar" If you do this to create a file list, *please* check and edit your list before downloading all those (close to 300) files -- do you need *all* of them? Some files are previous releases, and so should probably be omitted for most people. Jonathan |