美文网首页
Mac安装Homebrew

Mac安装Homebrew

作者: 阿杰的人生路 | 来源:发表于2018-03-10 22:26 被阅读87次

如需转载请备注地址~ 谢谢 ~ 简书地址 个人博客

安装 Homebrew

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

如果安装失败可以尝试下这个

/usr/bin/ruby -e "$(curl -fsSL--insecure raw.githubusercontent.com/Homebrew/install/master/install)"

Homebrew 能干什么?

  • 使用 Homebrew 安装 Apple 没有预装但 你需要的东西。
    brew install wget

  • 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 不会将文件安装到它本身目录之外,所以您可将 Homebrew 安装到任意位置。

  • 轻松创建你自己的 Homebrew 包。

Created /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/bar.rb```

  • 完全基于 git 和 ruby,所以自由修改的同时你仍可以轻松撤销你的变更或与上游更新合并。
    brew edit wget # 使用 $EDITOR 编辑!
    
  • Homebrew 使 macOS 更完整。使用 gem 来安装 gems、用 brew 来安装那些依赖包。

支持一下,请他去喝杯咖啡

相关文章

网友评论

      本文标题:Mac安装Homebrew

      本文链接:https://www.haomeiwen.com/subject/sszbfftx.html