macOS
brew install wget2local Homebrew formula metadata
sudo port install wget2MacPorts ports tree · net/wget2/Portfile · source: api.github.com
brew
Successor of GNU Wget, a file and recursive website downloader. Version 2.2.1 via Homebrew; verified 2026-05-20.
install
brew install wget2local Homebrew formula metadata
sudo port install wget2MacPorts ports tree · net/wget2/Portfile · source: api.github.com
sudo apk add wget2Alpine Linux edge package indexes · wget2 · source: dl-cdn.alpinelinux.org
sudo apt install libwget3Debian stable package indexes · libwget3 · source: deb.debian.org
sudo dnf install wget2Fedora Rawhide package metadata · wget2 · source: dl.fedoraproject.org
nix profile install nixpkgs#wget2nixpkgs package indexes · pkgs/by-name/wg/wget2/package.nix · source: api.github.com
sudo apt install libwget2t64Ubuntu 24.04 LTS package indexes · libwget2t64 · source: archive.ubuntu.com
sudo zypper install libwget4openSUSE Tumbleweed package metadata · libwget4 · source: download.opensuse.org
scoop install main/wget2Scoop official bucket manifest trees · bucket/wget2.json · source: api.github.com
winget install --id GNU.Wget2 -eWindows Package Manager source index · GNU.Wget2 · source: cdn.winget.microsoft.com
overview
Successor of GNU Wget, a file and recursive website downloader
history
GNU Wget2 is the GNU project's modern successor to GNU Wget, keeping the familiar non-interactive downloader role while moving the implementation to a new codebase built around libwget. Upstream describes it as a file and recursive website downloader written from scratch, with libwget providing the reusable web-client functions.
Its package-nerd identity is tied to the long Unix tradition of scripting downloads with Wget, but Wget2 exists to make that role fit newer web infrastructure: HTTP/2, compression, parallel connections, TLS features, Metalink, robots handling, and richer parsing for recursive downloads.
The public Wget2 repository on GitLab was created in April 2017, after earlier GNU Wget development had accumulated decades of compatibility expectations. A 2017 GNU Hackers Meeting presentation framed Wget2 around the need to support newer web technologies and improve the testability and extensibility of the downloader.
GNU announced Wget2 2.0.0 on 26 September 2021. In that announcement, maintainer Tim Ruehsen described Wget2 as a from-scratch successor that wraps libwget, and explicitly noted that Wget 1.x would continue to be maintained while breaking changes and new functionality went into Wget2 and libwget.
Subsequent releases continued the separate Wget2 line rather than replacing Wget in place. GitLab lists releases including 2.1.0 in 2023 and 2.2.1 at the end of 2025, and the January 2026 GNU announcement again positioned Wget2 as the successor focused on faster modern HTTP operation.
Wget2's adoption has been cautious because Wget 1.x is a deeply embedded command-line tool in scripts, build systems, and distribution tooling. The 2.0.0 announcement called Wget2 a drop-in replacement in many cases except WARC and FTP, but also warned users to test because subtle differences could matter.
The project therefore occupies a parallel-successor role in packaging ecosystems: it is packaged as wget2 rather than silently supplanting wget in many environments, letting users opt into the faster libwget-based implementation while preserving old Wget behavior for compatibility-sensitive scripts.
Users reach for Wget2 for the same broad jobs as Wget: downloading individual URLs, recursively mirroring sites, converting links for offline use, fetching URLs from input files, and automating downloads in shell scripts. Its advantages are most visible on modern web servers where HTTP/2, compression, persistent connections, and parallelism can improve throughput.
The README also highlights package-nerd features beyond simple fetching, including Metalink support, IDN handling, robots.txt handling, HSTS, cookie-domain checking via the Public Suffix List, proxy support, and parsers for HTML, CSS, XML, RSS, Atom, and sitemaps used during recursive retrieval.
Wget2 matters because it is not merely another downloader; it is the official GNU attempt to evolve one of the classic Unix network commands without breaking the installed base overnight. The split between wget and wget2 gives distributions and users a migration path instead of forcing a compatibility cliff.
The libwget architecture is also significant for packagers and developers because it separates reusable client functionality from the command-line frontend. That makes Wget2 both an end-user command and a test bed for the library direction of the GNU Wget family.
security posture
No matching local secret-handling manifest was found for wget2. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.wget2rc~/.config/wget2/wget2rc~/.config/wget/wget2rcCredential-bearing paths to review before unattended agent runs.
~/.netrc~/.wget2rc~/.config/wget2/wget2rc~/.config/wget/wget2rcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
wget2 | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://gitlab.com/gnuwget/wget2
install metadata
| Package key | brew:wget2 |
|---|---|
| Version | 2.2.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/wget2 |
| Homepage | https://gitlab.com/gnuwget/wget2 |
| Repository | https://gitlab.com/gnuwget/wget2 |
| Upstream docs | https://gitlab.com/gnuwget/wget2/-/blob/master/README.md |
| License | GPL-3.0-or-later |
| Source archive | https://ftpmirror.gnu.org/gnu/wget/wget2-2.2.1.tar.gz |
| Last updated | 2026-05-20T17:37:37Z |
| Pulse | updated |
| Dependencies | brotli, gettext, gnutls, gpgme, libidn2, libnghttp2, libpsl, lzlib, pcre2, xz, zstd |
| Build dependencies | doxygen, gnu-sed, graphviz, pandoc, pkgconf, texinfo |
| Uses from macOS | bzip2 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | wget2 |
| Version Scheme | 0 |
| Revision | 2 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libwget3 2.2.0+ds-1+deb13u1
Download library for files and recursive websites
https://gitlab.com/gnuwget/wget2
sudo apt install libwget3wget2 2.2.0+ds-1+deb13u1
file and recursive website downloader
https://gitlab.com/gnuwget/wget2
sudo apt install wget2wget2-dev 2.2.0+ds-1+deb13u1
development file for libwget
https://gitlab.com/gnuwget/wget2
sudo apt install wget2-devwget2
nix profile install nixpkgs#wget2libwget2t64 2.1.0-2.1build2
Download library for files and recursive websites
https://gitlab.com/gnuwget/wget2
sudo apt install libwget2t64wget2 2.1.0-2.1build2
file and recursive website downloader
https://gitlab.com/gnuwget/wget2
sudo apt install wget2wget2-dev 2.1.0-2.1build2
development file for libwget2t64
https://gitlab.com/gnuwget/wget2
sudo apt install wget2-devwget2 2.2.1-r1
Network utility to retrieve files from the Web
https://www.gnu.org/software/wget/wget.html
sudo apk add wget2wget2-dbg 2.2.1-r1
Network utility to retrieve files from the Web (debug symbols)
https://www.gnu.org/software/wget/wget.html
sudo apk add wget2-dbgwget2-dev 2.2.1-r1
Network utility to retrieve files from the Web (development files)
https://www.gnu.org/software/wget/wget.html
sudo apk add wget2-devwget2-doc 2.2.1-r1
Network utility to retrieve files from the Web (documentation)
https://www.gnu.org/software/wget/wget.html
sudo apk add wget2-docwget2-libs 2.2.1-r1
Network utility to retrieve files from the Web (libraries)
https://www.gnu.org/software/wget/wget.html
sudo apk add wget2-libswget2 2.2.1-2.fc44
An advanced file and recursive website downloader
https://gitlab.com/gnuwget/wget2
sudo dnf install wget2wget2-devel 2.2.1-2.fc44
Libraries and header files needed for using wget2 libraries
https://gitlab.com/gnuwget/wget2
sudo dnf install wget2-develwget2-libs 2.2.1-2.fc44
Runtime libraries for GNU Wget2
https://gitlab.com/gnuwget/wget2
sudo dnf install wget2-libswget2-wget 2.2.1-2.fc44
wget2 shim to provide wget
https://gitlab.com/gnuwget/wget2
sudo dnf install wget2-wgetsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.