Skip to content

Instantly share code, notes, and snippets.

@zabbarob
Last active Aug 20, 2016
Embed
What would you like to do?
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