-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README lacks any uninstall options documentation #816
Comments
To recover a list of the Homebrew packages which installed a binary into $ ls -l /usr/local/bin | sed -n '/Cellar/ s!^.*/Cellar/\([^/]*\)/.*!\1!p' | sort -u Edit: better $ ls /usr/local/Cellar
$ ls /usr/local/Caskroom |
The recommended way to keep packages the same between macs is using |
Is there still something actionable on our side? Is a documentation update still necessary? It's the first complaint we get about that lack of documentation (thanks by the way :)), so I am wondering how much effort we should put into this. |
I think that the fact that the uninstaller doesn't work in the arch migration case is very confusing. When you have a broken Homebrew install, the last recourse is to cleanup everything and restart from fresh, but in the migration case that doesn't work as the uninstaller is locked on the current system arch. This failure is adding insult to injury. I know that even if someone was writing a migration tool (I would be tempted to do it for my own usage, but it is just short term), no one would be interested in maintaining it, so that would only lead to more pain for users. So, it would be appreciated to have:
With some guidance about where to submit changes and in which format, I could submit some of the changes myself. |
By default it uninstalls the default Homebrew, https://github.com/Homebrew/install?tab=readme-ov-file#uninstall-homebrew suggests running it with |
I could see an argument that some of the uninstall options could be spelled out in the README so am rescoping this issue to that goal. |
I have run on the same issue. rm -rf /usr/local/bin/brew
rm -rf /opt/homebrew/*
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" and then reinstall and run eval "$(/opt/homebrew/bin/brew shellenv)" and this requires me to run the command above each time I open new terminal session, should I modify my |
The recommended way is to add For reference: Lines 1044 to 1046 in 3d2b88b
|
What you were trying to do (and why)
New Mac with M2 chip. I did use the Apple Migration Assistant to migrate everything from my x86 Mac. Including Homebrew.
I have not yet installed Rosetta as my aim is to have native binaries.
Of course the x86 Homebrew didn't work on M2, so wanted to migrate, reinstalling the list of installed packages with amd64 binaries.
What happened (include command output)
After the Migration Assistant work:
brew
didn't work (expected):bad CPU type
for theruby
binary/opt/homebrew
while I needed to uninstall the x86 one from/usr/local
. The README has no information to clean/usr/local
.ruby
from/usr/local
.I have been able to reinstall Homebrew by removing (
rm
)/usr/local/Homebrew
and addingeval "$(/opt/homebrew/bin/brew shellenv)"
to my shell profile. But I have still dangling symlinks. I'll try to rebuild my package list from the links in/usr/local/bin
(ls -l /usr/local/bin | grep Cellar
).After successful install:
What you expected to happen
I understand that my case is a niche.
But I wanted to see in README at list some manual steps:
Maybe all this should be listed in a dedicated page, but I expect at least a link from the README here and from https://docs.brew.sh/Installation.
The text was updated successfully, but these errors were encountered: