wget: command not found
Covers: zsh: command not found: wget · wget command not found mac · bash: wget: command not found — May 2026
🍎 macOS
🐧 Ubuntu / Debian
🎩 CentOS / RHEL
🪟 WSL
🐳 Docker
$ wget https://example.com/file.tar.gz
zsh: command not found: wget
# or on bash:
bash: wget: command not found
zsh: command not found: wget
# or on bash:
bash: wget: command not found
Fix on macOS (zsh / bash)
macOS does not ship with wget — it uses curl instead. Install wget via Homebrew:
# Install Homebrew first if you don't have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Then install wget:
brew install wget
# Verify:
wget --version
⚡ macOS Alternative — Use curl instead
# curl is already installed on macOS — equivalent to wget:
curl -O https://example.com/file.tar.gz
curl -L -o output.tar.gz https://example.com/file.tar.gz
Fix on Ubuntu / Debian / WSL
sudo apt update && sudo apt install -y wget
# Verify:
wget --version
Fix on CentOS / RHEL / Fedora
# CentOS 7 / RHEL 7:
sudo yum install -y wget
# CentOS 8+ / RHEL 8+ / Fedora:
sudo dnf install -y wget
Fix in Docker / Alpine Linux
# Alpine:
apk add --no-cache wget
# Debian/Ubuntu-based Docker image:
apt-get update && apt-get install -y wget