--- title: Homebrew 安裝筆記 tags: Homebrew, Mac --- # Homebrew 安裝筆記 :::info - **Homebrew 相關介紹** - **常用指令** - **參考資料** ::: ## Homebrew 相關介紹 - Homebrew 一款自由及開放原始碼的軟體套件管理系統,用以簡化macOS系統上的軟體安裝過程,最初由馬克斯·霍威爾(Max Howell)寫成,透過 Homebrew 的指令就可以新增、移除或更新程式。 - Homebrew Cask Homebrew 子專案,用來安裝和管理圖形化介面類型的軟體,例如 Google、Chrome、Dropbox 等等。 - Formula 在 Homebrew 裡,將軟體套件稱為 formula (配方),Homebrew 的 formula 都是簡單的 Ruby 腳本。 ## 常用指令 - Homebrew 安裝,把官網的指令貼上 Terminal ``` /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" ``` - Homebrew 移除 ``` /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" ``` - 查看 Homebrew 提供那些指令 ``` brew help ``` - Homebrew Cask 安裝 網路查到`brew install caskroom/cask/brew-cask`這指令己過時,改使用下方指令安裝 ``` brew install brew-cask-completion ``` - 查看己安裝套件 ``` brew cask list brew list ``` - 查詢套件 ``` brew search [text] brew search git brew search ``` - 查看套件資訊 ``` brew cask info [fomula] brew info [fomula] brew info git ``` - 安裝套件 ``` brew cask install [fomula] brew install [fomula] brew install git ``` - 更新套件 ``` brew cask upgrade [fomula] brew upgrade [fomula] brew upgrade git ``` - 移除套件 ``` brew cask uninstall [fomula] brew uninstall [fomula] brew uninstall git ``` ## 參考資料 [Homebrew 官網](https://brew.sh/index_zh-tw) [維基百科](https://zh.wikipedia.org/wiki/Homebrew) [OneJar 的隧道](https://www.onejar99.com/mac-homebrew-homebrew-cask-mac/) [Homebrew - Mac 开发配置手册- 极客学院Wiki](https://wiki.jikexueyuan.com/project/mac-dev-setup/homebrew.html) [Limitless Ping](https://peterhpchen.github.io/2020/05/30/homebrew.html)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up