Homebrew安装使用卸载

1、安装

国外源脚本执行:

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

如果执行中出现连接超时等问题,可以尝试执行下面的脚本。

执行安装命令,执行的脚步是国内的开源中国提供的源安装路径(https://gitee.com)

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

执行之后需要选择下载源

          开始执行Brew自动安装程序[cunkai.wang@foxmail.com]['2023-01-06 11:22:38']['13.0']https://zhuanlan.zhihu.com/p/111014448请选择一个下载brew本体的序号,例如中科大,输入1回车。
源有时候不稳定,如果git克隆报错重新运行脚本选择源。
1、中科大下载源
2、清华大学下载源
3、北京外国语大学下载源
4、腾讯下载源
5、阿里巴巴下载源
请输入序号: 1

输入下载源之后等待下载,等待可能会稍微长一些,耐心等待。
安装好之后执行一下brew -v,查看一下当前版本,我执行过之后出现如下情况:

/opt brew -v
Homebrew 3.6.17-57-gea0b786
fatal: detected dubious ownership in repository at '/opt/homebrew/Library/Taps/homebrew/homebrew-core'
To add an exception for this directory, call:git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
Homebrew/homebrew-core (no Git repository)
fatal: detected dubious ownership in repository at '/opt/homebrew/Library/Taps/homebrew/homebrew-cask'
To add an exception for this directory, call:git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
Homebrew/homebrew-cask (no Git repository)

上面有标识,需要执行git config --global,按照上面的提示执行一下相关的命令,如下:

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask

执行完成之后,在执行brew -v查看一下是否还会出现fatal信息:

Homebrew 3.6.17-57-gea0b786
Homebrew/homebrew-core (git revision 40f6cac1262; last commit 2023-01-06)
Homebrew/homebrew-cask (git revision 3a51e6f790; last commit 2023-01-05)

2、使用

执行之后查看一下应该是没有问题的,现在安装一下软件看看homebrew是否安装成功brew install wget

/opt/homebrew (master ✔) brew install wget==> Fetching dependencies for wget: gettext, libunistring, libidn2, ca-certificates and openssl@1.1
==> Fetching gettext
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gettext-0.21.1.arm64_ventura.bottle.tar.gz
Already downloaded: /Users/halo/Library/Caches/Homebrew/downloads/1278013e6188ef044a9c3bb644acbb032a608bfe7583db091a8c15f0b5a42c63--gettext-0.21.1.arm64_ventura.bottle.tar.gz
==> Fetching libunistring
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libunistring-1.1.arm64_ventura.bottle.tar.gz
Already downloaded: /Users/halo/Library/Caches/Homebrew/downloads/a8ac0bb0aac2c0e1e2c3413b71b5cd4ed92ce1c9959b8c302050239c30bab50f--libunistring-1.1.arm64_ventura.bottle.tar.gz
==> Fetching libidn2
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libidn2-2.3.4_1.arm64_ventura.bottle.tar.gz
Already downloaded: /Users/halo/Library/Caches/Homebrew/downloads/bff2bb496dedf7d291f5ff6a319d279524031fb35b397eb9bf827f639d47db06--libidn2-2.3.4_1.arm64_ventura.bottle.tar.gz
==> Fetching ca-certificates
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/ca-certificates-2022-10-11.all.bottle.tar.gz
Already downloaded: /Users/halo/Library/Caches/Homebrew/downloads/10a0aa3f1cb1c4bdd31b95b30e6838414c313b5f40761671816349d96125a848--ca-certificates-2022-10-11.all.bottle.tar.gz
==> Fetching openssl@1.1
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/openssl%401.1-1.1.1s.arm64_ventura.bottle.tar.gz
Already downloaded: /Users/halo/Library/Caches/Homebrew/downloads/1c71d0902e75b0c6a93a9aaa12b377db6239fdd53abed53db7304458bd7aa957--openssl@1.1-1.1.1s.arm64_ventura.bottle.tar.gz
==> Fetching wget
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/wget-1.21.3_1.arm64_ventura.bottle.tar.gz
Already downloaded: /Users/halo/Library/Caches/Homebrew/downloads/0ec7f00c7477dd6cfb383eb095f7c73f945ca5a14874eec1a79f07f7a3bf92df--wget-1.21.3_1.arm64_ventura.bottle.tar.gz
==> Installing dependencies for wget: gettext, libunistring, libidn2, ca-certificates and openssl@1.1
==> Installing wget dependency: gettext
==> Pouring gettext-0.21.1.arm64_ventura.bottle.tar.gz
												

Homebrew安装使用卸载相关推荐

  1. Mac Homebrew 安装与卸载

    Homebrew 是一款Mac OS平台下的软件包管理工具,拥有安装.卸载.更新.查看.搜索等很多实用的功能.简单的一条指令,就可以实现包管理,而不用你关心各种依赖和文件路径的情况,十分方便快捷. 一 ...

  2. MacBook Pro m1 homebrew 安装,卸载脚本

    MacBook Pro m1 homebrew 一.brew 安装脚本(选择源) 二.brew 卸载脚本 一.brew 安装脚本(选择源) /bin/zsh -c "$(curl -fsSL ...

  3. homebrew可以管理众多开源软件的安装和卸载

    通过homebrew可以管理众多开源软件的安装和卸载. 参考https://github.com/mxcl/homebrew/wiki 1. 安装: ruby -e "$(curl -fsS ...

  4. mac 下homebrew 的安装和卸载

    mac系统常用的软件安装工具就是homebrew 个人认为通过brew安装比较简单,下面介绍下如何安装 安装homebrew 安装 /usr/bin/ruby -e "$(curl -fsS ...

  5. 如何解决旧版本的node和npm卸载不干净导致的用homebrew安装新版本过程中出现的问题

    最近发现了homebrew的诸般便利,并且发现自己手动更新node和npm总是不是网络有问题就是什么有问题,动心把之前安装的node和npm手动都删掉了,高高兴兴地去用homebrew安装,结果发现高 ...

  6. Homebrew安装(MacOS)

    一.Homebrew简介 Homebrew是一款Mac OS平台下的软件包管理工具,拥有安装.卸载.更新.查看.搜索等很多实用的功能.简单的一条指令,就可以实现包管理,而不用关心各种依赖和文件路径的情 ...

  7. mac安装mysql mysql命令找不到_MacBook通过Homebrew安装mysql

    Macbook通过Homebrew安装mysql Macbook如何和安装mysql呢?有两种方式,一种是直接在mysql官网下载dmg可执行文件(https://dev.mysql.com/down ...

  8. MAC系统使用Homebrew安装nvm

    1.nvm介绍 当我们使用node开发网站时,可能会同时需要运行多个项目,每个项目所使用当node版本又不相同,或者当我们需要学习新的node时,多个版本之间的切换和维护会变得非常麻烦和棘手.nvm的 ...

  9. mac下npm/node的安装和卸载、升级;node、npm升级后最后删掉node_modules重新安装

    mac还是使用brew install简单一些:最好使用一种安装方式,不要多种方式互用: 更新npm到最新版本npm install -g npm更新npm到指定版本 npm -g install n ...

最新文章

  1. Struts2自定义类型转换器、自定义拦截器和用户输入数据的验证
  2. php cms word导入,phpcms V9文章编辑器不能按word文档复制过来的段头缩进显示
  3. 使用XMLSerializerNamespace类生成受限的名称
  4. Yii2系列教程三:Database And Gii
  5. Python学习2 条件判断语句if,循环语句for while
  6. PRML-系类二之2.1
  7. ICCV 2021 | 模型安全不容忽视!特定样本触发器的隐形后门攻击方法
  8. easyx写登入界面_小白入门——easyx界面版“贪吃蛇”的C语言实现(详细)
  9. 通信网络安全还应从基础设施保护做起
  10. (转载)年薪如何从10万跳到50万
  11. Need ffmpeg exe. You can download it by calling: imageio.plugins.ffmpeg.download()
  12. P. Laguna/Evaluation of an Automatic Threshold Based Detector of Waveform Limits in Holter ECG
  13. Treap 树堆 容易实现的平衡树
  14. shell输出重定向
  15. 苏宁大数据怎么运营_苏宁首个无人店大数据曝光,其消费人群是如何分布的?...
  16. 炉石兄弟 修复图腾师问题 by大神beebee102, 还有阴燃电鳗
  17. 高等数学—两个重要的极限定理
  18. Spring启动异常之ConflictingBeanDefinitionException: Annotation-specified bean name ‘XXXXXService‘
  19. Git 笔记 - 程序员都要掌握的 Git
  20. matlab2012簡明教程課後習題答案,MATLAB习题答案

热门文章

  1. npm报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
  2. 百脑汇 Ghost_XP_SP3 电子城国庆版 2012.10
  3. 【顺序表】顺序表定位
  4. Wos/Pubmed/Scopus数据库一键去重+清洗数据 CiteSpace Vosviewer
  5. diagram使用(BLOCK DIAGRAM)
  6. 就让烟花来代替我对你的祝福叭 ~ 【生日快乐-简单烟花祝福特效】
  7. win10 程序最小化不在任务栏了?在左下角
  8. Tik Tok品牌营销,如何做好内容打法
  9. 带宽、峰值带宽,网速是什么,它们有什么关系?
  10. Python 讲堂 parse_args()详解