Skip to content

Instantly share code, notes, and snippets.

@gautric
Last active September 29, 2023 15:05
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 gautric/b688593486fad342d2385af2124ac291 to your computer and use it in GitHub Desktop.
Save gautric/b688593486fad342d2385af2124ac291 to your computer and use it in GitHub Desktop.
macport
#!/bin/sh
## source : https://gist.github.com/gautric/b688593486fad342d2385af2124ac291
echo "#> sudo port -v selfupdate"
sudo port -v selfupdate
echo "#> sudo port upgrade outdated"
sudo port upgrade outdated
echo "#> sudo port uninstall inactive"
sudo port uninstall inactive
echo "#> brew update && brew upgrade"
brew update && brew upgrade
echo "#> Pip"
pip3 list --outdated | tail -n +3 | cut -d ' ' -f 1 | xargs -n1 pip3 install -U
echo "#> NPM"
npm outdated -g --depth=0 | awk '{print $1}' | tail -n +2 | xargs npm update -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment