When it comes to using Homebrew on a Mac, in addition to installing packages, we naturally must be able to remove them from the system, and also understand and correct the dependencies after the package is removed. This is what will be discussed in today’s article.

Brew Uninstall Packages

The command to remove a package from the Homebrew installation list is as follows:

brew uninstall packageName

For example, to remove Python, you should use the following command line:

brew uninstall python3

In fairness, it should be clarified that there are two commands to remove packages – brew remove and brew uninstall. They are exactly the same, choose for yourself which option suits you best.

Read more: How to Update Python on Mac?

Removing a package from Homebrew is quick because you don’t need to download anything, it just removes the Homebrew package from the Mac.

Dependencies

Removing packages can cause certain problems in the work of other programs and utilities, as a result of which a child or another package will no longer work correctly. The easiest way to avoid problems is to use the following command:

brew uninstall --ignore-dependencies python3

In case you are in doubt about the dependencies of the package, use the deps command and a list of all the package dependencies will appear on the screen:

brew deps packageName

Conclusion

For most users, Homebrew is becoming an everyday utility and it is simply impossible to do without knowing the commands to remove packages from their system. But this is always a lot of nuances and subtleties because, for more information on using the delete command, read the man on how to use them in Homebrew.

It’s the best time to ask questions and give us your feedback in comments.

Author

Hi there! My Name is Vincent Lago! My goal is to share insightful reviews, guides, and manuals for people looking to know more about current solutions for Apple hardware and OS. I have years of technological background knowledge including owning a custom iMacs & PCs which was using for different types of business. And now, I want to share my experience with you.

Write A Comment