brew install安装的软件放在什么地方
Author:zhoulujun Date:
通过brew install安装应用最先是放在/usr/local/Cellar/目录下。
有些应用会自动创建软链接放在/usr/bin或者/usr/sbin,同时也会将整个文件夹放在/usr/local
brew list 确定已经安装的软件
brew --prefix 确定 安装目录
比如:
brew install go brew list
输出
==> Formulae
go nvm
确定目录
brew list go
输出详细目录
/usr/local/Cellar/go/1.17.6/bin/go
/usr/local/Cellar/go/1.17.6/bin/gofmt
/usr/local/Cellar/go/1.17.6/libexec/api/ (21 files)
/usr/local/Cellar/go/1.17.6/libexec/bin/ (2 files)
/usr/local/Cellar/go/1.17.6/libexec/doc/ (4 files)
/usr/local/Cellar/go/1.17.6/libexec/lib/ (3 files)
/usr/local/Cellar/go/1.17.6/libexec/misc/ (373 files)
/usr/local/Cellar/go/1.17.6/libexec/pkg/ (669 files)
/usr/local/Cellar/go/1.17.6/libexec/src/ (7195 files)
/usr/local/Cellar/go/1.17.6/libexec/test/ (2546 files)
/usr/local/Cellar/go/1.17.6/libexec/ (6 files)
路径查询
brew --prefix go
/usr/local/opt/go
转载本站文章《brew install安装的软件放在什么地方》,
请注明出处:https://www.zhoulujun.cn/html/OS/Mac/MacOSTutorials/8766.html