LinuxCommandLibrary

wget2

Next-generation wget with HTTP/2 support

TLDR

Download file
$ wget2 [https://example.com/file.zip]
copy
Download to specific file
$ wget2 -O [output.zip] [url]
copy
Continue partial download
$ wget2 -c [url]
copy
Download recursively
$ wget2 -r [https://example.com]
copy
Mirror website
$ wget2 -m [https://example.com]
copy
Parallel downloads
$ wget2 --parallel [url1] [url2]
copy
Limit rate
$ wget2 --limit-rate=[1M] [url]
copy
HTTP/2 support
$ wget2 --http2 [url]
copy

SYNOPSIS

wget2 [-O file] [-c] [-r] [options] urls

DESCRIPTION

wget2 is the next-generation version of GNU Wget, rebuilt to support modern protocols and parallel downloading. It adds native HTTP/2 support with multiplexed streams, enabling more efficient communication with servers that support the protocol.
Parallel downloading fetches multiple files simultaneously over reused connections, significantly speeding up batch downloads compared to the sequential approach of the original wget. Recursive downloading and website mirroring are supported with the same familiar -r and -m flags.
The tool maintains command-line compatibility with wget for basic operations like downloading files, resuming interrupted transfers, and recursive mirroring, while improving performance through its modernized network stack.

PARAMETERS

-O FILE

Output filename.
-c, --continue
Resume download.
-r, --recursive
Recursive download.
-m, --mirror
Mirror site.
--parallel
Parallel connections.
--limit-rate RATE
Bandwidth limit.
--http2
Force HTTP/2.
-q, --quiet
Quiet mode.
-P DIR
Save to directory.

CAVEATS

Not all wget options supported. Still in development. May have bugs.

HISTORY

wget2 was developed as a modern rewrite of GNU Wget. It adds contemporary protocols while maintaining compatibility.

SEE ALSO

wget(1), curl(1), aria2c(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard