Skip to content

Instantly share code, notes, and snippets.

@trilin6
Forked from khys/brew-health
Last active June 12, 2025 12:37
Show Gist options
  • Select an option

  • Save trilin6/457a716906e3851c9d90066a09c0c402 to your computer and use it in GitHub Desktop.

Select an option

Save trilin6/457a716906e3851c9d90066a09c0c402 to your computer and use it in GitHub Desktop.
Health-check script for Homebrew.
#!/bin/bash
brew update
brew upgrade
brew cleanup -s
brew cask cleanup
#now diagnotic
brew doctor
brew missing
apm upgrade -c false
/opt/bin/updateCCTF.sh && terminal-notifier -message “git pull done :-)” -title “CCTF up to date”
echo “you can hit mas upgrade to upgrade theses apps from the app store:”
mas outdated
echo “install with: mas upgrade”
npm update -g
echo “did you think to launch gem update “
echo “and pip ? pip freeze — local | grep -v ‘^\-e’ | cut -d = -f 1 | xargs pip install -U “
#!/bin/bash
echo "> brew upgrade --cleanup"
brew upgrade --cleanup
echo "> brew cleanup -s"
brew cleanup -s
echo "> brew prune -n"
brew prune -n
echo "> brew prune"
brew prune
echo "> brew bundle --global check"
brew bundle --global check
echo "> brew bundle --global cleanup"
brew bundle --global cleanup
echo "> brew doctor"
brew doctor

Comments are disabled for this gist.