Mac osコマンドライン:wget:コマンドが見つかりません



Mac Os Command Line Wget



wgetコマンドプロンプトを使用する
sudo:wget:コマンドが見つかりません
wgetがシステムにインストールされていないことを意味します

  • 使用brew install wget

自作は醸造と略されます。 Homebrewは、MacOSプラットフォームでのソフトウェアパッケージ管理ツールです。インストール、アンインストール、更新、表示、検索など、多くの便利な機能を実装するのに非常に便利です。簡単な指示でパッケージ管理を実現でき、 自作 インストールと基本的な使用法は公式ウェブサイトで明確に紹介されています



  • brewをインストールします
/bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)'

-brewをアンインストールします(アンインストールとインストールの方法は同じです。インストールをアンインストールに変更し、コピーして貼り付けます)

/usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)'
  • 醸造バージョン
➜ /Users/liuzhiwei> brew -v Homebrew 2.2.7 Homebrew/homebrew-core (git revision 33cacc last commit 2020-03-03)
  • brewコマンド
Homebrew common commands brew -v query Homebrew version brew -h brew help brew update to update Homebrew brew install <pkg_name> Install any software brew uninstall <pkg_name> Uninstall any software brew search <pkg_name> Query any package brew list lists the installation list brew info <pkg_name> View any package content information brew upgrade <pkg_name> Update any package brew cleanup <pkg_name> Delete specific old software brew cleanup delete all old software brew outdated whether the installed packages need to be updated Whether the installed packages of brew deps need to be updated

参照ブログリンク
醸造変更ソースアドレス



  • brew関連のパッケージをアンインストールします
➜ /Users/liuzhiwei> brew uninstall wget Uninstalling /usr/local/Cellar/wget/1.20.3_1... (49 files, 4.0MB) ➜ /Users/liuzhiwei> brew list wget Error: No such keg: /usr/local/Cellar/wget ➜ /Users/liuzhiwei> brew list ➜ /Users/liuzhiwei> brew install wget Error: Another active Homebrew update process is already in progress. Please wait for it to finish or terminate it to continue. ==> Installing dependencies for wget: libidn2 and root@xxxxx ==> Installing wget dependency: libidn2 ==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.3.0.catalina.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/09/0908585cca518a83f101b2edc0417a26a4b4fc8b76e393c6f6672de6e595c914?__gda__=exp=1583228361~hmac ######################################################################## 100.0% ==> Pouring libidn2-2.3.0.catalina.bottle.tar.gz /usr/local/Cellar/libidn2/2.3.0: 70 files, 727.8KB ==> Installing wget dependency: root@xxxxx ==> Downloading https://homebrew.bintray.com/bottles/root@xxxxx ==> Downloading from https://akamai.bintray.com/d7/d7f992ebfd78f80828051f6dc6a1a99aed405f86b0f39ea651fd0afeadd1b0f4?__gda__=exp=1583228367~hmac ######################################################################## 100.0% ==> Pouring root@xxxxx ==> Caveats A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem files in /usr/local/etc/root@xxxxx/certs and run /usr/local/opt/root@xxxxx/bin/c_rehash root@xxxxx is keg-only, which means it was not symlinked into /usr/local, because openssl/libressl is provided by macOS so don't link an incompatible version. If you need to have root@xxxxx first in your PATH run: echo 'export PATH='/usr/local/opt/root@xxxxx/bin:$PATH'' >> ~/.zshrc For compilers to find root@xxxxx you may need to set: export LDFLAGS='-L/usr/local/opt/root@xxxxx/lib' export CPPFLAGS='-I/usr/local/opt/root@xxxxx/include' For pkg-config to find root@xxxxx you may need to set: export PKG_CONFIG_PATH='/usr/local/opt/root@xxxxx/lib/pkgconfig' ==> Summary /usr/local/Cellar/root@xxxxx/1.1.1d: 7,983 files, 17.9MB ==> Installing wget ==> Downloading https://homebrew.bintray.com/bottles/wget-1.20.3_2.catalina.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/ef/ef65c759c5097a36323fa9c77756468649e8d1980a3a4e05695c05e39568967c?__gda__=exp=1583228419~hmac ######################################################################## 100.0% ==> Pouring wget-1.20.3_2.catalina.bottle.tar.gz /usr/local/Cellar/wget/1.20.3_2: 50 files, 4.0MB ==> `brew cleanup` has not been run in 30 days, running now... Removing: /Users/liuzhiwei/Library/Caches/Homebrew/autojump--22.5.3.catalina.bottle.tar.gz... (45.4KB) Removing: /usr/local/Cellar/libidn2/2.2.0_1... (70 files, 700.9KB) Removing: /Users/liuzhiwei/Library/Caches/Homebrew/descriptions.json... (263.3KB) Pruned 0 symbolic links and 2 directories from /usr/local ==> Caveats ==> root@xxxxx A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem files in /usr/local/etc/root@xxxxx/certs and run /usr/local/opt/root@xxxxx/bin/c_rehash root@xxxxx is keg-only, which means it was not symlinked into /usr/local, because openssl/libressl is provided by macOS so don't link an incompatible version. If you need to have root@xxxxx first in your PATH run: echo 'export PATH='/usr/local/opt/root@xxxxx/bin:$PATH'' >> ~/.zshrc For compilers to find root@xxxxx you may need to set: export LDFLAGS='-L/usr/local/opt/root@xxxxx/lib' export CPPFLAGS='-I/usr/local/opt/root@xxxxx/include' For pkg-config to find root@xxxxx you may need to set: export PKG_CONFIG_PATH='/usr/local/opt/root@xxxxx/lib/pkgconfig'