Created
March 16, 2016 10:17
-
-
Save shotasenga/1e7a4a41d1da4efed663 to your computer and use it in GitHub Desktop.
show all *root* formulae
from http://stackoverflow.com/a/22714023/755333
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
brew deps --installed | \ | |
awk -F'[: ]+' \ | |
'{ | |
packages[$1]++ | |
for (i = 2; i <= NF; i++) | |
dependencies[$i]++ | |
} | |
END { | |
for (package in packages) | |
if (!(package in dependencies)) | |
print package | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment