Homebrew-brew-macOS包管理工具
简介
macOS的包管理工具
主页:https://brew.sh/index_zh-cn
安装
1 |
|
=> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
get_owner:1: command not found: stat -f
get_group:1: command not found: stat -f
get_owner:1: command not found: stat -f
get_group:1: command not found: stat -f
get_owner:1: command not found: stat -f
get_group:1: command not found: stat -f
get_owner:1: command not found: stat -f
get_group:1: command not found: stat -f
==> The following existing directories will be made group writable:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man8
==> The following existing directories will have their owner set to username:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man8
==> The following existing directories will have their group set to admin:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man8
==> The following new directories will be created:
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
更新&升级
1 |
|
其它命令
1 |
|
其它
HomeBrew环境变量
https://docs.brew.sh/Manpage#environment
HomeBrew与Python
Python has been installed as
/usr/local/bin/python3Unversioned symlinks
python
,python-config
,pip
etc. pointing topython3
,python3-config
,pip3
etc., respectively, have been installed into
/usr/local/opt/python@3.9/libexec/binYou can install Python packages with
pip3 install
They will install into the site-package directory
/usr/local/lib/python3.9/site-packagestkinter is no longer included with this formula, but it is available separately:
brew install python-tk@3.9
为 homeBrew 设置代理
查看 homebrew 默认安装的组件版本
以python为例,brew install
使用的配置文件在这里
https://github.com/Homebrew/homebrew-core/blob/master/Aliases/python