diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 9f38879226..c7d079cb84 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -322,8 +322,7 @@ module Homebrew installed_formulae.each do |f| Migrator.migrate_if_needed(f, force: args.force?) install_formula(f, args: args) - # Don't uninstall older keg(s) if installing HEAD keg(s). - Cleanup.install_formula_clean!(f) unless args.HEAD? + Cleanup.install_formula_clean!(f) end Upgrade.check_installed_dependents(