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完全ガイド:macOSで開発環境を整える第一歩

Last updated at Posted at 2025-05-18

Homebrew完全ガイド:macOSで開発環境を整える第一歩

☑️ Homebrewとは何か

Homebrew はmacOSやLinuxで使えるパッケージマネージャーです。

パッケージマネージャーとは

  • 開発に必要なソフトやツールをコマンド一発でインストール、管理
  • 例:Node.js、PHP、MySQL、git など
  • 依存性の解決やアップデートも自動

イメージ:App Storeをコマンド管理で行うような感覚


🛠 Homebrewのインストール流れ

1. ターミナルを開く

macOS: Launchpad > その他 > ターミナル

2. 以下をコピペして実行

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

3. パスの設定

Apple Silicon:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

⚙️ Homebrewの主な使い方

1. 検索

brew search node

2. インストール

brew install node

3. アンインストール

brew uninstall node

4. アップデート

brew upgrade

5. インストール済みパッケージ確認

brew list

6. 不要ファイルの消去

brew cleanup

★ よく使うパッケージ一覧

ツール コマンド 用途
Node.js brew install node JavaScript開発環境
PHP brew install php Laravel開発に必須
Composer brew install composer PHPの依存管理
MySQL brew install mysql データベース
git brew install git バージョン管理
Docker (GUI) brew install --cask docker Docker Desktopアプリ

🔍 brewとcaskの違い

brewコマンド 内容
brew install xxx CLIツールのインストール
brew install --cask xxx GUIアプリのインストール

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?