日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

mac homebrew

發(fā)布時間:2024/9/5 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mac homebrew 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

brew 全稱Homebrew??是Mac OSX上的軟件包管理工具

Homebrew 安裝和卸載工具 只用一行命令就能完成

官方地址: ? ?http://brew.sh/index.html

?

mac 自帶ruby ? ? 打開命令行 ?terminal ? 輸入 ?:
  • ruby?-v?
  • 1) 安裝命令 ?

  • ruby?-e?"$(curl?-fsSL?https://raw.github.com/Homebrew/homebrew/go/install)"??

  • 假如已經(jīng)安裝了 ?輸入如下命令
  • ruby?-e?"$(curl?-fsSL?https://raw.githubusercontent.com/Homebrew/install/master/install)"??

  • 命令行輸出:

    2) brew 使用方法

    命令行 輸入: ?brew

  • Example?usage:??
  • ??brew?[info?|?home?|?options?]?[FORMULA...]??
  • ??brew?install?FORMULA...??
  • ??brew?uninstall?FORMULA...??
  • ??brew?search?[foo]??
  • ??brew?list?[FORMULA...]??
  • ??brew?update??
  • ??brew?upgrade?[FORMULA...]??
  • ??brew?pin/unpin?[FORMULA...]??
  • ??
  • Troubleshooting:??
  • ??brew?doctor??
  • ??brew?install?-vd?FORMULA??
  • ??brew?[--env?|?config]??
  • ??
  • Brewing:??
  • ??brew?create?[URL?[--no-fetch]]??
  • ??brew?edit?[FORMULA...]??
  • ??open?https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md??
  • ??
  • Further?help:??
  • ??man?brew??
  • ??brew?home??
  • ?

    ?

    3) 安裝工具

    ?

    舉個栗子: ? wget ?這個工具

    輸入命令: ? brew install wget?

    如圖:

    ?

    ?

    4) ?卸載

    拿上面的例子: ? wget 工具

    輸入命令 ? ?brew uninstall wget

    ?

    5) ?工具安裝的目錄

    Homebrew 會將套件安裝到獨立目錄,并將文件軟鏈接至/usr/local?。

  • $?cd?/usr/local??
  • $?find?Cellar??
  • Cellar/wget/1.16.1??
  • Cellar/wget/1.16.1/bin/wget??
  • Cellar/wget/1.16.1/share/man/man1/wget.1??
  • ??
  • $?ls?-l?bin??
  • bin/wget?->?../Cellar/wget/1.16.1/bin/wget ?
  • Homebrew 的所有文件均會被安裝到預(yù)定義目錄下,所以無需擔(dān)心 Homebrew 的安裝位置。

    6) 其他命令

    brew list?????????? 列出已安裝的軟件

    brew update???? 更新brew

    brew home?????? 用瀏覽器打開brew的官方網(wǎng)站

    brew info???????? 顯示軟件信息

    brew deps??????? 顯示包依賴

    ?

    更多命令請看: ? ?https://git.io/brew-docs

    ?

    本文出處:http://blog.csdn.net/aaawqqq/article/details/44088141

    轉(zhuǎn)載于:https://www.cnblogs.com/zhuchenglin/p/7372995.html

    總結(jié)

    以上是生活随笔為你收集整理的mac homebrew的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。