# Install wget2 with Homebrew, apk, apt, dnf, MacPorts, Nix, scoop, winget, zypper

Successor of GNU Wget, a file and recursive website downloader. Version 2.2.1 via Homebrew; verified 2026-05-20.

## Install

```sh
sudo av install brew:wget2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install wget2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wget2
```

  Evidence: MacPorts ports tree: net/wget2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add wget2
```

  Evidence: Alpine Linux edge package indexes: wget2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libwget3
```

  Evidence: Debian stable package indexes: libwget3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install wget2
```

  Evidence: Fedora Rawhide package metadata: wget2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#wget2
```

  Evidence: nixpkgs package indexes: pkgs/by-name/wg/wget2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Ubuntu apt (92%):

```sh
sudo apt install libwget2t64
```

  Evidence: Ubuntu 24.04 LTS package indexes: libwget2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- zypper (92%):

```sh
sudo zypper install libwget4
```

  Evidence: openSUSE Tumbleweed package metadata: libwget4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/wget2
```

  Evidence: Scoop official bucket manifest trees: bucket/wget2.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id GNU.Wget2 -e
```

  Evidence: Windows Package Manager source index: GNU.Wget2 from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:wget2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/wget2>
- **Version:** 2.2.1
- **Source summary:** Successor of GNU Wget, a file and recursive website downloader
- **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
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- wget2 (cli)
- wget2 (alias)

## 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

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.2.1
- Package-manager updated: 2026-05-20
- Local data: ok
- Upstream repository: https://gitlab.com/gnuwget/wget2
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <https://audio-video.gnu.org/video/ghm2017/2017-08--ruhsen-shah--wget--ghm.pdf>
- <https://gitlab.com/gnuwget/wget2>
- <https://gitlab.com/gnuwget/wget2/-/blob/master/README.md>
- <https://gnuwget.gitlab.io/wget2/reference/>
- <https://lists.gnu.org/archive/html/info-gnu/2021-09/msg00011.html>
- <https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00000.html>


## Security Notes

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.



## 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

- Unix: ~/.wget2rc, ~/.config/wget2/wget2rc, ~/.config/wget/wget2rc

## Credential files

- Unix: ~/.netrc, ~/.wget2rc, ~/.config/wget2/wget2rc, ~/.config/wget/wget2rc
## Source Database Details

- **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:** stable

## Other Package-Manager Records

- Debian apt - libwget3 - 2.2.0+ds-1+deb13u1: normalized package name match | Debian stable package indexes: libwget3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Download library for files and recursive websites | https://gitlab.com/gnuwget/wget2
- Debian apt - wget2 - 2.2.0+ds-1+deb13u1: normalized package name match | Debian stable package indexes: wget2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | file and recursive website downloader | https://gitlab.com/gnuwget/wget2
- Debian apt - wget2-dev - 2.2.0+ds-1+deb13u1: normalized package name match | Debian stable package indexes: wget2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development file for libwget | https://gitlab.com/gnuwget/wget2
- Nix - wget2: normalized package name match | nixpkgs package indexes: pkgs/by-name/wg/wget2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libwget2t64 - 2.1.0-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libwget2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Download library for files and recursive websites | https://gitlab.com/gnuwget/wget2
- Ubuntu apt - wget2 - 2.1.0-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: wget2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | file and recursive website downloader | https://gitlab.com/gnuwget/wget2
- Ubuntu apt - wget2-dev - 2.1.0-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: wget2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development file for libwget2t64 | https://gitlab.com/gnuwget/wget2
- apk - wget2 - 2.2.1-r1: normalized package name match | Alpine Linux edge package indexes: wget2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Network utility to retrieve files from the Web | https://www.gnu.org/software/wget/wget.html
- apk - wget2-dbg - 2.2.1-r1: normalized package name match | Alpine Linux edge package indexes: wget2-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Network utility to retrieve files from the Web (debug symbols) | https://www.gnu.org/software/wget/wget.html
- apk - wget2-dev - 2.2.1-r1: normalized package name match | Alpine Linux edge package indexes: wget2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Network utility to retrieve files from the Web (development files) | https://www.gnu.org/software/wget/wget.html
- apk - wget2-doc - 2.2.1-r1: normalized package name match | Alpine Linux edge package indexes: wget2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Network utility to retrieve files from the Web (documentation) | https://www.gnu.org/software/wget/wget.html
- apk - wget2-libs - 2.2.1-r1: normalized package name match | Alpine Linux edge package indexes: wget2-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Network utility to retrieve files from the Web (libraries) | https://www.gnu.org/software/wget/wget.html
- dnf - wget2 - 2.2.1-2.fc44: normalized package name match | Fedora Rawhide package metadata: wget2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | An advanced file and recursive website downloader | https://gitlab.com/gnuwget/wget2
- dnf - wget2-devel - 2.2.1-2.fc44: normalized package name match | 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 | Libraries and header files needed for using wget2 libraries | https://gitlab.com/gnuwget/wget2
- dnf - wget2-libs - 2.2.1-2.fc44: normalized package name match | 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 | Runtime libraries for GNU Wget2 | https://gitlab.com/gnuwget/wget2
- dnf - wget2-wget - 2.2.1-2.fc44: normalized package name match | 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 | wget2 shim to provide wget | https://gitlab.com/gnuwget/wget2


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [brotli](https://www.automicvault.com/pkg/brew/brotli/) - Runtime dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gnutls](https://www.automicvault.com/pkg/brew/gnutls/) - Runtime dependency declared by Homebrew.
- [gpgme](https://www.automicvault.com/pkg/brew/gpgme/) - Runtime dependency declared by Homebrew.
- [libidn2](https://www.automicvault.com/pkg/brew/libidn2/) - Runtime dependency declared by Homebrew.
- [libpsl](https://www.automicvault.com/pkg/brew/libpsl/) - Runtime dependency declared by Homebrew.
- [doxygen](https://www.automicvault.com/pkg/brew/doxygen/) - Build dependency declared by Homebrew.
- [gnu-sed](https://www.automicvault.com/pkg/brew/gnu-sed/) - Build dependency declared by Homebrew.
- [graphviz](https://www.automicvault.com/pkg/brew/graphviz/) - Build dependency declared by Homebrew.
- [pandoc](https://www.automicvault.com/pkg/brew/pandoc/) - Build dependency declared by Homebrew.
- [wget](https://www.automicvault.com/pkg/brew/wget/) - Package name indicates the same formula family.
- [getparty](https://www.automicvault.com/pkg/brew/getparty/) - Shares av.db curated category or tags: cli, download-manager, http, networking.
- [msdl](https://www.automicvault.com/pkg/brew/msdl/) - Shares av.db curated category or tags: cli, download-manager, http, networking.
- [aria2](https://www.automicvault.com/pkg/brew/aria2/) - Shares av.db curated category or tags: cli, download, http, networking.
- [axel](https://www.automicvault.com/pkg/brew/axel/) - Shares av.db curated category or tags: cli, download, http, networking.
- [saldl](https://www.automicvault.com/pkg/brew/saldl/) - Shares av.db curated category or tags: cli, download-manager, networking.
- [apkeep](https://www.automicvault.com/pkg/brew/apkeep/) - Shares av.db curated category or tags: cli, download, networking.
- [ares](https://www.automicvault.com/pkg/brew/ares/) - Shares av.db curated category or tags: cli, download, networking.
- [wireshark](https://www.automicvault.com/pkg/brew/wireshark/) - Local package facts share a topical domain. Shared terms: cli, gnutls, libnghttp2, networking, pcre2.
- [samba](https://www.automicvault.com/pkg/brew/samba/) - Local package facts share a topical domain. Shared terms: cli, file, gettext, gnutls, networking.

## Combined YAML source

View the package source record on GitHub. [combined/wget2.yml](https://github.com/automic-vault/db/blob/main/combined/wget2.yml)


## Sources

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