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

brew rmtree does not consider multiple versions of dependency packages #1

Closed
dberzano opened this issue Aug 7, 2014 · 3 comments
Closed
Assignees
Labels

Comments

@dberzano
Copy link

dberzano commented Aug 7, 2014

Hello, I have just run into this:

$> brew rm hevea
Uninstalling /usr/local/Cellar/hevea/2.14...

$> brew rmtree hevea
Uninstalling /usr/local/Cellar/hevea/2.09...
Found lingering dependencies
objective-caml
Removing dependency objective-caml...
Uninstalling /usr/local/Cellar/objective-caml/4.01.0_1...
No dependencies left on system for objective-caml.

$> brew rmtree hevea
Error: No such keg: /usr/local/Cellar/hevea

Found lingering dependencies
objective-caml
Removing dependency objective-caml...
Uninstalling /usr/local/Cellar/objective-caml/4.01.0...
No dependencies left on system for objective-caml.

$> brew rmtree hevea
Error: No such keg: /usr/local/Cellar/hevea

No dependencies left on system for hevea.

It looks that if a package comes in different versions, only the latest is removed.

(p.s. thanks for creating this tool!)

@beeftornado beeftornado self-assigned this Aug 14, 2014
@beeftornado
Copy link
Owner

@dberzano Thanks for the report. This is definitely an oversight that I will fix as soon as I can.

@beeftornado
Copy link
Owner

@dberzano If you run brew update && brew upgrade brew-rmtree let me know if it solves your issue. I ran your scenario and it now works for me.

brew rmtree hevea

Uninstalling /usr/local/Cellar/hevea/2.16...
Found lingering dependencies
objective-caml
Removing dependency objective-caml...
Removing: /usr/local/Cellar/objective-caml/4.00.1...
Uninstalling /usr/local/Cellar/objective-caml/4.01.0_1...
No dependencies left on system for objective-caml.

@dberzano
Copy link
Author

I have tested it and it works, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants