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

 

brew ls <package>

brew link node

brew 卸载脚本

 

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

 

三、常用命令

安装软件:brew install xxx
卸载软件:brew uninstall xxx
搜索软件:brew search xxx
更新软件:brew upgrade xxx
查看列表:brew list
更新brew:brew update
清理所有包的旧版本:brew cleanup
清理指定包的旧版本:brew cleanup $FORMULA
查看可清理的旧版本包,不执行实际操作:brew cleanup -n

 

当报错 重新 安装 brew 的 git 仓库 可以使用 https://blog.csdn.net/weixin_40046130/article/details/106280208

这个报错就是 brew doctor 要删除的那两个库, 但是安装太慢了 所以使用这个。

posted on 2021-08-19 17:34  晓欲望!  阅读(33)  评论(0)    收藏  举报