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

cask lost track of some installed casks #880

Closed
lanterndev opened this issue Aug 4, 2013 · 3 comments
Closed

cask lost track of some installed casks #880

lanterndev opened this issue Aug 4, 2013 · 3 comments

Comments

@lanterndev
Copy link

$ brew cask info eclipse-ide
eclipse-ide: 4.3
http://eclipse.org
Not installed
https://github.com/phinze/homebrew-cask/commits/master/Casks/eclipse-ide.rb

$ ls -d /opt/homebrew-cask/Caskroom/eclipse/4.3/eclipse/Eclipse.app
/opt/homebrew-cask/Caskroom/eclipse/4.3/eclipse/Eclipse.app

$ brew cask info vlc
vlc: 2.0.8
http://www.videolan.org/vlc/
Not installed
https://github.com/phinze/homebrew-cask/commits/master/Casks/vlc.rb

$ ls -d /opt/homebrew-cask/Caskroom/vlc/2.0.7/VLC.app
/opt/homebrew-cask/Caskroom/vlc/2.0.7/VLC.app

How can I get cask to remember it really did install these casks?

Thanks for the great work on brew cask, it's awesome.

@passcod
Copy link
Contributor

passcod commented Aug 5, 2013

There's two different things here:

$ brew cask info eclipse-ide
eclipse-ide: 4.3
http://eclipse.org
Not installed
https://github.com/phinze/homebrew-cask/commits/master/Casks/eclipse-ide.rb

$ ls -d /opt/homebrew-cask/Caskroom/eclipse/4.3/eclipse/Eclipse.app
/opt/homebrew-cask/Caskroom/eclipse/4.3/eclipse/Eclipse.app

This is the cask eclipse that changed name into eclipse-ide, therefore it didn't forget eclipse is there, it's really reporting (correctly!) that eclipse-ide isn't. You can "fix" it by moving /opt/homebrew-cask/Caskroom/eclipse to /opt/homebrew-cask/Caskroom/eclipse-ide.


$ brew cask info vlc
vlc: 2.0.8
http://www.videolan.org/vlc/
Not installed
https://github.com/phinze/homebrew-cask/commits/master/Casks/vlc.rb

$ ls -d /opt/homebrew-cask/Caskroom/vlc/2.0.7/VLC.app
/opt/homebrew-cask/Caskroom/vlc/2.0.7/VLC.app

This is correct behaviour (although it could be improved): vlc 2.0.8 isn't installed, vlc 2.0.7 is. You should update vlc.

@passcod
Copy link
Contributor

passcod commented Aug 6, 2013

Closing, discussion on behaviour in these situations can be done on #316.

@passcod passcod closed this as completed Aug 6, 2013
@lanterndev
Copy link
Author

Thanks for the help, @passcod. As for eclipse, I renamed /opt/homebrew-cask/Caskroom/eclipse to /opt/homebrew-cask/Caskroom/eclipse-ide and that problem is fixed. I wonder if there's a way we could handle casks whose names have changed better for users.

As for vlc, I ran brew cask install vlc and now have the latest. Looking in /opt/homebrew-cask/Caskroom/vlc/ I see it's sitting alongside the outdated version. I see there is no e.g. brew cask cleanup command to automatically remove old versions of installed casks. Is that (along with brew cask outdated and brew cask upgrade) planned for a future version? In the meantime, are users meant to remove old versions with something like rm -rf /opt/homebrew-cask/Caskroom/vlc/2.0.7? I'll watch #316 for progress. Thanks again.

@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

2 participants