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

Reinstall latest cask won't download the latest version #1692

Closed
linc01n opened this issue Nov 12, 2013 · 5 comments
Closed

Reinstall latest cask won't download the latest version #1692

linc01n opened this issue Nov 12, 2013 · 5 comments

Comments

@linc01n
Copy link
Contributor

linc01n commented Nov 12, 2013

According to this #309 (comment)

If you want to upgrade a cask you can do brew cask uninstall && brew cask install.
It works fine for cask that has version.

But if it is a latest version cask brew cask uninstall won't remove the download cache. So it will skip the download part and you will install the previous version.

Maybe when we do brew cask uninstall it should also remove the download cache?

@pavel-sakun
Copy link
Contributor

Vote for this one as well. One of the following (or combination of those) may be used here:

  • remove "latest" archive right after installing (bad in case of need to reinstall it later or large download size)
  • keep "latest" archive but do not consider it while reinstalling if not told to do so (--use-cached-installer or something like that)
  • set "latest" archive's timestamp to the one passed in "Last Modified" http header (hardly this will work in 100% of cases, i.e. with some freakily configured http/ftp servers?) and check if it changed
  • add some kind of option (-f? --force-download) to force downloading

@OliverJAsh
Copy link
Contributor

I'd like to vote for this one too!

@voanhduy1512
Copy link
Contributor

brew cask install have the --force option but it use cached installer and just relink the app. I think it will be must better to change current --force option to redownload.

@pavel-sakun
Copy link
Contributor

Yep, sounds good, --force used for "latest" cask makes it to be re-downloaded.

One more think came to my mind is that brew-cask is not using "upgrade" command which may be helpful here.

@craighurley
Copy link
Contributor

+1. I arrived at this issue because I was having problems "upgrading" the application "versions" from backpixel; it too uses the "latest" archive.

@linc01n linc01n closed this as completed Oct 22, 2014
@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

5 participants