# Installer wget2 avec Homebrew, apk, apt, dnf, MacPorts, Nix, zypper, scoop, winget

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de wget2 pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install wget2
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wget2
```

  Preuve: 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
```

  Preuve: 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 wget2
```

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

- dnf (92%):

```sh
sudo dnf install wget2
```

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

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install wget2
```

  Preuve: openSUSE Tumbleweed package metadata: wget2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

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

  Preuve: 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
```

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

## Faits du paquet

- **Clé du paquet:** brew:wget2
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.2.1
- **Résumé source:** Successor of GNU Wget, a file and recursive website downloader
- **Page d'accueil:** <https://gitlab.com/gnuwget/wget2>
- **Dernière mise à jour:** 2026-05-20T17:37:37Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- wget2 (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 2.2.1
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour wget2. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.



## 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
## Autres enregistrements de gestionnaires de paquets

- 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-3.fc45: normalized package name match | Fedora Rawhide package metadata: wget2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | An advanced file and recursive website downloader | https://gitlab.com/gnuwget/wget2
- dnf - wget2-devel - 2.2.1-3.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Libraries and header files needed for using wget2 libraries | https://gitlab.com/gnuwget/wget2
- dnf - wget2-libs - 2.2.1-3.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Runtime libraries for GNU Wget2 | https://gitlab.com/gnuwget/wget2
- dnf - wget2-wget - 2.2.1-3.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | wget2 shim to provide wget | https://gitlab.com/gnuwget/wget2


## Combined YAML source

View the package source record on GitHub. [combined/wget2.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wget2.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
