You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure the best way to address this (maybe preinstall_script?), but Homebrew still has an install loop, at least for an upgrade/update.
The main issue is that the package on the Homebrew releases page doesn't seem to overwrite an existing Homebrew installation.
Details of issue
For example, if you download and install Homebrew 4.4.20, and then run /opt/homebrew/bin/brew --version, it will return Homebrew 4.4.13-15-g882bb52 (or whatever older version you had installed) and not anything like 4.4.20.
At first I thought maybe it wasn't overwriting the binary, so I tried sudo rm /opt/homebrew/bin/brew. After reinstalling, it was still on 4.4.13.
So I blew out the entire /opt/homebrew subdir. After reinstalling, it finally returned Homebrew 4.4.20.
So we may need to have the Munki recipe remove the old Homebrew before updating/upgrading.
The text was updated successfully, but these errors were encountered:
aysiu
added a commit
to aysiu/nstrauss-recipes
that referenced
this issue
Feb 10, 2025
…subdirs first (#103)
* Have Homebrew Munki recipe delete old Homebrew subdir first
To avoid an install loop. More details in #102
* Delete only the necessary subdirectories for a clean upgrade
* 2 v 4 space indent
---------
Co-authored-by: Nathaniel Strauss <[email protected]>
Overview of issue
I'm not sure the best way to address this (maybe preinstall_script?), but Homebrew still has an install loop, at least for an upgrade/update.
The main issue is that the package on the Homebrew releases page doesn't seem to overwrite an existing Homebrew installation.
Details of issue
For example, if you download and install Homebrew 4.4.20, and then run
/opt/homebrew/bin/brew --version
, it will returnHomebrew 4.4.13-15-g882bb52
(or whatever older version you had installed) and not anything like4.4.20
.At first I thought maybe it wasn't overwriting the binary, so I tried
sudo rm /opt/homebrew/bin/brew
. After reinstalling, it was still on 4.4.13.So I blew out the entire
/opt/homebrew
subdir. After reinstalling, it finally returnedHomebrew 4.4.20
.So we may need to have the Munki recipe remove the old Homebrew before updating/upgrading.
The text was updated successfully, but these errors were encountered: