How do I list all formulas I installed with brew install --HEAD. Certain formulas depend of more recent version of a formula and upgrade every time I run brew upgrade if a commit has been pushed, I wish to check if the dependency has been satisfied and install normal version.

This was the case where neovim nightly(5.0.0) where it required HEAD version of luarocks (Undocumented in release page) and recently just works with normal installation

  • Does this answer your question? brew: create install script for all installed packages/casks
    – fsb
    Commented May 3, 2021 at 13:29
  • 1
    @fsb brew bundle doesn't differenatiate between HEAD and normal release
    – user397384
    Commented May 3, 2021 at 13:31
  • 1
    Welcome to Ask Different. This seems like an XY question. What are you trying to do with this once you have a list? There may be an easier way to accomplish the end goal - but it’s ok to just ask this if you can clarify what you expect the results to look like.
    – bmike
    Commented May 3, 2021 at 13:37
  • Why do you need to chase most recent commit in the first place? Commented May 3, 2021 at 17:47

1 Answer 1


brew list --versions | grep HEAD

$ brew list --versions | grep HEAD
libimobiledevice HEAD-bfaf1a1
libusbmuxd HEAD-73cb5c1

You must log in to answer this question.