1

Homebrew seems to install new versions side by side with old versions when upgrading outdated versions (brew upgrade), at least I have a bunch of packages with multiple versions. How do I ensure that old versions are removed and not kept around when upgrading?

Is there support for auto-removal of outdated versions at all?

aknuds1
  • 9,368
  • 6
  • 28
  • 27

1 Answers1

3

brew cleanup is your friend for this. Check out the answer I gave in a related question here.

brew install in and of itself doesn't appear to have options for this. This might be a useful feature so I requested it from the publisher.

SaxDaddy
  • 3,809
  • 20
  • 19
  • I do know about `cleanup`; what I was really wondering is if brew can be made to remove outdated versions automatically when upgrading instead. – aknuds1 Sep 21 '15 at 11:17
  • `install` in and of itself doesn't appear to have options for this. This might be a useful feature to request. – SaxDaddy Sep 22 '15 at 21:07
  • I'd add that to your answer :) – aknuds1 Sep 22 '15 at 21:43
  • @aknuds1, it appears that this has been implemented! Check out https://github.com/Homebrew/homebrew/pull/44305. – SaxDaddy Sep 30 '15 at 00:17