brew 安装前 brew 更新的目的

时间:2021-04-19 18:13:05

标签: macos homebrew

大多数地方建议在 brew 安装之前运行 brew 更新。像这样:

brew update
brew install <package_name>

首先运行 brew update 的目的是什么?
我已经多次安装而没有更新,并且运行良好

1 个答案:

答案 0 :(得分:2)

您实际上不需要在 brew update 之前执行 brew installbrew install 命令会在安装任何东西之前自动更新资源(这就是 brew update 所做的)。