buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.39k stars 89 forks source link

How to relink cask packages after accidentally upgrading them outside of Homebrew? #234

Closed jochne closed 11 months ago

jochne commented 11 months ago

Sometimes, when updating software within the application itself, it is easy to accidentally click on the update button. However, the next time you use Homebrew to manage the software, these cask packages may not be recognized as already installed.

ondrejfuhrer commented 11 months ago

Practically it's not possible. The only way is reinstalling (brew reinstall --cask <cask>) the cask manually or use the tool to reinstall it when the update is available via brew.

jochne commented 11 months ago

thanks for your reply. btw, do you have any recommendation for the tool you mentioned to reinstall and update the casks?

Ondřej Führer @.***>于2023年7月12日 周三上午4:01写道:

Practically it's not possible. The only way is reinstalling (brew reinstall --cask ) the cask manually or use the tool to reinstall it when the update is available via brew.

— Reply to this email directly, view it on GitHub https://github.com/buo/homebrew-cask-upgrade/issues/234#issuecomment-1631435427, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCAADLUZFTE456HIM4GN33XPWWKDANCNFSM6AAAAAA2FIEA6E . You are receiving this because you authored the thread.Message ID: @.***>

ondrejfuhrer commented 11 months ago

Hey @jochne , I meant using brew cu (this repo) to use it to upgrade. So even though it will "just" reinstall the same version, that's practically the only way of fixing it.