Last active
August 29, 2015 14:00
-
-
Save charltoons/a8616e15e7c96b6de271 to your computer and use it in GitHub Desktop.
Maintenance Monday - update your shit!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################################### | |
############## 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