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

cleanup removes keg-only brews without --force #45122

Closed
tdsmith opened this issue Oct 19, 2015 · 3 comments
Closed

cleanup removes keg-only brews without --force #45122

tdsmith opened this issue Oct 19, 2015 · 3 comments

Comments

@tdsmith
Copy link
Contributor

tdsmith commented Oct 19, 2015

tim@rocketman:~$ brew cleanup
Removing: /usr/local/Cellar/sqlite/3.9.0... (9 files, 2.8M)

man page says:

By default, does not remove out-of-date keg-only brews, as other software may link directly to specific versions.

It seems like this code in eligible_for_cleanup? does actually remove out-of-date keg-only brews if it's deemed safe, i.e. all depending formulas would have been built against the opt symlink: https://github.com/Homebrew/homebrew/blame/master/Library/Homebrew/cmd/cleanup.rb#L161-L178

So I guess this is a documentation bug?

@MikeMcQuaid
Copy link
Member

So I guess this is a documentation bug?

Yeh, seems worth just fixing the docs rather than the behaviour.

@kpearson
Copy link

kpearson commented Mar 3, 2016

This is solved. The issue should be closed.

@tdsmith
Copy link
Contributor Author

tdsmith commented Mar 3, 2016

Indeed, the manpage no longer says that. Thanks for the nudge!

@tdsmith tdsmith closed this as completed Mar 3, 2016
@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.
Projects
None yet
Development

No branches or pull requests

4 participants