Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Homebrew Mac Update Issues

Tags:

macos

homebrew

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?

like image 369
Nicholas Chen Avatar asked Aug 14 '16 18:08

Nicholas Chen


People also ask

Does Homebrew work on M1 Mac?

If you're coming to M1 Mac fresh, without any old projects or profiles, you probably won't notice; Homebrew will work as it always has. But if you're trying to migrate from an Intel Mac you won't be able to just move packages that were once in /usr/local over to /opt/homebrew .

Does Homebrew automatically update packages?

A detailed description of the proposed feature. Today by default, everytime you install a new package, brew will go ahead and automatically update all of my system packages to their latest versions.


1 Answers

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 
like image 65
gonglexin Avatar answered Oct 08 '22 09:10

gonglexin