Starting a few days ago, whenever I’d run a Homebrew update, the whole process would end with this warning message:
Warning: Cask handbrake was renamed to handbrake-app.
I started out by trying to uninstall HandBrake in Homebrew before using the new package name (handbrake-app
) to reinstall it.
That didn’t work tho. The warning persisted.
Then, I tried using the zap
flag during the uninstall and running a cleanup
before reinstalling it.
% brew uninstall --cask --zap handbrake-app
==> Backing App 'HandBrake.app' up to '/opt/homebrew/Caskroom/handbrake-app/1.9.2/HandBrake.app'
==> Removing App '/Applications/HandBrake.app'
==> Dispatching zap stanza
==> Trashing files:
~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/fr.handbrake.handbrake.sfl*
~/Library/Application Support/HandBrake
~/Library/Caches/fr.handbrake.HandBrake
~/Library/Preferences/fr.handbrake.HandBrake.plist
~/Library/Saved Application State/fr.handbrake.HandBrake.savedState
==> Removing all staged versions of Cask 'handbrake-app'
% brew cleanup
==> Updating Homebrew...
Already up-to-date.
Warning: Cask handbrake was renamed to handbrake-app.
No joy in Mudville! HandBrake had been fully uninstalled from my system… But its warning was still taunting me from beyond the grave.
I was about to walk away from computers as a career, but then I remembered that the prune
flag in brew cleanup
exists:
% brew cleanup --prune=all
Running that, which clears Homebrew’s entire cache, and reinstalling HandBrake — making sure to use its new package name — fixed me right up.