homebrew: replace deprecated and orphaned packages
β’ 245 words β’ 2 min
Problem statement: brew doctor found one deprecated cask and one installed
keg whose formula had disappeared.
tflint #
text
Warning: Some installed casks are deprecated or disabled.
You should find replacements for the following casks:
flameshot
Warning: Some installed kegs have no formulae!
You should find replacements for the following formulae:
tflintHomebrew/core removed TFLint
after its executable became subject to both MPL 2.0 and BUSL 1.1. Upstream now
maintains terraform-linters/tap
as a cask, so migrate the old formula instead of merely reinstalling it:
shell
% brew uninstall tflint
Uninstalling /opt/homebrew/Cellar/tflint/0.61.0... (8 files, 51.8MB)
% brew install terraform-linters/tap/tflint
==> Tapping terraform-linters/tap
Tapped 1 cask (15 files, 14.7KB).
==> Installing Cask tflint
==> Linking Binary 'tflint' to '/opt/homebrew/bin/tflint'
πΊ tflint was successfully installed!
% tflint --version
TFLint version 0.64.0
+ ruleset.terraform (0.15.0-bundled)Flameshot β Shottr #
The Flameshot cask was deprecated because it does not pass macOS Gatekeeper checks. I replaced it with Shottr:
shell
% brew uninstall --cask flameshot
==> Uninstalling Cask flameshot
==> Removing App '/Applications/flameshot.app'
==> Purging files for version 14.0.0,14.0 of Cask flameshot
% brew install --cask shottr
==> Installing Cask shottr
==> Moving App 'Shottr.app' to '/Applications/Shottr.app'
πΊ shottr was successfully installed!The corresponding Brewfile change keeps the migration reproducible:
diff
+tap "terraform-linters/tap"
-brew "tflint"
-cask "flameshot"
+cask "shottr"
+cask "tflint"
Both offending entries are now gone:
shell
% brew doctor 2>&1 | grep -E 'flameshot|tflint|deprecated|no formulae'
% brew list --cask | grep -E '^(flameshot|shottr|tflint)$'
shottr
tflintπ€ Drafted with /bloggify.