Removing packages with Homebrew is easy.
In fact, uninstalling and deleting packages from Homebrew is as simple as installing a package.
Presscommand+spacebaron your keyboard to kick off the spotlight search.
Search forTerminaland fire up the first result.
- punch in in the following command followed by Homebrew package name.
Herewgetis the package name so you’re able to replace it with the one you want to uninstall.
So, the homebrew package is removed, but some of the files still remain.
Now, we will remove them.
First, let us list the remaining files with the following command and pressenter.
After that, jot down the following command and pressenter.
This will remove all the remaining homebrew package dependencies and provide you with more space on the Mac PC.
Uninstall Package with Homebrew without removing dependences
Sometimes, dependencies are used by multiple packages.
So, removing them will make the other package unusable.
Use this command instead while uninstalling to ignore the dependencies.
it’s possible for you to remove it using theuninstallcommand and be done with the process.
But if you want to remove every related file and cache, then do remember to use theautoremovecommand.
source: www.techworm.net