-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
brew cask upgrade #309
Comments
That probably happened since the versioning was changed from an explicit number (0.2.29) to simply “latest”. Does Calibre not auto-update? Since the old link was broken and it is possible to get a link to the latest version, I think this is a better solution than having it break every time they increment the version by (literally) 0.0.01. This way, when first installing it you always get the most up-to-date version, and then it’ll update itself; unless of course it doesn’t actually check for updates, in which case we’d have to discuss what option seems to be the most acceptable. Does the app warn you of new versions? |
It checks for updates, but I have to manually download the dmg and install. And yeah their update system has always been like this, 0.0.01 increment every few days. |
We're not hooked into Or am I missing something? |
I don't know, but even |
That’s something more prevalent earlier in the project, since even the syntax of casks is still under discussion, but it’s something we should probably look into. That said, if you’re able to update calibre from now on with |
I thought this should be automatically executed with |
I think a There's a larger question about whether we should attempt to hook into homebrew commands (#44), which would give you If you were able to issue a |
As you know, I employ homebrew-cask a little differently from the way it’s intended, so either way will not affect my workflow. That said, from a usability perspective won’t |
Yes, |
Suggesion for the
What do you think?
With this script, and older versions are not removed. |
I suppose that's pseudo-code, as you'll have undoubtedly noticed we use Ruby? For the less bash-savvy, do you think you could provide a less line-noisy alternative? |
This is bash, I don't know ruby. |
Even in #!/bin/bash
caskApps=$(ls /opt/homebrew-cask/Caskroom/) # Lists the casks in the Caskroom
for app in ${caskApps}; do # For every app there, do this
appToCheck=$(brew cask list | grep "${app}") # If the app is not present in `brew cask list`, this variable will be empty
if [[ -z "${appToCheck}" ]]; then # If the variable is empty, then
brew cask install --force "${app}" # Force an install of the app
fi
done |
haha well let's not refine the bash too much before we convert it to ruby! 😺 i do this the general logic that you suggested seems good @shrx - we essentially need to get smarter about detecting if any version is installed. i think we'll probably be modifying the definition of of course for |
Do we still want this? Also this discussion and #316 are related. |
Yup - I think we do. I'm going to edit the original issue so the title is clearer. |
Just a note, running
|
How can I update all the applications installed with cask? |
@licx That alone will not work (see @lmergner’s comment). What you would need to do is clear homebrew’s cache and force install all of them. The following (untested) should do it. rm -rf "$(brew --cache)"
brew update
for app in $(brew cask list); do
brew cask install --force "${app}"
done |
For my concern, most of the app update themselves, so I don't worry about that. Also, checkout Bodega.app :) |
+1 for |
Yeah. Until then I'm using the solution by @sgtpep. |
Also +1 for |
Mind a tiny bit blown that this isn't a key feature provided out of the box... |
@itsthejb Homebrew-cask is alpha software, in part, exactly for this reason. Anything I might add has already been said in the last two paragraphs of my previous comment. |
@vitorgalvao, apologies for seeming a bit blunt, there - been a long day 👍 |
Not at all, you comment was clearly not malicious. Just wanted to reinforce that this is still very much on the radar. |
+1 for brew cask upgrade and brew cask outdated, i don't want two versions of alfred ( 2.1, 2.3) |
+1 for brew upgrade |
+1 for brew upgrade and brew outdated |
+1 for |
+1 for |
+1 for |
Hi everyone, I'm a relatively new cask user (<2 months), and I've also been frustrated with the lack of a "brew cask upgrade" command, so I wrote a short Ruby script that seems to get the job done. It's kind of a hacky approach to the problem (i.e. grepping through the "brew cask info" output and comparing it to what's in the directory of the installed cask), but it seems to work reasonably well, so I figured I'd post it here to see what you guys thought (I'm also relatively new to Ruby, so my apologies if my style is really off or I unwittingly broke some best practive rule).
|
Hi @saghmrossi! Yes, many of us are relying on similar scripts for the time being while working on #4678. It will work most of the time, which is good enough for personal use. But this is a busy project. If we deliver a "brew cask upgrade" that fails 10% of the time, we will be positively flooded with bug reports. Thanks for posting your solution for others. See also https://github.com/caskroom/homebrew-cask/blob/master/developer/examples/brewcask-doutdated.rb . |
👍 for |
Just found out about brew cask, was really excited for an easy way to manage my software that doesn't automatically update up-to-date. This is an awesome program from what I have seen, however adding a |
The issue is now locked since it currently consists mostly of sporadic votes for the feature. To be clear, the feature will be implemented (barring unforeseen circumstances), and is being tracked in #4678. This issue will be kept open since many people still find this discussion, it has important points, and, well, it’s not solved yet, after all. Thank you all for the discussion. |
Closed in favor of #4678, since we haven’t had problems with duplicates with this. |
this issue currently tracks the discussion and work around adding a
brew cask upgrade
command to homebrew-cask. it started as a bug ticket, whose original contents can be found below.any action on implementing
brew cask upgrade
functionality will happen here.(original title: Calibre is not updated automatically)
I have calibre 0.2.29 installed with cask.
brew update; brew upgrade
does not update it to the latest version available (0.2.30 as of now).brew cask info Calibre
output:The text was updated successfully, but these errors were encountered: