macOS
brew install wget2local Homebrew formula metadata
sudo port install wget2MacPorts ports tree · net/wget2/Portfile · 来源: api.github.com
安装
brew install wget2local Homebrew formula metadata
sudo port install wget2MacPorts ports tree · net/wget2/Portfile · 来源: api.github.com
sudo apk add wget2Alpine Linux edge package indexes · wget2 · 来源: dl-cdn.alpinelinux.org
sudo dnf install wget2Fedora Rawhide package metadata · wget2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#wget2nixpkgs package indexes · pkgs/by-name/wg/wget2/package.nix · 来源: api.github.com
sudo zypper install wget2openSUSE Tumbleweed package metadata · wget2 · 来源: download.opensuse.org
scoop install main/wget2Scoop official bucket manifest trees · bucket/wget2.json · 来源: api.github.com
winget install --id GNU.Wget2 -eWindows Package Manager source index · GNU.Wget2 · 来源: cdn.winget.microsoft.com
概览
Successor of GNU Wget, a file and recursive website downloader
历史
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.
安全态势
没有找到 wget2 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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/wget2rc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
wget2 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://gitlab.com/gnuwget/wget2
安装元数据
| 软件包键 | brew:wget2 |
|---|---|
| 版本 | 2.2.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/wget2 |
| 主页 | https://gitlab.com/gnuwget/wget2 |
| 仓库 | https://gitlab.com/gnuwget/wget2 |
| 上游文档 | https://gitlab.com/gnuwget/wget2/-/blob/master/README.md |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://ftpmirror.gnu.org/gnu/wget/wget2-2.2.1.tar.gz |
| 最后更新 | 2026-05-20T17:37:37Z |
| Pulse | updated |
| 依赖 | brotli, gettext, gnutls, gpgme, libidn2, libnghttp2, libpsl, lzlib, pcre2, xz, zstd |
| 构建依赖 | doxygen, gnu-sed, graphviz, pandoc, pkgconf, texinfo |
| macOS 提供的库 | bzip2 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-wget来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.