码迷,mamicode.com
首页 > 系统相关 > 详细

Mac 安装Homebrew

时间:2017-12-09 14:02:08      阅读:2138      评论:0      收藏:0      [点我收藏+]

标签:html   home   ota   zha   success   pull   ott   down   request   

brew 全称Homebrew  是Mac OSX上的软件包管理工具,最近如要安装RabbitMq,但是官网强烈建议使用brew安装,所以便有了这篇简易随笔。

1.安装命令

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

2.卸载命令

输入密码后会开始下载homebrew,如果此时网速不稳定可能会出现错误提示:curl: (35) Server aborted the SSL handshake。

此时需要执行卸载操作,输入如下命令进行卸载:

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

卸载完成后再次尝试安装。

3.安装完成后

通过brew命令就可以测试brew安装完成了

HEAD is now at e57da60 Merge pull request #3548 from sjackman/x11
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
==> Tapping homebrew/core
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core‘...
remote: Counting objects: 4654, done.
remote: Compressing objects: 100% (4432/4432), done.
remote: Total 4654 (delta 36), reused 319 (delta 10), pack-reused 0
Receiving objects: 100% (4654/4654), 3.84 MiB | 56.00 KiB/s, done.
Resolving deltas: 100% (36/36), done.
Checking connectivity... done.
Tapped 4426 formulae (4,700 files, 12.0MB)
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/zhangli/Library/Caches/Homebrew
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics.html

==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh
MochushiledeMBP:~ zhangli$ brew
Example usage:
  brew search [TEXT|/REGEX/]
  brew (info|home|options) [FORMULA...]
  brew install FORMULA...
  brew update
  brew upgrade [FORMULA...]
  brew uninstall FORMULA...
  brew list [FORMULA...]

Troubleshooting:
  brew config
  brew doctor
  brew install -vd FORMULA

Developers:
  brew create [URL [--no-fetch]]
  brew edit [FORMULA...]
  https://docs.brew.sh/Formula-Cookbook.html

Further help:
  man brew
  brew help [COMMAND]
  brew home

 

Mac 安装Homebrew

标签:html   home   ota   zha   success   pull   ott   down   request   

原文地址:http://www.cnblogs.com/fengyan20150508/p/8011180.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!