0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Homebrew インストール(安全な導入方法)

0
Last updated at Posted at 2026-11-04

こんにちは。
Homebrew インストールの安全な導入方法を調べました(ChatGPTの助けを借りました)。次の手順です。

公式リポジトリのurl自身を確認

https://github.com/Homebrew

git clone (公式リポジトリのurlを直接指定)

$ git clone https://github.com/Homebrew/install.git

コミットを固定

$ cd install
$ git log -1 --format='%H'

インストーラー実行前検査

第一段階

$ shellcheck install.sh
$ /bin/bash -n install.sh
$ less install.sh

第二段階

下記を確認すべきです。しかし容易ではないです。

オプトイン方式を確認

各事項を確認

操作 デフォルト
プログラムの配置 実行する
ディレクトリの作成 実行する(必要な範囲のみ)
デフォルトで実行しない事項を確認
操作 デフォルト
PATH の変更 実行しない
.bash_profile の変更 実行しない
.zprofile の変更 実行しない
.zshrc の変更 実行しない
.profile の変更 実行しない
自動更新の設定 実行しない
brew実行 実行しない

インストール実行

$ /bin/bash install.sh
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?