Mac:brewをインストールしてみた

brew(Homebrew)
https://brew.sh/ja/

HomwbrewとはmacOS(またはLinux)用パッケージマネージャ

ターミナルで"brew"と打ってみたら "command not found" となったので入っていなかったのでインストールしてみる。

バージョン
macOS 26.2

公式のインストール欄に書いてあるコマンドを実行する

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
思ったより時間かかりますね

コマンドの実行が終わったら、実行結果の最後の方に記載されている「Next steps:」の箇所を実行する。
==> Next steps: - Run these commands in your terminal to add Homebrew to your PATH: echo >> /Users/xxx/.zprofile echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> /Users/masakiinokuchi/.zprofile eval "$(/opt/homebrew/bin/brew shellenv zsh)" - Run brew help to get started - Further documentation: https://docs.brew.sh
"brew help" でヘルプが表示されればOK

0 件のコメント:

その他の記事