0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrew でよく使うコマンドまとめ

Last updated at Posted at 2019-08-15

バージョン 2.1.11 で確認。詳しくは Homebrew のマニュアルを参照。

インストールされているパッケージを最新版に更新

brew upgrade <パッケージ名>

パッケージ名を省略すると、すべてのパッケージを更新する。

パッケージをインストール

brew install <パッケージ名>

複数のパッケージをスペースで区切って指定することもできる。

パッケージをアンインストール

brew uninstall <パッケージ名>

パッケージの古いバージョンも削除しないと、次の brew upgrade で再インストールされる。
brew uninstall -f <パッケージ名> とすることで確実にアンインストールできる。

インストールされているパッケージを表示

brew list

brew list -1 とすると、1 行に 1 つずつ表示される。

パッケージを検索

brew search <文字列>

/<文字列>/ とスラッシュで囲むことで正規表現を使用できる。

パッケージの情報を表示

brew info <パッケージ名>
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?