Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper, scoop, winget 安装 wget2

查看 wget2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install wget2

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install wget2

MacPorts ports tree · net/wget2/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add wget2

Alpine Linux edge package indexes · wget2 · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install wget2

Debian stable package indexes · wget2 · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install wget2

Fedora Rawhide package metadata · wget2 · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#wget2

nixpkgs package indexes · pkgs/by-name/wg/wget2/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install wget2

openSUSE Tumbleweed package metadata · wget2 · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/wget2

Scoop official bucket manifest trees · bucket/wget2.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GNU.Wget2 -e

Windows Package Manager source index · GNU.Wget2 · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Successor of GNU Wget, a file and recursive website downloader

命令和别名

  • wget2

历史

项目历史与用法

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.

时间线

  • 2017: The official GitLab repository for GNU Wget2 is created.
  • 2018: GitLab records the wget2-1.99.1 release.
  • 2019: GitLab records the 1.99.2 beta release.
  • 2021-09-26: GNU announces Wget2 2.0.0 as the from-scratch successor to GNU Wget.
  • 2023: GitLab records Wget2 2.1.0.
  • 2026-01-04: GNU announces Wget2 2.2.1, again emphasizing modern HTTP performance.

Related projects

  • GNU Wget remains the compatibility baseline and historical predecessor.
  • libwget is the library layer around which Wget2 is built.
  • curl, aria2, HTTrack, and BusyBox wget are adjacent command-line download tools with different tradeoffs.

安全态势

尚未找到受保护工具覆盖

没有找到 wget2 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 11 个运行时依赖。
  • 构建元数据列出 6 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.wget2rc~/.config/wget2/wget2rc~/.config/wget/wget2rc

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.netrc~/.wget2rc~/.config/wget2/wget2rc~/.config/wget/wget2rc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
wget2cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.2.1
管理器更新时间2026-05-20
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namewget2
Version Scheme0
Revision2
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libwget3 2.2.0+ds-1+deb13u1

Download library for files and recursive websites

https://gitlab.com/gnuwget/wget2

sudo apt install libwget3
  • Section: libs
  • Architecture: amd64
  • Source Package: wget2
  • 14 依赖
  • normalized package name match
  • 匹配方式:Wget2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libwget3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

wget2 2.2.0+ds-1+deb13u1

file and recursive website downloader

https://gitlab.com/gnuwget/wget2

sudo apt install wget2
  • Section: web
  • Architecture: amd64
  • 5 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Wget2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: wget2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

wget2-dev 2.2.0+ds-1+deb13u1

development file for libwget

https://gitlab.com/gnuwget/wget2

sudo apt install wget2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: wget2
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Wget2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: wget2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

wget2

nix profile install nixpkgs#wget2
  • normalized package name match
  • 匹配方式:Wget2
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/wg/wget2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libwget2t64 2.1.0-2.1build2

Download library for files and recursive websites

https://gitlab.com/gnuwget/wget2

sudo apt install libwget2t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: wget2
  • 10 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Wget2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libwget2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

wget2 2.1.0-2.1build2

file and recursive website downloader

https://gitlab.com/gnuwget/wget2

sudo apt install wget2
  • Section: universe/web
  • Architecture: amd64
  • 4 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Wget2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: wget2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

wget2-dev 2.1.0-2.1build2

development file for libwget2t64

https://gitlab.com/gnuwget/wget2

sudo apt install wget2-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: wget2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Wget2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: wget2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

wget2 2.2.1-r1

Network utility to retrieve files from the Web

https://www.gnu.org/software/wget/wget.html

sudo apk add wget2
  • License: GPL-3.0-or-later WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: wget2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Wget2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wget2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

wget2-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-dbg
  • License: GPL-3.0-or-later WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: wget2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Wget2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wget2-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

wget2-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-dev
  • License: GPL-3.0-or-later WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: wget2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Wget2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wget2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

wget2-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-doc
  • License: GPL-3.0-or-later WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: wget2
  • normalized package name match
  • 匹配方式:Wget2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wget2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

wget2-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-libs
  • License: GPL-3.0-or-later WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: wget2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Wget2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: wget2-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

wget2 2.2.1-2.fc44

An advanced file and recursive website downloader

https://gitlab.com/gnuwget/wget2

sudo dnf install wget2
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: wget2
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Wget2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: wget2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

wget2-devel 2.2.1-2.fc44

Libraries and header files needed for using wget2 libraries

https://gitlab.com/gnuwget/wget2

sudo dnf install wget2-devel
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: wget2
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Wget2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: wget2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

wget2-libs 2.2.1-2.fc44

Runtime libraries for GNU Wget2

https://gitlab.com/gnuwget/wget2

sudo dnf install wget2-libs
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: wget2
  • 12 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Wget2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: wget2-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

wget2-wget 2.2.1-2.fc44

wget2 shim to provide wget

https://gitlab.com/gnuwget/wget2

sudo dnf install wget2-wget
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND GFDL-1.3-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: wget2
  • 1 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Wget2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: wget2-wget from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment