Skip to content

Instantly share code, notes, and snippets.

@TuxCoding
Last active August 8, 2017 15:18
Show Gist options
  • Select an option

  • Save TuxCoding/5480624637671b756f284dfa61dcc373 to your computer and use it in GitHub Desktop.

Select an option

Save TuxCoding/5480624637671b756f284dfa61dcc373 to your computer and use it in GitHub Desktop.
Some package manager update all scripts
# apt
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
# pacman
pacman -Syu
# zypper
zypper refresh
zypper update
# yum
yum update
# composer
composer self-update
composer global update
composer update
# npm (Source: https://docs.npmjs.com/getting-started/updating-global-packages)
npm update -g
# yarn
yarn global upgrade
# bower (works only local)
bower update
# Cargo (Rust)
cargo update
rustup update
# Golang (Source: http://www.kaspertidemann.com/updating-all-packages-in-go/)
go get -u all
# Ruby (gems) (Source: https://stackoverflow.com/questions/13626143/how-to-upgrade-rubygems)
gem install rubygems-update
update_rubygems
gem update --system
# Maven (checking for new versions)
mvn versions:display-dependency-updates
mvn versions:display-plugin-updates
# Gradle
https://github.com/ben-manes/gradle-versions-plugin
# Vagrant
vagrant box update --box BOX_NAME
https://gist.github.com/sc250024/05a5aa1a1ee2db02080f8714226986e9
# Update all pip packages (Source: https://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip)
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment