brew remove --force $(brew list --formula) --ignore-dependencies
(not tested)
But an easier way is to just rename the homebrew directory, for eg on Apple Silicon Macs,
sudo mv /opt/homebrew /opt/homebrew-backup
(and after finishing the tests, rename it back.)
No comments:
Post a Comment