Navigation Menu

Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Feature: prevent a formula’s previous version from being removed by brew cleanup #42039

Closed
bfontaine opened this issue Jul 22, 2015 · 5 comments
Labels

Comments

@bfontaine
Copy link
Contributor

This is inspired from this question on StackOverflow. OP wants to keep gcc 4.9 and 5.2, but running brew cleanup would remove the former.

I don’t know if this is something that would be used, or another niche feature that only a few people would use. It shouldn’t be hard to add something in a formula’s prefix to mark it as non-cleanable.

@tdsmith
Copy link
Contributor

tdsmith commented Jul 22, 2015

The versions formula seems like a better solution.

@DomT4
Copy link
Member

DomT4 commented Jul 22, 2015

My answer in #42036 applies here a lot as well.

@tdsmith
Copy link
Contributor

tdsmith commented Jul 22, 2015

I think my biggest concern with this is that it's hard to restore this state where both versions are installed and switch can be used to switch between them. I think switch is a good backstop to have in case a new release breaks something but I don't think we should be encouraging people to make it part of their workflows.

@MikeMcQuaid
Copy link
Member

Agreed with @tdsmith here. It'd be good to know how/if we can improve the versions tap to make these workflows better.

@bfontaine
Copy link
Contributor Author

Thank you all for your feedback, I’m closing this.

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants