17

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.

2

4 Answers 4

9

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.

3
  • 2
    github.com/phinze/homebrew-cask/issues/309, still in discussion
    – xgdgsc
    Jan 22, 2014 at 11:01
  • is it safe to use? does it cleanly remove the old version while keeping its configuration? Jun 1, 2015 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. Jun 1, 2015 at 6:34
0

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.

0

This has really irked me so I created this script to update all Brew apps and allow the user to choose which Cask apps to update. You can exclude apps from consideration too.

https://github.com/derrekyoung/ScriptsAndUtils/blob/master/brew-cask-upgrade.sh

0
brew upgrade --cask dropbox

I find this to be the most convenient way of upgrading a specific app using brew.

1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Feb 6 at 13:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .