[wget]が使用できない時

環境

macOS Catalina バージョン:10.15.1

エラー内容

wgetコマンドを実行したところ以下のようなエラー

#input
$ wget http://~~~~~~~~~~~~~

#output
-bash: wget: command not found
wget :指定したURLのファイルをダウンロード

解決策

Homebrew を使って wgetコマンドをインストール

#input
$ brew install wget

#output
==> Installing dependencies for wget: gettext, libunistring and libidn2
==> Installing wget dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.20.2_1.catalina.b
==> Downloading from https://akamai.bintray.com/71/71f4ded03e8258b5e6896eebb00d2
######################################################################## 100.0%
==> Pouring gettext-0.20.2_1.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/gettext/0.20.2_1: 1,923 files, 18.6MB
==> Installing wget dependency: libunistring
==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.10.catalin
==> Downloading from https://akamai.bintray.com/ce/ce746662b98d93511b86920011b5c
######################################################################## 100.0%
==> Pouring libunistring-0.9.10.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libunistring/0.9.10: 54 files, 4.4MB
==> Installing wget dependency: libidn2
==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.3.0.catalina.bott
==> Downloading from https://akamai.bintray.com/09/0908585cca518a83f101b2edc0417
######################################################################## 100.0%
==> Pouring libidn2-2.3.0.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/libidn2/2.3.0: 70 files, 727.8KB
==> Installing wget
==> Downloading https://homebrew.bintray.com/bottles/wget-1.20.3_2.catalina.bott
==> Downloading from https://akamai.bintray.com/ef/ef65c759c5097a36323fa9c777564
######################################################################## 100.0%
==> Pouring wget-1.20.3_2.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/wget/1.20.3_2: 50 files, 4.0MB

wgetコマンドを再度実行

#input
$ wget http://~~~~~~~~~~~~~

#output
"サイト名" ("サイト名") をDNSに問いあわせています... 13.230.206.184
"サイト名" ("サイト名")|"IPアドレス"|:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 301 Moved Permanently
場所: "URL" [続く]
--2020-04-30 16:55:52--  "URL"
"サイト名" ("サイト名")|"IPアドレス"|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 25716 (25K) [application/octet-stream]
`ファイル名' に保存中

"ファイル名"    100%[===================>]  25.11K  --.-KB/s 時間 0.007s   

2020-04-30 16:55:52 (3.46 MB/s) - "ファイル名" へ保存完了 [25716/25716]

無事できました。