Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mac Update/Cleanup Script
# store the current dir
# Update App Store apps
sudo softwareupdate -i -a
# Update Homebrew (Cask) & packages
brew update
brew outdated
read -p "ok to upgrade? [enter]"
brew upgrade
brew cleanup -s
# Update npm & packages
npm install npm -g
npm update -g
# Update Ruby & gems, non-sudo updates rbenv versions, sudo updates mac and sudo versions
gem update --system
gem update
gem cleanup
sudo gem update --system
sudo gem update
sudo gem cleanup
# take them back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.