This started as a fork of GNU-ize Mac OS X El Capitan.
To find packages that you might want to override the defaults, grep these from the Homebrew Core repository:
# these varies. Use `brew info ...` to find out
grep -rl 'prefix "g"' . | sed -E 's/^.*\/([^/@]+)@?[^/@]*\.rb$/\1/g' | sort -u
grep -rl keg_only . | sed -E 's/^.*\/([^/@]+)@?[^/@]*\.rb$/\1/g' | sort -u
# more specific
grep -rl 'keg_only :provided_by_macos' . | sed -E 's/^.*\/([^/@]+)@?[^/@]*\.rb$/\1/g' | sort -u
If you have a list of packages you want to install, another trick is to put the info into a log and grep PATH
, with-default-names
, etc.
cat <<EOF | xargs brew info > temp.log
...
EOF