Skip to content

Instantly share code, notes, and snippets.

@vigosan
Forked from arturmartins/mac-upgrade.sh
Created November 14, 2020 13:23
Show Gist options
  • Save vigosan/f53b5a0e7e4c716a76083c59ec59b4e9 to your computer and use it in GitHub Desktop.
Save vigosan/f53b5a0e7e4c716a76083c59ec59b4e9 to your computer and use it in GitHub Desktop.
How to keep your mac software updated easily (2019)
#!/bin/bash
# Requirements:
# - homebrew: https://brew.sh/
# - homebrew tap: buo/cask-upgrade - https://github.com/buo/homebrew-cask-upgrade
# - homebrew mas (Mac App Store command-line interface - https://github.com/mas-cli/mas)
# Update, upgrade all and cleanup
brew update && brew upgrade && brew cu --all --yes --cleanup && mas upgrade && brew cleanup
# Dump all taps, apps, casks and mac apps into ~/Brewfile
brew bundle dump --force --describe --file=~/Brewfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment