OneCompiler

zsh: command not found: wget

I am unable use wget command in MacOS, how can I get that?

1 Answer

4 years ago by

wget is not available by default. You can install it with Homebrew.

brew install wget

on a successful installation, you should see logs like below

$ brew install wget
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (heroku/brew, homebrew/core and homebrew/services).
==> New Formulae
func-e                                                                              [email protected]                                                                        scorecard
==> Updated Formulae
Updated 965 formulae.

==> Downloading https://ghcr.io/v2/homebrew/core/gettext/manifests/0.21
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gettext/blobs/sha256:a025e143fe3f5f7e24a936b8b0a4926acfdd025b11d62024e3d355c106536d56
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a025e143fe3f5f7e24a936b8b0a4926acfdd025b11d62024e3d355c106536d56?se=2021-07-13T08%3A15%3A00Z&sig=zKo6EXUHTEE%2FU5kqzUV2oUwoTmdrnY2qtfWmcJWfkhc%3D&sp=r&spr=https&sr=b&s
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/0.9.10
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/blobs/sha256:5d336bd939f678b48dc1ced97ed0def383999638d80caa8cb2da780594556524
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5d336bd939f678b48dc1ced97ed0def383999638d80caa8cb2da780594556524?se=2021-07-13T08%3A15%3A00Z&sig=DrImWMd6FBjr75jghtHB5Uq%2FOf%2Bw1begRUYEykW%2Btnw%3D&sp=r&spr=https&sr
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libidn2/manifests/2.3.1-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libidn2/blobs/sha256:25c6ccfc501690f453ebcb4ce56609bcfa3ba915da6dd29ecbf9afe0e3ef321b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:25c6ccfc501690f453ebcb4ce56609bcfa3ba915da6dd29ecbf9afe0e3ef321b?se=2021-07-13T08%3A15%3A00Z&sig=gExXckMUsfZXjEIykPglWlcmF4DlCwnIuY2zeLMwyEQ%3D&sp=r&spr=https&sr=b&sv=
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.21.1-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:277577a3a30ff9bf60d0e4b819570ca356aade39a3a5973065e89b0ad4b752f3
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:277577a3a30ff9bf60d0e4b819570ca356aade39a3a5973065e89b0ad4b752f3?se=2021-07-13T08%3A15%3A00Z&sig=D7MkiMu5h8x47GiNkhnw0F%2Fss0T6pEoSGFp3YSxlOQw%3D&sp=r&spr=https&sr=b&s
######################################################################## 100.0%
==> Installing dependencies for wget: gettext, libunistring and libidn2
==> Installing wget dependency: gettext
==> Pouring gettext--0.21.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/gettext/0.21: 1,953 files, 19.8MB
==> Installing wget dependency: libunistring
==> Pouring libunistring--0.9.10.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/libunistring/0.9.10: 55 files, 4.5MB
==> Installing wget dependency: libidn2
==> Pouring libidn2--2.3.1.big_sur.bottle.1.tar.gz
🍺  /usr/local/Cellar/libidn2/2.3.1: 73 files, 812.3KB
==> Installing wget
==> Pouring wget--1.21.1.big_sur.bottle.1.tar.gz
🍺  /usr/local/Cellar/wget/1.21.1: 88 files, 4MB
foo@foo-MBP experimental % 
4 years ago by Karthik Divi