homebrew指令筆記

in mac

安裝

homebrew會裝到/usr/local/

1
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

指令

1
2
3
4
5
6
#homebrew檢查
brew doctor
#homebrew更新
brew update
#列出安裝的module
brew list
1
2
3
4
5
6
7
8
9
10
11
12
#module會裝到/usr/local/opt/xxx
#安裝xxx模組
brew install xxx
brew uninstall xxx
#更新xxx模組
brew upgrade xxx
#homebrew在執行upgrade後不會自動將舊版本刪掉[避免某些軟體用絕對路徑相依導致不能使用],需要手動執行以下
#列出cleanup會刪除的formula
brew cleanup -n
#刪除舊版本
brew cleanup [xxx]

Comment and share

  • page 1 of 1

Cwza

Hello everyone.
I’m cwza.
Welcome to my blog.


Software Engineer


Taiwan/Taipei