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?

More than 1 year has passed since last update.

【Homebrew】よく使う brew コマンド一覧

Posted at

コマンド一覧

brew コマンド 概要
-v Homebrew のバージョン確認コマンド
update Homebrew自体の更新を主としたアップデート(時間かかる)
upgrade インストール済みパッケージの更新も含めたアップグレード(時間かかる)
outdated 更新のある formula (=最新でないパッケージ)を一覧表示する
cask outdated outdated の Cask 版
cleanup 使用していない&古いバージョンのパッケージやキャッシュを削除してくれる

詳細説明

コマンド実行時のコンソール表示の内容・意味などを説明

update

Homebrew自体の更新を主としたアップデート(けっこう時間がかかります)

# 実行
brew update

# 結果(新しく導入可能な関連パッケージ表示)
Updated 1 tap (homebrew/core).
==> New Formulae
bindgen   corrosion   kustomizer ...

# 結果(アップデートできるパッケージを表示)
==> Outdated Formulae
ca-certificates   gdk-pixbuf   highway ...

You have 13 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.

brew outdated

更新のある formula (=最新でないパッケージ)を一覧表示する

# 実行
brew outdated

# 結果(左が現在のバージョン/右が導入される予定の最新バージョン)
ca-certificates (2022-04-26) < 2022-10-11
fontconfig (2.14.0) < 2.14.1
gdk-pixbuf (2.42.9) < 2.42.10
graphviz (6.0.2) < 7.0.2
highway (1.0.1) < 1.0.2
imath (3.1.5) < 3.1.6
libpng (1.6.38) < 1.6.39
librsvg (2.54.5) < 2.55.1
libx11 (1.8.1) < 1.8.2
libxext (1.3.4) < 1.3.5
node-build (4.9.82) < 4.9.99
openssl@1.1 (1.1.1o) < 1.1.1s
pango (1.50.11) < 1.50.12

brew cleanup

Homebrew 2.0 からは、30日ごとに自動で brew cleanup が実行される、また、install コマンドなどを実行することによっても、brew cleanup が実行されるので、無理に実行する必要はない

# 実行
brew cleanup

# 結果(削除せずにスキップしたパッケージ)
Warning: Skipping fontconfig: most recent version 2.14.1 not installed
# 結果(削除したパッケージ)
Removing: /Users/tommy/Library/Caches/Homebrew/fontconfig--2.14.0... (625.3KB)
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?