A short post on how to update all the packages for various package managers, be it programming language specific ones, or ones from OS-level package managers. For all the times you want to get your system up-to-date on all fronts.
If you have some other package manager commands, post them as comment below!
WinGet
winget upgrade --all
Chocolatey
choco upgrade all
cup all
Apt
apt update
apt upgrade
apt-get update
apt-get upgrade
Brew
brew upgrade
Pip
For whatever reason, pip doesn’t have such an option. Instead of applying some unreadable Linux tool chaining, you can use the package pip-review
instead.
pip install --update pip
pip install pip-review
pip-review --local --auto
pip3 install --update pip3
pip3 install pip-review
pip-review --local --auto
NPM
npm update
npm update -f
Update all globally installed packages:
npm update -g
Vcpkg
vcpkg upgrade
Conan
Conan only operates on a provided conanfile.txt, as such, if you want to update a package, you have to manually modify the file.