Brew Cleanup Utility
Go to file
2024-06-16 22:29:31 +02:00
.github funding 2020-05-26 10:35:32 +02:00
src fix typo 2024-06-15 12:54:45 +02:00
.gitignore update deps and make module based. use pnpm 2022-03-20 18:38:56 +01:00
CHANGELOG.md update deps 2023-03-05 17:51:39 +01:00
LICENSE mantainance 2021-08-17 11:37:09 +02:00
package.json update deps & sort package json 2023-08-20 22:24:34 +02:00
pnpm-lock.yaml update deps & sort package json 2023-08-20 22:24:34 +02:00
README.md Update README.md 2022-08-01 17:22:09 +02:00
tsconfig.json update deps and make module based. use pnpm 2022-03-20 18:38:56 +01:00

🍺 unbrew

NPM Version NPM Wekly Downloads NPM License

The missing brew cleanup utility.

This is finally the easy way to clean your forgotten packages, casks and dependencies.

Demo Video

📦 Installation

Single use

npx unbrew

Permanent install

npm -g install unbrew
# or
yarn global add unbrew
# Run
unbrew

☁️ Motivation

Well... anyone that has been using brew in macOS for some time will have encountered the issue of doing a simple brew list and discovering loads of packages they have never heard of. Often this is the result of installing some packages that bring dependecies, but since brew does not uninstall them when you delete the package they came with, they will hang around for ever basically.

🤷‍♀️ How does it work?

It's actually pretty simple:

  1. Check your leaves with brew leaves. This basically is a list of all the brew packages that are not required by another one. This means that only the packages you want to have installed + garbage will be a leave.
  2. You select which leaves are relevant to you, everything gets deleted over and over again until only your packages and their dependencies are left.
  3. We run also brew cleanup for good measure