-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Improve 'Caskroom location has moved' message #24609
Comments
On a side note, I'm not sure what I need to do, I uninstalled and installed Virtualbox the other day and it didn't go into the new Caskroom folder, is this intentional? Do I need to just move the folders to the new Caskroom location as specified and will that work? |
If the old location |
What about other files related to Caskroom in /opt? e.g /opt/vagrant? Have they moved? |
|
@reitermarkus : So, how do I make it go away cleanly? Uninstall everything, remove directory, reinstall everything? I tried doing something like |
That's because you're not doing bash properly 😉 CASKS=($(brew cask list))
for cask in "${CASKS[@]}"; do
# whatever
done |
@jawshooah : Every time I think I've figured out bash :| Given this new bash-power, I came up with the following, which worked on my computer (You could # Grab the casks you have installed
CASKS=($(brew cask list))
# Uninstall everything
for cask in "${CASKS[@]}"; do
brew cask uninstall --force $cask
done
# Remove the old directory (which is hopefully now empty)
rmdir /opt/homebrew-cask/Caskroom
# Reinstall everything
for cask in "${CASKS[@]}"; do
brew cask install $cask
done EDIT: I've edited this based on @jawshooah's comment below (adding |
You'll want to |
Closing as solved. |
So, the current 'caskroom has moved' message tells me I have 'migrate my Casks'. I can read
https://github.com/caskroom/homebrew-cask/issues/21913
, which tells me I can:mv
, except that won't work for casks installed before pull request Change artifact behavior to moving instead of symlinking #13966 (how do I find out if my casks fall under that?)and maybe I won't be able to uninstall without a
--force
. And there is one comment with 5 hearts:brew cask install --force $(brew cask list)
. Is that what I should actually do? Because it doesn't seem to actually do anything (I still don't have a/usr/local/Caskroom
)Or
for f in ~/Applications/*.app; do oldloc="$(readlink "$f")"; [[ -e $oldloc ]] || ln -sf "/usr/local${oldloc#/opt/homebrew-cask}" "$f"; done
? is also there!Perhaps change the message to give a suggested thing to run, which will make things work.
The text was updated successfully, but these errors were encountered: