Skip to content

Instantly share code, notes, and snippets.

@dashmug
Last active August 29, 2015 14:02
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 dashmug/c0727763352dddc1c714 to your computer and use it in GitHub Desktop.
Save dashmug/c0727763352dddc1c714 to your computer and use it in GitHub Desktop.
a simple script I use for updating my Homebrew, composer, pip, npm, and gem packages
set -e
set -x
sudo aptitude update
sudo aptitude upgrade -y
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2)
do
sudo npm -g install "$package"
done
sudo composer self-update
gem update
pip freeze | 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