I am running macOS Monterey, 12.2.1 on my Mac. I had installed Homebrew a couple of years ago and had not updated it in the past few months. Now as I tried to run brew doctor
or brew cleanup
or brew update
I came across various errors of permission being denied (like Error: Permission denied @ apply2files while trying brew cleanup
). So, I decided to uninstall Homebrew with a plan to reinstall it later. I ran:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
At the end of the uninstallation, I was told:
==> Homebrew uninstalled!
The following possible Homebrew files were not deleted:
/usr/local/.com.apple.installer.keep
/usr/local/Frameworks/
/usr/local/Homebrew/
/usr/local/bin/
/usr/local/etc/
/usr/local/gfortran/
/usr/local/include/
/usr/local/lib/
/usr/local/opt/
/usr/local/remotedesktop/
/usr/local/sbin/
/usr/local/share/
/usr/local/texlive/
/usr/local/var/
You may wish to remove them yourself.
A bit absentmindedly I ran sudo rm -rf /usr/local/.com.apple.installer.keep
and the same for /usr/local/Frameworks/
and /usr/local/Homebrew/
. Then I noticed what I was doing and stopped short of deleting /usr/local/bin
. My /usr/local/bin
contains
dvipdf gslp ps2pdf13
eps2eps gsnd ps2pdf14
font2c lprsetup.sh ps2pdfwr
gfortran pdf2dsc ps2ps
gs pdf2ps ps2ps2
gs-X11 pf2afm sage
gs-X11-Yosemite pfbtopfa texdist
gs-noX11 pphs texdistmgr
gs-noX11-Yosemite printafm unix-lpr.sh
gsbj ps2ascii wftopfa
gsdj ps2epsi
gsdj500 ps2pdf
Why would Homebrew want me to delete them? What will happen to the directories I have already deleted in /usr/local/
? Thank you!