Closed 7k50 closed 7 years ago
The -f
flag is similar to brew cask reinstall something
when you upgrade a specific app with brew cu -f something
. Only the difference between them is that brew cask reinstall
gracefully uninstall the app using previous cask file and reinstall it with new cask file, but brew cu
just force installs the latest app and then delete old versions.
@buo May I ask why one would want to reinstall apps that are "latest" – I am guessing that the answer is that cask doesn't provide versioning for these applications and just pushes out the last known release? So -f
will simply reinstall the application whenever run.
@winterflags yes, you are right. When an app is marked as "latest", its current version will always be "latest" no matter which version is installed on your machine. So you always need to reinstall the app to ensure that it's the latest.
What is the usual purpose of using the
-f
flag? When I have it, it continually reinstalls applications that are already at their latest versions.Readme:
It doesn't appear to me that the flag is similar to
brew cask reinstall x
since that would reinstall all applications. It just acts on the applications denominated as "latest". What does that indeed mean in cask-speak?