Skip to content

Instantly share code, notes, and snippets.

@charltoons
Last active August 29, 2015 14:00
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 charltoons/a8616e15e7c96b6de271 to your computer and use it in GitHub Desktop.
Save charltoons/a8616e15e7c96b6de271 to your computer and use it in GitHub Desktop.
Maintenance Monday - update your shit!
#######################################
############## HOMEBREW ###############
#######################################
printf "\n\n---> Updating Homebrew\n"
# update homebrew
brew update
# update all homebrew packages
brew upgrade
#######################################
############## RUBYGEMS ###############
#######################################
printf "\n\n---> Updating Rubygems\n"
# update rubygems
gem update --system
# update installed gems
gem update
#######################################
################# NPM #################
#######################################
printf "\n\n---> Updating npm\n"
# clear npm's cache
npm cache clean -f
# update npm
npm update -g npm
# update all npm global packages
npm update -g
#######################################
############## MACPORTS ###############
#######################################
printf "\n\n---> Updating Macports\n"
# update macports
sudo port selfupdate
# update installed macports
port upgrade outdated
#######################################
################# PIP #################
#######################################
printf "\n\n---> Updating pip\n"
# update pip
sudo pip install --upgrade pip
# update pip packages
sudo pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment