Mac brew (国内源)安装维护电脑软件

一、为什么要用brew来安装软件

brew 是MacOS上的包管理工具,可以简化 macOS 和 Linux 操作系统上软件的安装.

为什么有 brew?

(2)他类似 ubuntu 系统下的 apt-get 的功能,可以帮助你解决安装依赖问题,例如你想下载 go、maven 这种命令行工具,你还需要配置其它的一些环境,而 brew 在安装的时候都帮你配置好了。

(3)brew安装方式的好处在于,他是统一安装到一个地方,方便管理,卸载也很方便,但是配置文件还是散的

二、国内源自动脚本(建议使用清华源)

苹果电脑 常规安装脚本(推荐 完全体 几分钟安装完成):

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

苹果电脑 极速安装脚本(精简版 几秒钟安装完成):

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

苹果电脑 卸载脚本:

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

常见错误地去下方地址查看

https://gitee.com/cunkai/HomebrewCN/blob/master/error.md

三、 brew常用命令

brew search name:联 搜索软件是否存在 brew 中

brew install name:安装软件

brew upgrade name:更新软件

brew uninstall name:卸载软件

brew reinstall name:重新安装软件

brew info name:查看软件安装地址

brew cleanup:清理缓存等

brew doctor:查看建议,例如升级等

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2022年9月4日
下一篇 2022年9月4日

相关推荐