Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete old versions in cleanup #4651

Closed
j6s opened this issue Jun 3, 2014 · 4 comments
Closed

Delete old versions in cleanup #4651

j6s opened this issue Jun 3, 2014 · 4 comments

Comments

@j6s
Copy link
Contributor

j6s commented Jun 3, 2014

Hi.

This somewhat ties in to the upgrade diskussion:
I just updated my applications by force installing them. This lead to multiple versions on my machine.

I would have /opt/homebrew-cask/Caskroom/pycharm/3.3.x/ and /opt/homebrew-cask/Caskroom/pycharm/3.4.x/.
On a small SSD this has the potential to litter the HDD.

It would help, if cleanup would try to delete older versions (or a full fledged upgrade)

@rolandwalker
Copy link
Contributor

Hi! I agree with you of course. But currently the code doesn't actually track the previously-installed versions, so it doesn't know exactly what to delete.

There is a user script at https://github.com/caskroom/homebrew-cask/blob/master/developer/examples/brewcask-doutdated.rb which works in some cases, but not all.

We are working on the necessary bookkeeping though. See #3066 .

@Whirlwind
Copy link

Hi @rolandwalker , How should I run the script ? in irb?

@rolandwalker
Copy link
Contributor

Sorry, but the scripts in developer/example are unsupported examples, intended to help you make your own personal commands if you want to develop them privately.

The documentation on how they work is in HACKING.md.

The commands which we can support are available already as brew cask <verb>.

@vitorgalvao
Copy link
Member

No longer relevant: #13201.

@miccal miccal removed core Issue with Homebrew itself rather than with a specific cask. enhancement labels Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants