Update: With the recent release of Wget2 2.0.1, there’s now an official Windows release. You can download it from here.

Wget2 is the next-generation non-interactive command-line content downloader. It will be the successor of Wget.

It comes with new features, such as file compression and multi threaded downloads. You can view the full comparison table in this link.

Originally, Wget2 was designed and compiled for Linux-based systems, but I have successfully compiled it for Windows (using i686-w64-mingw32).

Also, it includes libwget, so you will be able to develop applications using Wget2 (very unstable).

If you are interested, you can download Wget2 for windows through the button below.

View documentation (very buggy)

Please read before using Wget2 and libwget:

Wget2 is currently under development and it isn’t specifically designed for Windows, so it may be very unstable. Please do not use it for serious things. Also, there are currently some functions that doesn’t work as intended on Windows, such as:

However, it is very useful to quickly download files from the internet.

Categories: Releases


A junior open-source developer on GitHub (github.com/LumitoLuma) and owner of this website (www.lumito.net). His favorite programming language is C++, followed by C, C# and Java.


msetzerii · December 4, 2021 at 11:47 AM

I’ve used the wget2 that is with Fedora linux, and it works fine, but also have a need to use it in windows environment. I’ve used your 1.99.2 version and it works fine, but have tried to use the latest git version, but trying to compile it using the contrib/mingw fails with a message about libev4 not found.

Has a major issue with dirname not working with the standard git, but found a fix for that since file is in a different location in the contrib/mingw.

Use following lines to download wget2 and build, but gets error about libev4 not found??
These goes thru a major build of it, but then fails with the error message, and I’ve found nothing to solve the libev issue. The Fedora has the latest libev-devel installed, so believe it is something in either the windows or the ming compiler configuration.

Just wonder if you are still working on it? Thanks.
git clone –depth 1 https://gitlab.com/gnuwget/wget2/
cd wget2
sed -i ‘s_/usr/lib/gcc/$PREFIX_/usr/$PREFIX_g’ contrib/mingw
time bash -x contrib/mingw >/root/wget2build-stdout 2>/root/wget2build-stderr

Time till error
real 27m31.013s
user 19m59.693s
sys 5m20.018s

Creates 27981 Dec 4 08:55 wget2build-stderr
Last lines..
configure: WARNING:
You will not be able to create source packages with ‘make dist’
because gtk-doc >= 1.14 is not found.
configure: error: ***
*** libev4 was not found.

Creates 1404790 Dec 4 08:55 wget2build-stdout
Last lines.
checking for python extension module directory… ${exec_prefix}/lib64/python3.9/site-packages
checking for libev… no

    Lumito · December 4, 2021 at 11:59 AM

    Hello msetzerii,

    Yes, I’m still working on this project, but as you have just seen, it’s very hard to get a working build for Windows (that’s why I haven’t released Wget2 2.0.0 for Windows yet). But I hope that eventually I’ll get a working release!

    Thanks a lot for using my software.

      rfl890 · February 28, 2022 at 7:59 PM

      ./configure and make works fine on Ubuntu 20.04, but at one of the CC files, the CC fails with some weird ANSI error or something. (I built it some time ago, I forgot). I’m using LLVM MinGW-w64 and x86_64-w64-mingw32-gcc

        Lumito · February 28, 2022 at 8:18 PM

        Hello rfl890,

        I used MSYS2 in Mingw32 (or 64, I don’t remember) and GCC to build this release, but it is also very hard to get it to work. It also requieres you to install a bunch of dependencies to enable all the features that wget2 supports.

        Thanks a lot for using my software.

XTeslaUA · March 29, 2022 at 4:02 PM

Hello. Thanks for GNU Wget2 V1.99.2 for Windows
But does’t want to download html internal links, only index.html, everything works on a simple wget. -r use, in Wget all work.

I give a command
wget2-1.99.2\bin\wget2.exe -r -k -l 7 -p -t 2 -P download https://www.gazprom-neft.ru/ –max-threads=20 –timeout=10 –execute robots=off –no-check-certificate –user-agent=”Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.9 Safari/536.5″ -o log

in LOG error
URL ‘/’ not followed (page requisites + level)
URL ‘/company/’ not followed (page requisites + level)
URL ‘/company/’ not followed (page requisites + level)
URL ‘/company/’ not followed (page requisites + level)
URL ‘/company/about/’ not followed (page requisites + level)
URL ‘/company/about/’ not followed (page requisites + level)

Please help

    Lumito · April 23, 2022 at 9:56 PM

    Hello XTeslaUA,

    Sorry for my late response. Unfortuanlly, I can’t help much with this issue. But I’ve seen that you’ve already reported it at Wget2’s GitLab repo (https://gitlab.com/gnuwget/wget2/-/issues/592), so that’s good.

    Thanks a lot for using my software.

    UPDATE: added -r to problematic functions.

Leave a Reply

Avatar placeholder