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.

uninstall packages with Homebrew

Search forTerminaland fire up the first result.

  1. 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.

uninstall packages with Homebrew

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.

uninstall packages with Homebrew

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.

remove packages with Homebrew

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.

remove packages with Homebrew

But if you want to remove every related file and cache, then do remember to use theautoremovecommand.

uninstall packages with Homebrew

uninstall packages with Homebrew

spot_img

source: www.techworm.net