Skip to content

Instantly share code, notes, and snippets.

@lavoiesl
Created July 26, 2012 09:47
Show Gist options
  • Save lavoiesl/3181263 to your computer and use it in GitHub Desktop.
Save lavoiesl/3181263 to your computer and use it in GitHub Desktop.
List all installed brew formulas not used by other installed formulas.
#!/bin/bash
# List all installed brew formulas not used by other installed formulas.
# Useful for cleanup
for f in `brew list`; do
[[ -z "$(brew uses --installed $f)" ]] && echo $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment