Skip to content

Instantly share code, notes, and snippets.

@zabbarob
Last active August 20, 2016 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zabbarob/c05f29ed1fa72ec3d7f4e604669bc008 to your computer and use it in GitHub Desktop.
Save zabbarob/c05f29ed1fa72ec3d7f4e604669bc008 to your computer and use it in GitHub Desktop.
Update packages of various package managers on OS X
#!/usr/bin/env bash
# Updates packages of various package managers on macOS
function myprintf() {
printf "\e[0;35m$1\e[0;m\n"
}
myprintf "Updating Homebrew Packages"
brew update
brew upgrade
myprintf "Updating Python Setup Tools"
brew linkapps python
pip install --upgrade pip setuptools
myprintf "Updating Ruby Gems"
gem update --system
gem update
myprintf "Updating Global Node Packages"
npm install -g npm@latest
npm update -g
myprintf "Updating Global Composer Packages"
composer global update
myprintf "Updating Atom Packages"
apm update --no-confirm
myprintf "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment