# Install wget with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Internet file retriever. Version 1.25.0 via Homebrew; verified 2026-06-26.

## Install

```sh
sudo av install brew:wget
```

## Agent safety answer

wget fetches remote content and can mirror sites or download installer scripts.

- **Credential access:** Reads netrc credentials, cookies, headers, and output file paths.
- **Remote mutation:** Usually fetch-only, but can call authenticated endpoints and write local files.
- **Publish/artifact risk:** Can download scripts or artifacts that later execute or deploy.
- **Recommended control:** Gate authenticated downloads, recursive mirrors, and shell installer use.
- **Agent-use guidance:** Allow public single-file downloads; require approval for credentials, recursion, and executable outputs.

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install wget
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wget
```

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

### Linux

- apk (92%):

```sh
sudo apk add wget
```

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

- Debian apt (92%):

```sh
sudo apt install wget
```

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

- dnf (92%):

```sh
sudo dnf install wget1-wget
```

  Evidence: Fedora Rawhide package metadata: wget1-wget 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#wget
```

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

- pacman (92%):

```sh
sudo pacman -S wget
```

  Evidence: Arch Linux sync databases: wget from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install wget
```

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

### Windows

- Chocolatey (92%):

```sh
choco install Wget
```

  Evidence: Chocolatey community package catalog: Wget from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','webex-meetings'

- Scoop (92%):

```sh
scoop install main/wget
```

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

- winget (92%):

```sh
winget install --id JernejSimoncic.Wget -e
```

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

## Package facts

- **Package key:** brew:wget
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/wget>
- **Version:** 1.25.0
- **Source summary:** Internet file retriever
- **Homepage:** <https://www.gnu.org/software/wget/>
- **Repository:** <https://git.savannah.gnu.org/cgit/wget.git>
- **Upstream docs:** <https://www.gnu.org/software/wget>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://ftpmirror.gnu.org/gnu/wget/wget-1.25.0.tar.gz>
- **Last updated:** 2026-06-26T01:12:58Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- wget (cli)
- wget (alias)

## Dependencies

- gettext
- libidn2
- libpsl
- libunistring
- openssl@3

## Build dependencies

- pkgconf

## 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: 1.25.0
- Package-manager updated: 2026-06-26
- Local data: ok
- Upstream repository: https://www.gnu.org/software/wget/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GNU Wget is the GNU Project's non-interactive command-line retriever for HTTP, HTTPS, FTP, and FTPS. It is one of the canonical Unix-style tools for scripted downloads, recursive mirroring, resumable transfers, and unattended network retrieval.

### Project history

Wget descends from Geturl, a program by Hrvoje Niksic whose development began in late 1995. The name changed to Wget after the author learned of an earlier Amiga program called GetURL. Public Geturl releases appeared in 1996, and Wget 1.4.0 in November 1996 was the first release under the Wget name and the GNU GPL.

The tool solved a real mid-1990s problem: Unix users needed a reliable downloader that could handle both HTTP and FTP, run without a browser, survive slow or unstable dial-up and university connections, and build with ordinary Unix development tools. That combination made it spread quickly among Unix users and later most Linux distributions.

Wget's stewardship moved from the original author to broader GNU maintenance. The GNU project page lists Tim Ruehsen, Darshit Shah, and Giuseppe Scrivano as current maintainers and Hrvoje Niksic as original author. The source is hosted on GNU Savannah, and the manual's copyright range begins in 1996, reflecting the long-running GNU package history.

### Adoption history

Wget became a default tool in the mental toolbox of system administrators, release engineers, distribution maintainers, researchers, and shell users because it is non-interactive and scriptable. Its adoption was reinforced by features that map directly to automation: retrying failed downloads, continuing partial transfers when servers support it, following links for recursive retrieval, converting links for local browsing, using timestamps for mirroring, supporting proxies, and reading URLs from files or standard input.

The package also became important outside ordinary downloads. Since Wget 1.14 it has supported WARC output, making it useful in web archiving workflows. GNU Wget2 is now developed separately for newer web protocols and parallelism, but classic Wget remains widely used because of its stable behavior and enormous installed base.

### How it is used

Basic use is `wget URL`, but its package-nerd importance comes from flags and composability: `-r` for recursive retrieval, `-c` for continuing partial downloads, `-O -` for piping content to standard output, `-i` for reading URL lists, and `.wgetrc` for persistent defaults. It is equally at home in cron jobs, build scripts, Dockerfiles, release automation, and one-off shell sessions.

Wget's behavior is deliberately non-interactive, so it can keep working after a user logs out or when no graphical environment exists. That makes it a historical counterpart to browsers and graphical download managers: less interactive, but much better suited to repeatable automation.

### Why package nerds care

Wget is one of the archetypal packages that demonstrates why small Unix command-line tools matter. It turned web and FTP retrieval into a dependable script primitive, which is why so many other package builds, test fixtures, mirrors, and operational runbooks have depended on it for decades.

### Timeline

- Late 1995: Hrvoje Niksic begins Geturl.
- January 1996: Geturl 1.0 is the first public release.
- November 1996: Wget 1.4.0 becomes the first release under the Wget name and GNU GPL.
- 2012: Wget 1.14 adds WARC output support, extending its role in web archiving.
- 2020s: GNU Wget continues as the stable classic implementation while GNU Wget2 is developed as a successor for newer web features.

### Related projects

- GNU Wget2 is the related successor project for newer web technologies, but Wget remains the classic implementation. curl overlaps with Wget for command-line retrieval, while Wget's traditional strengths are recursive downloading, mirroring, unattended operation, and `.wgetrc`-driven configuration.

### Sources

- <https://audio-video.gnu.org/video/ghm2017/2017-08--ruhsen-shah--wget--ghm.pdf>
- <https://en.wikipedia.org/wiki/Wget>
- <https://git.savannah.gnu.org/cgit/wget.git>
- <https://www.gnu.org/software/wget/>
- <https://www.gnu.org/software/wget/manual/wget.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## 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: ~/.wgetrc

## Credential files

- Unix: ~/.netrc, ~/.wgetrc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** wget
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - wget - 1.25.0-2: normalized package name match | Debian stable package indexes: wget from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | retrieves files from the web | https://www.gnu.org/software/wget/
- Nix - wget: normalized package name match | nixpkgs package indexes: pkgs/by-name/wg/wget/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - wget - 1.21.4-1ubuntu4: normalized package name match | Ubuntu 24.04 LTS package indexes: wget from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | retrieves files from the web | https://www.gnu.org/software/wget/
- apk - wget - 1.25.0-r3: normalized package name match | Alpine Linux edge package indexes: wget from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Network utility to retrieve files from the Web | https://www.gnu.org/software/wget/wget.html
- apk - wget-doc - 1.25.0-r3: normalized package name match | Alpine Linux edge package indexes: wget-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Network utility to retrieve files from the Web (documentation) | https://www.gnu.org/software/wget/wget.html
- dnf - wget1-wget - 1.25.0-2.fc43: normalized package name match | Fedora Rawhide package metadata: wget1-wget from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | wget1 shim to provide wget | http://www.gnu.org/software/wget/
- 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
- pacman - wget - 1.25.0-5: normalized package name match | Arch Linux sync databases: wget from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Network utility to retrieve files from the web | https://www.gnu.org/software/wget/wget.html
- zypper - wget - 1.25.0-2.4: normalized package name match | openSUSE Tumbleweed package metadata: wget from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Tool for Mirroring FTP and HTTP Servers | https://www.gnu.org/software/wget/
- zypper - wget-lang - 1.25.0-2.4: normalized package name match | openSUSE Tumbleweed package metadata: wget-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Translations for package wget | https://www.gnu.org/software/wget/
- MacPorts - wget: normalized package name match | MacPorts ports tree: net/wget/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - Wget: normalized package name match | Chocolatey community package catalog: Wget from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','webex-meetings'
- Scoop - main/wget: normalized package name match | Scoop official bucket manifest trees: bucket/wget.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - JernejSimoncic.Wget: normalized package name match | Windows Package Manager source index: JernejSimoncic.Wget from https://cdn.winget.microsoft.com/cache/source.msix


## 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.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - 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.
- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [dasht](https://www.automicvault.com/pkg/brew/dasht/) - Popular package that depends on this formula.
- [jigdo](https://www.automicvault.com/pkg/brew/jigdo/) - Popular package that depends on this formula.
- [kraken2](https://www.automicvault.com/pkg/brew/kraken2/) - Popular package that depends on this formula.
- [libwbxml](https://www.automicvault.com/pkg/brew/libwbxml/) - Popular package that depends on this formula.
- [luaver](https://www.automicvault.com/pkg/brew/luaver/) - Popular package that depends on this formula.
- [mmseqs2](https://www.automicvault.com/pkg/brew/mmseqs2/) - Popular package that depends on this formula.
- [wgetpaste](https://www.automicvault.com/pkg/brew/wgetpaste/) - Popular package that depends on this formula.
- [wget2](https://www.automicvault.com/pkg/brew/wget2/) - Package name indicates the same formula family.
- [msdl](https://www.automicvault.com/pkg/brew/msdl/) - Shares av.db curated category or tags: cli, download-manager, ftp, http, networking.
- [getparty](https://www.automicvault.com/pkg/brew/getparty/) - 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.
- [inetutils](https://www.automicvault.com/pkg/brew/inetutils/) - Shares av.db curated category or tags: cli, ftp, gnu, networking.
- [saldl](https://www.automicvault.com/pkg/brew/saldl/) - Shares av.db curated category or tags: cli, download-manager, networking.
- [squid](https://www.automicvault.com/pkg/brew/squid/) - Shares av.db curated category or tags: cli, ftp, http, networking.

## Combined YAML source

View the package source record on GitHub. [combined/wget.yml](https://github.com/automic-vault/db/blob/main/combined/wget.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
- curated agent safety answer
