Skip to content

Instantly share code, notes, and snippets.

@smac89
Last active May 14, 2021 20:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smac89/7d586ab2105b86a461845dd78942c8a6 to your computer and use it in GitHub Desktop.
Save smac89/7d586ab2105b86a461845dd78942c8a6 to your computer and use it in GitHub Desktop.
Updating all packages installed by various package managers (brew, sdkman, gem, pip, etc)

Brew

brew update && brew upgrade $(brew outdated)

SDKMAN

sdk selfupdate && sdk upgrade <package>

Gem

gem update $(gem list | cut -d' ' -f1)

Pip

pip install $(pip list --format=columns --outdated | tail -n +3 | cut -d' ' -f1) --upgrade

Chocolatey

cup all -y

npm

npm update OR npm update -g

*** Will be adding more as the need arises ***

@schnatterer
Copy link

schnatterer commented May 14, 2021

Thanks for sharing! topgrade could be interesting to you. I think it covers all of the above.
bin would be worth added to your list 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment