Nicholas Chen
Nicholas Chen

Reputation: 541

Homebrew Mac Update Issues

This is something that I've noticed starting about 2 days ago. In my past experience, Homebrew would always have daily updates. I would always type the command brew update and voila, there would be packages that would be updated/deleted and Homebrew would display what changed. I also noticed that if I didn't update Homebrew for more than a day, I would get the following notice:

Homebrew hasn't been updated in the last 24 hours. That's a long time in brew land. Type 'brew update.

However, the last time I updated Homebrew on my Mac was on August 10, 2016. Today is August 14, 2016 and when I type brew update, it tells me that everything is already up-to-date, even though I haven't updated Homebrew in 4 days. The update notice in brew doctor also does not show-up. I have not modified Homebrew in any way throughout this whole debacle.
Is there a solution to this Homebrew updating issue or does Homebrew not have daily updates anymore?

Upvotes: 42

Views: 9018

Answers (3)

dimohamdy
dimohamdy

Reputation: 3053

Please run to debug what happens when update

brew update --debug --verbose

brew update --force

My reference from this comment

Upvotes: 1

gonglexin
gonglexin

Reputation: 1076

According to https://github.com/Homebrew/brew#update-bug

If Homebrew was updated on Aug 10-11th 2016 and brew update always says Already up-to-date. you need to run

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

Upvotes: 106

patito
patito

Reputation: 540

Homebrew is basically a git directory, so you can cd into the directory and perform a git fetch followed by a git pull

If you are on default config:

cd /usr/local && git pull origin master

Upvotes: 4

Related Questions