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 cask not finding installed apps #21896

Closed
meireles opened this issue Jun 12, 2016 · 8 comments
Closed

brew cask not finding installed apps #21896

meireles opened this issue Jun 12, 2016 · 8 comments

Comments

@meireles
Copy link

I have a few applications installed with brew cask install but a brew cask list returns Warning: nothing to list.
Nevertheless, I can see all my apps installed when I:

ls /opt/homebrew-cask/Caskroom/
basictex        java            rstudio-preview     tex-live-utility
cyberduck       macdown         slack           transmission
firefox         qt-creator      sourcetree

Any ideas of how I can fix this?

@jawshooah
Copy link
Contributor

The default Caskroom path recently changed to /usr/local/Caskroom (#21857). You can either mv /opt/homebrew-cask/Caskroom /usr/local or, as a transitional measure, add --caskroom=/opt/homebrew-cask/Caskroom to your HOMEBREW_CASK_OPTS.

@tiennou
Copy link

tiennou commented Jun 13, 2016

Would it be acceptable to put that @jawshooah comment in the warning provided by cask ? As it stands "migration" doesn't make it clear that a simple mv can do the trick... Thanks !

@cwonrails
Copy link

Thanks to @jawshooah and @tiennou - I just resolved all issues using this method.

@jawshooah
Copy link
Contributor

@tiennou The reason I didn't include the mv method in the warning printed by cask is that many users likely still have casks that were linked rather than moved prior to #13966, so just moving the Caskroom would leave a bunch of broken symlinks.

Unfortunately the only silver bullet that works regardless of where and how your casks were originally installed is to brew cask install --force.

@tiennou
Copy link

tiennou commented Jun 13, 2016

Oh ok, effectively if it's broken afterward 😉 . I just find the current warning not so helpful because it just says there's something wrong, without making it clear how to (cleanly) fix, and, as you point out, what are the shortcomings of each solution (e.g. mv breaks symlinks and --caskroom is "slated" for removal). Putting a link to some meta-issue (like this one) that describe what is the correct fix would be nicer, instead of scavenging for 10 minutes for additional context.

@jawshooah
Copy link
Contributor

Fair enough. Mind submitting a PR with the suggested changes so we can discuss further? I've got my hands full at work at the moment.

@vitorgalvao
Copy link
Member

@tiennou See #21915. Please comment there (or feel free to submit a PR you find answers this better).

@krisleech
Copy link

You can do ln -s /usr/local/Caskroom /opt/homebrew-cask/Caskroom to restore any symlinks, such as those in ~/Applications.

@lock lock bot locked as resolved 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

6 participants