brew 命令(蘋果系統使用的軟體鏡像)

來源:互聯網
上載者:User

標籤:which   oca   瀏覽器   就是   post   lib   --   介面   form   

下面參考下網友的總結:

 

查看brew的協助

brew –help

安裝軟體

brew install git

卸載軟體

brew uninstall git

搜尋軟體

brew search git

顯示已經安裝軟體列表

brew list

更新軟體,把所有的Formula目錄更新,並且會對本機已經安裝並有更新的軟體用*標明。

brew update

更新某具體軟體

brew upgrade git

查看軟體資訊

brew [info | home] [FORMULA...]

刪除程式,和upgrade一樣,單個軟體刪除和所有程式老版刪除。

brew cleanup git 
brew cleanup

查看那些已安裝的程式需要更新

brew outdated

 

 

其它Homebrew指令:

brew list   —列出已安裝的軟體

brew update   —更新Homebrew

brew home  *—用瀏覽器開啟

brew info   *—顯示軟體內容資訊

brew deps * — 顯示包依賴

brew server *  —啟動web伺服器,可以通過瀏覽器訪問http://localhost:4567/ 來同網頁來管理組件

brew -h brew   —協助

homebrew本身就是一個git倉庫。使用homebrew安裝軟體包時,會自動先下載軟體包,然後解壓安裝,但有時候下載會卡住,或者很慢,這個時候你可以通過其他工具先將所需的軟體包下載 下來,注意版本一定要對應,homebrew放置軟體包源碼的路徑為/Library/Caches/Homebrew/,只要你將所需要的軟體包下載正 確的版本,放置在此目錄下,那麼再使用brew install xxx的時候,brew就能直接安裝了,有時候brew install xxx卡在下載介面,這招很管用。

 

Making a formula is easy. Just brew create URL and then brew install $FORMULA (perhaps with --debug --verbose). Basically, a formula is a Ruby file. You can place it anywhere you want (local or remote) and install it by pointing to the file or URL.

formula檔案位置:/usr/local/Library/Formula/foo.rb  存放安裝工具的rb檔案

Packages are installed according to their formulae, which live in $(brew --repository)/Library/Formula. Check some out. You can view any formula at anytime; e.g. brew edit wget.

 

 另 外說明下,brew安裝程式的過程中需要用到蘋果的xcode中的 編譯器,你可以到蘋果的官網中免費下載安裝(需要註冊免費的開發人員,然後才能下載),安裝後到屬性(Xcode -- Perference--Downloads--Components--Command Line Tools)點擊下載就可以了

Homebrew工具地址:https://github.com/Homebrew/homebrew

brew 命令(蘋果系統使用的軟體鏡像)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.