类似于redhat系统的yum,ubuntu的apt-get,mac系统下也有相应的包管理容器:homebrew。用法与apt-get、yum大同小异,都是对安装软件做一些安装删除类的命令行操作,以下实例演示通过命令安装homebrew,见到“Installation successful!”则说明安装成功。

  1. tdcqma:awesome-python3-webapp $ ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. ==> This script will install:
  3. /usr/local/bin/brew
  4. /usr/local/share/doc/homebrew
  5. /usr/local/share/man/man1/brew.
  6. /usr/local/share/zsh/site-functions/_brew
  7. /usr/local/etc/bash_completion.d/brew
  8. /usr/local/Homebrew
  9. ==> The following existing directories will be made group writable:
  10. /usr/local/bin
  11. /usr/local/sbin
  12. ==> The following existing directories will have their owner set to mahaibin:
  13. /usr/local/bin
  14. /usr/local/sbin
  15. ==> The following existing directories will have their group set to admin:
  16. /usr/local/bin
  17. /usr/local/sbin
  18. ==> The following new directories will be created:
  19. /usr/local/Cellar
  20. /usr/local/Homebrew
  21. /usr/local/Frameworks
  22. /usr/local/etc
  23. /usr/local/include
  24. /usr/local/lib
  25. /usr/local/opt
  26. /usr/local/share
  27. /usr/local/share/zsh
  28. /usr/local/share/zsh/site-functions
  29. /usr/local/var
  30.  
  31. Press RETURN to continue or any other key to abort
  32. ==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/sbin
  33. Password:
  34. ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/sbin
  35. ==> /usr/bin/sudo /usr/sbin/chown mahaibin /usr/local/bin /usr/local/sbin
  36. ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/sbin
  37. ==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
  38. ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
  39. ==> /usr/bin/sudo /bin/chmod /usr/local/share/zsh /usr/local/share/zsh/site-functions
  40. ==> /usr/bin/sudo /usr/sbin/chown mahaibin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
  41. ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
  42. ==> /usr/bin/sudo /bin/mkdir -p /Users/mahaibin/Library/Caches/Homebrew
  43. ==> /usr/bin/sudo /bin/chmod g+rwx /Users/mahaibin/Library/Caches/Homebrew
  44. ==> /usr/bin/sudo /usr/sbin/chown mahaibin /Users/mahaibin/Library/Caches/Homebrew
  45. ==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
  46. ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
  47. ==> /usr/bin/sudo /usr/sbin/chown mahaibin /Library/Caches/Homebrew
  48. ==> Downloading and installing Homebrew...
  49. remote: Counting objects: , done.
  50. remote: Compressing objects: % (/), done.
  51. remote: Total (delta ), reused (delta ), pack-reused
  52. Receiving objects: % (/), 3.51 MiB | 27.00 KiB/s, done.
  53. Resolving deltas: % (/), done.
  54. From https://github.com/Homebrew/brew
  55. * [new branch] master -> origin/master
  56. * [new tag] 0.1 -> 0.1
  57. * [new tag] 0.2 -> 0.2
  58. * [new tag] 0.3 -> 0.3
  59. * [new tag] 0.4 -> 0.4
  60. * [new tag] 0.5 -> 0.5
  61. * [new tag] 0.6 -> 0.6
  62. * [new tag] 0.7 -> 0.7
  63. * [new tag] 0.7. -> 0.7.
  64. * [new tag] 0.8 -> 0.8
  65. * [new tag] 0.8. -> 0.8.
  66. * [new tag] 0.9 -> 0.9
  67. * [new tag] 0.9. -> 0.9.
  68. * [new tag] 0.9. -> 0.9.
  69. * [new tag] 0.9. -> 0.9.
  70. * [new tag] 0.9. -> 0.9.
  71. * [new tag] 0.9. -> 0.9.
  72. * [new tag] 0.9. -> 0.9.
  73. * [new tag] 0.9. -> 0.9.
  74. * [new tag] 1.0. -> 1.0.
  75. * [new tag] 1.0. -> 1.0.
  76. * [new tag] 1.0. -> 1.0.
  77. * [new tag] 1.0. -> 1.0.
  78. * [new tag] 1.0. -> 1.0.
  79. * [new tag] 1.0. -> 1.0.
  80. * [new tag] 1.0. -> 1.0.
  81. * [new tag] 1.0. -> 1.0.
  82. * [new tag] 1.0. -> 1.0.
  83. * [new tag] 1.0. -> 1.0.
  84. * [new tag] 1.1. -> 1.1.
  85. * [new tag] 1.1. -> 1.1.
  86. * [new tag] 1.1. -> 1.1.
  87. * [new tag] 1.1. -> 1.1.
  88. * [new tag] 1.1. -> 1.1.
  89. * [new tag] 1.1. -> 1.1.
  90. * [new tag] 1.1. -> 1.1.
  91. * [new tag] 1.1. -> 1.1.
  92. * [new tag] 1.1. -> 1.1.
  93. * [new tag] 1.1. -> 1.1.
  94. * [new tag] 1.1. -> 1.1.
  95. * [new tag] 1.1. -> 1.1.
  96. * [new tag] 1.1. -> 1.1.
  97. * [new tag] 1.1. -> 1.1.
  98. * [new tag] 1.2. -> 1.2.
  99. * [new tag] 1.2. -> 1.2.
  100. HEAD is now at fb33acb Merge pull request # from mistydemeo/use_python_flock
  101. ==> Tapping homebrew/core
  102. Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
  103. remote: Counting objects: , done.
  104. remote: Compressing objects: % (/), done.
  105. remote: Total (delta ), reused (delta ), pack-reused
  106. Receiving objects: % (/), 3.52 MiB | 22.00 KiB/s, done.
  107. Resolving deltas: % (/), done.
  108. Tapped formulae (, files, .0MB)
  109. ==> Cleaning up /Library/Caches/Homebrew...
  110. ==> Migrating /Library/Caches/Homebrew to /Users/mahaibin/Library/Caches/Homebrew...
  111. ==> Deleting /Library/Caches/Homebrew...
  112. Already up-to-date.
  113. ==> Installation successful!
  114.  
  115. ==> Homebrew has enabled anonymous aggregate user behaviour analytics.
  116. Read the analytics documentation (and how to opt-out) here:
  117. http://docs.brew.sh/Analytics.html
  118.  
  119. ==> Next steps:
  120. - Run `brew help` to get started
  121. - Further documentation:
  122. http://docs.brew.sh
  123. tdcqma:awesome-python3-webapp $

homebrew简写为brew,查看一下brew的帮助说明:

  1. tdcqma:awesome-python3-webapp $ brew help
  2. Example usage:
  3. brew search [TEXT|/REGEX/]
  4. brew (info|home|options) [FORMULA...]
  5. brew install FORMULA...
  6. brew update
  7. brew upgrade [FORMULA...]
  8. brew uninstall FORMULA...
  9. brew list [FORMULA...]
  10.  
  11. Troubleshooting:
  12. brew config
  13. brew doctor
  14. brew install -vd FORMULA
  15.  
  16. Developers:
  17. brew create [URL [--no-fetch]]
  18. brew edit [FORMULA...]
  19. http://docs.brew.sh/Formula-Cookbook.html
  20.  
  21. Further help:
  22. man brew
  23. brew help [COMMAND]
  24. brew home

尝试使用brew进行软件安装

  1. tdcqma:awesome-python3-webapp $ brew install tree
  2. ==> Downloading https://homebrew.bintray.com/bottles/tree-1.7.0.sierra.bottle.1.tar.gz
  3. ######################################################################## 100.0%
  4. ==> Pouring tree-1.7..sierra.bottle..tar.gz
  5. ==> Using the sandbox
  6. Mac下软件包管理器-homebrew的更多相关文章

      1. Mac 系统下类似于 apt-get 的软件包管理器 -- Homebrew
      1. 对于一个习惯了在 Ubuntu 的终端上通过 apt-get 来安装工具软件的我来说,也希望在Mac上找到类似的工具,能很方便的一条命令就能安装所需的软件,而不用手工的去查找下载编译,或者是折腾安装所 ...

      1. Mac安装软件包管理工具Homebrew
      1. PS:最近开始学习groovy,打算去官网下载SDK Bundle,可是官网半天加载不出来,而且莫名其妙就是下载不下来,Folx一直提示 "无效的HTTP相应:禁止",可能是插件和 ...

      1. Mac 软件包管理器Homebrew使用指北
      1. Homebrew Homebrew由开发者 Max Howell 开发,并基于 BSD 开源,是一个非常方便的软件包包管理器工具. Homebrew 官网 Homebrew 的几个核心概念 在正式介绍 ...

      1. Mac OS 下包管理器 homebrew的安装
      1. homebrew :熟悉mac os的小伙伴们一定都知道这个包管理工具,它非常方便且好用,安装它只需要打开终端并将以下代码粘贴到终端中运行即可: /usr/bin/ruby -e "$(cu ...

      1. mac安装brew 软件包管理工具Homebrew
      1. brew 全称Homebrew  是Mac OSX上的软件包管理工具 Homebrew 安装和卸载工具 只用一行命令就能完成 官方地址:    http://brew.sh/index.html   ...

      1. 「NOI2015」「Codevs4621」软件包管理器(树链剖分
      1. 4621 [NOI2015]软件包管理器 时间限制: 1 s 空间限制: 256000 KB 题目等级 : 钻石 Diamond   题目描述 Description Linux用户和OSX用户一定对 ...

      1. BZOJ 4196: [Noi2015]软件包管理器 [树链剖分 DFS序]
      1. 4196: [Noi2015]软件包管理器 Time Limit: 10 Sec  Memory Limit: 512 MBSubmit: 1352  Solved: 780[Submit][Stat ...

      1. [BZOJ4196][NOI2015]软件包管理器
      1. 4196: [Noi2015]软件包管理器 Time Limit: 10 Sec  Memory Limit: 512 MBSubmit: 1040  Solved: 603[Submit][Stat ...

      1. BZOJ4196 软件包管理器
      1. Description Linux用户和OSX用户一定对软件包管理器不会陌生. 通过软件包管理器,你可以通过一行命令安装某一个软件包,然后软件包管理器会帮助你从软件源下载软件包,同时自动解决所有的依赖 ...

    1.  
    2. 随机推荐

        1. [译]javascript中的依赖注入
        1. 前言 在上文介绍过控制反转之后,本来打算写篇文章介绍下控制反转的常见模式-依赖注入.在翻看资料的时候,发现了一篇好文Dependency injection in JavaScript,就不自己折腾了 ...

        1. @Resource 注解的使用
        1.   1.@Autowired与@Resource都可以用来装配bean. 都可以写在字段上,或写在setter方法上. 2.@Autowired默认按类型装配(这个注解是属业spring的),默认情况 ...

        1. IdentityServer4目录
        1. 一.介绍 二.快速入门 三.主题 四.端点 五.参考 IdentityServer4是ASP.NET Core 2的OpenID Connect和OAuth 2.0框架. 它可以在您的应用程序中启用以 ...

        1. C# 重启程序本身
        1. private static void Restart() { Thread thtmp = new Thread(new ParameterizedThreadStart(run)); object ...

        1. vue+vue-cli+vuex+vrouter 开发学习和总结
        1. 1.项目目录结构 1.components------------------------->页面中所用的公共组件: 2.router index.js -------------------- ...

        1. v-on指令监听dom事件
        1. 一.无参 <div id="J_app"> <button v-on:click="eatWhat">吃啥</button> ...

        1. CF1039C.Network Safety
        1. 目录 题目链接 题解 代码 题目链接 CF1039C.Network Safety 题解 对于一对相邻点,^异或后相同的值唯一a_i ^ t= b_i,a_i ^ b_i = t 对于不在t集合的直接 ...

        1. php 使用curl获取Location:重定向后url
        1. 在php获取http头部信息上,php有个自带的函数get_headers(),我以前也是用这个的,听说效率在win上不咋地,再加上最近研究百度url无果,写了cURL获取重定向url的php代码来折 ...

        1. GC日志
        1. JVM的GC日志的主要参数包括如下几个: -XX:+PrintGC 输出GC日志 -XX:+PrintGCDetails 输出GC的详细日志 -XX:+PrintGCTimeStamps 输出GC的时 ...

        1. javascript鼠标滚动
        1. firefox使用DOMMouseScroll,其他浏览器使用mousewheel当滚动时获取wheelDelta值,firefox使用detail:值为下滚3上滚-3,其他浏览器使用wheelDel ...