Identifying Homebrew Standalone Formulas

A little python script to identify homebrew “standalone” formulas…

#! /usr/bin/python

import sys, os

aloneList = []

def brewStandAlone(formula):
    print("Checking status of: "+formula)
    cmd = "brew uses "+formula.rstrip()+" --installed"
    useTest = os.popen(cmd).readlines()
    if len(useTest) == 0:
        aloneList.append(formula.rstrip())

if len(sys.argv) <= 1:
    formulae = os …
more ...