Brew remove downloaded files






















On my system where I've had Homebrew for years:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Why does brew cleanup or brew cleanup -n don't show any output? Asked 11 months ago. Active 3 months ago. Viewed 13k times. Improve this question. Create a free Team What is Teams? Learn more. Uninstall all programs installed by Homebrew Ask Question.

Asked 6 years, 4 months ago. Active 20 days ago. Viewed 48k times. Improve this question. Add a comment. Active Oldest Votes. Tested uninstalling meld after discovering MeldMerge releases.

Using this answer requires that you create and maintain a file that contains the package names you want installed on your system. If you don't have one already, use the following command and delete the package names what you don't want to keep installed. Then you can remove all installed, but unwanted packages and any unnecessary dependencies by running the following command.

It will remove b , but not c. There are a number of good answers already, but some are out of date and none of them are entirely complete. In particular, most of them will remove dependencies but still leave it up to you to remove the originally-targeted formula afterwards. The posted one-liners can also be tedious to work with if you want to uninstall more than one formula at a time.

Here is a Bourne-compatible shell function without any known Bashisms that takes a list of formulae, removes each one's dependencies, removes all copies of the formula itself, and then reinstalls any missing dependencies. This works on all standard formulae that I tested.

It does not presently handle casks, but neither will it complain loudly if you attempt to unbrew a cask with the same name as a standard formula e.

The answer of jfmercer must be modified slightly to work with current brew, because the output of brew missing has changed:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 10 years, 3 months ago. Active 2 months ago. One thing to be mindful of when removing and uninstalling packages from Homebrew is that if the package being uninstalled has dependencies that are in use by another package or formula, then that may break it causing the secondary package to no longer work correctly.

Perhaps the simplest way to prevent that is to use the optional —ignore-dependencies flag. For example:. If you are not sure what dependencies exist with a particular Homebrew package, you can use the deps command to find that out:.

For example, if you installed python3 on the Mac using the Homebrew approach, which has a fair amount of dependencies, running that command would look something like the following:. The same applies to node. Do you know of any other methods or tips related to uninstalling Homebrew packages and formula? Share with us in the comments below! Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in. Linked pull requests. You signed in with another tab or window.

Reload to refresh your session.



0コメント

  • 1000 / 1000