简体   繁体   English

如果没有更新,如何更新brew?

[英]How to update brew if it is not updating?

I am trying to update my brew install. 我正在尝试更新我的brew安装。 When I update using brew update it shows already up to date, however it is not. 当我使用brew update它显示已经是最新的,但事实并非如此。

Tried brew doctor as well. 也尝试过brew doctor But it showed nothing. 但它没有表现出来。

Is reinstalling brew the only option left? 重新安装 brew是唯一剩下的选择吗?

I am using Mac OS Sierra . 我正在使用Mac OS Sierra

So I found a solution. 所以我找到了解决方案。 Unlucky me stumbled upon this one I guess. 不幸的是我偶然发现了这个

Used the same solution: 使用相同的解决方案:

cd $(brew --repo) && git fetch && git reset --hard origin/master && brew update

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM