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

Uninstall cask report the cask is not installed while it is #2988

Closed
ngocphamm opened this issue Feb 17, 2014 · 14 comments
Closed

Uninstall cask report the cask is not installed while it is #2988

ngocphamm opened this issue Feb 17, 2014 · 14 comments

Comments

@ngocphamm
Copy link
Contributor

This is the commands and its output

~ ❯❯❯  brew cask list
...omitted...
launchrocket
...omitted...
~ ❯❯❯  brew cask uninstall launchrocket
Error: launchrocket is not installed
~ ❯❯❯  brew cask edit launchrocket

That's I cannot uninstall and reinstall to update launchrocket to its latest release.

@rolandwalker
Copy link
Contributor

Hi!

Yes, this often happens simply because the version number incremented.

The launchrocket distribution gets downloaded and stored in a versioned directory under /opt/. But when you attempt uninstall, that command looks up the new version number from the very latest Cask. Then it constructs what the new versioned directory name would be, then it finds nothing there.

The backend code is at an in-between stage here. We are in the process of adding better support for versions and ultimately getting to a brew cask upgrade command that works. There are several steps until we get there. For instance, we need to save a copy of the Cask used at install time, rather than consulting a new Cask in which things have shifted.

As it stands, this is rather a deep bug with no single fix. The maintainers are actively working in this area, and contributions are welcome.

@ngocphamm
Copy link
Contributor Author

Thank you for your very detail answer, @rolandwalker. I can wait. Jus thought it would be useful to notify people here.

@rolandwalker
Copy link
Contributor

Hi!

Just thought I'd let you know that newly-submitted #3066 is one step toward solving this and several other issues.

@ngocphamm
Copy link
Contributor Author

Awesome! I wonder that will Cask create the metadata files for existing casks or I have to re-install those casks?

@rolandwalker
Copy link
Contributor

It will only affect new installs. And it doesn't fix your uninstall bug (yet). That has to come in the next change. But we are working on it!

@ngocphamm
Copy link
Contributor Author

Cool! Thank you for your hard work on a "free" stuff like this. 👍

@cyberyoung
Copy link

any progress on this issue?

@rolandwalker
Copy link
Contributor

You can follow the progress on #4678, though most of the action right now is tracked on #4688.

Relevant to this issue, brew cask uninstall --force was recently added, which will uninstall all versions of a Cask.

@cyberyoung
Copy link

OK. Thanks.
Looking forward to brew cask upgrade.

@oryband
Copy link

oryband commented Nov 14, 2014

👍 on this. I just upgraded to new xbmc and this just installed another package next to my old (version) one. Uninstalling just uninstalled the new version while keeping the old one in place and listed in brew cask list and couldn't uninstall it. Using --force solved the problem.

@smackesey
Copy link

+1. Just ran into this with fantastical package.

@myoung34
Copy link
Contributor

This is still an issue for me as well. --force works, but I didn't know until I came here.

@vitorgalvao
Copy link
Member

No need to keep bumping the issue. We know it still happens, that’s why it is still open. Bumping it won’t make it happen faster. PRs are very much welcome.

@Homebrew Homebrew locked and limited conversation to collaborators Oct 22, 2015
@vitorgalvao
Copy link
Member

Closing in favour of #14058.

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

8 participants