Homebrew (brew)筆記

Homebrew / brew是什麼?

類似Ubuntu的apt-get,Fedora的yum,brew是Mac OS用的命令行安裝,卸載軟體工具。

Brew 命令

查看已經安裝的軟體包(package)

brew list
brew list --version

這裡會有不少package是安裝某package和安裝的dependency。

查看top level packages

brew leaves

顯示每個package的description

brew leaves | xargs -n1 brew desc
brew list | xargs -n1 brew desc

列出已經安裝package的dependency tree

brew deps --tree --installed

顯示需要更新的packages

brew outdated

查看Homebrew版本

brew -v

Homebrew安裝的軟體都放在哪裡?

目前用的是Homebrew 3.6.12,軟體安裝在

/usr/local/Cellar

參考

本文鏈接

Leave a Comment

Your email address will not be published.