New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

unbrew

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unbrew

brew cleanup utility

latest
npmnpm
Version
1.3.2
Version published
Maintainers
1
Created
Source

🍺 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:

  • 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.
  • You select which leaves are relevant to you, everything gets deleted over and over again until only your packages and their dependencies are left.
  • We run also brew cleanup for good measure

Keywords

brew

FAQs

Package last updated on 20 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts