Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I noticed some packages provided by homebrew-cask uses a url of the latest version and a version number of "latest" such as dropbox and chrome. Thus they will never be upgraded with brew upgrade. Is there any simple way to update such packages using homebrew-cask?

And if I call brew cask install dropbox again, it shows there already exist some cache of old version, which I feel so dumb.

share|improve this question
    
have you tried brew update – Greg Nov 17 '13 at 8:08
    
@Greg is wrong about this, read apple.stackexchange.com/a/230754/1916 – sorin Mar 12 at 10:42
    
thanks for the update @sorin – Greg Mar 16 at 6:56
up vote 7 down vote accepted

Try this command:

brew cask install dropbox --force

Please consider logging a bug over at homebrew-cask about your concerns with updating this kind of cask.

share|improve this answer
2  
github.com/phinze/homebrew-cask/issues/309, still in discussion – xgdgsc Jan 22 '14 at 11:01
    
is it safe to use? does it cleanly remove the old version while keeping its configuration? – Erik Allik Jun 1 '15 at 6:31
    
@ErikAllik your comment will unlikely to be seen here by the brew cask developers. Please can you start a new question or log a bug with homebrew-cask directly. – Graham Miln Jun 1 '15 at 6:34

As of today brew cask does not implement upgrade but there is an open issue that tracks this at https://github.com/caskroom/homebrew-cask/issues/4678

If you want to see it implemented sooner you could add your small contribution by fixing one of the todo items listed there.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.