# brew 更新 > 使用 `git` 从 GitHub 获取 Homebrew 和所有公式的最新版本,并执行任何必要的迁移。 > 要升级所有已安装的公式,请使用 `brew upgrade`。 > 更多信息:。 - 获取 Homebrew 和所有公式的最新版本: `brew update`