brew介绍

Homebrew 是OS X下的一个套件管理器,也称为软件包管理工具,例如Linux在Ubuntu下有apt-get、RedHat有rpm、Fedora有yum, Win10下目前也有PackageManagement(OneGet)


homebrew获取安装

打开终端窗口,粘贴下面脚本

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

如果在获取Homebrew版本时遇到等问题

error: unable to unlink old ‘.github/CONTRIBUTING.md’ (Permission denied)
error: unable to unlink old ‘.github/ISSUE_TEMPLATE.md’ (Permission denied)
error: unable to unlink old ‘.github/PULL_REQUEST_TEMPLATE.md’ (Permission denied)
error: unable to create symlink Library/ENV/3.2.6 (Permission denied)
error: unable to create symlink Library/ENV/4.2 (Permission denied)

是homebrew版本获取时被拒绝了,需要确保/user/local的访问权限,可以尝试下面命令修改权限

sudo chown -R $(whoami) /usr/local

brew安装软件

brew install wget

通过brew安装的软件默认都放/usr/local/Cellar/下面


brew卸载软件

brew uninstall wget
GitHub 加速计划 / br / brew
40.4 K
9.47 K
下载
🍺 The missing package manager for macOS (or Linux)
最近提交(Master分支:1 个月前 )
90a90b30 1 个月前
47b1cab7 1 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐