macOS - Homebrew


downgrade to previous formula version

  1. https://jaketrent.com/post/downgrade-previously-installed-brew-formula
$ brew list --versions macvim
macvim 8.1-151 8.1-149_1 8.1-150 8.1-151_1 8.0-146_1 8.1-149 8.1-147 8.1-148
$ brew switch macvim 8.1-151

remove old versions

  1. https://docs.brew.sh/FAQ#how-do-i-uninstall-old-versions-of-a-formula
$ brew cleanup

add head-only formula to Brewfile

  1. https://github.com/Homebrew/homebrew-bundle/issues/98

head-only formula must be installed with --HEAD option, say:

$ brew install --HEAD universal-ctags/universal-ctags/universal-ctags
# Brewfile

brew 'universal-ctags', args: ['HEAD']
$ brew bundle