Chocolatey Package Management Commands
This cheat sheet provides essential Chocolatey commands for managing software packages on Windows. Chocolatey is a powerful package manager that simplifies software installation, upgrades, and uninstallation via the command line.
Core Package Operations
Command |
Description |
choco install <package> |
Install a specified package from the Chocolatey repository. |
choco uninstall <package> |
Uninstall a previously installed package. |
choco upgrade <package> |
Upgrade a specific package to its latest available version. |
choco search <string> |
Search for packages in the Chocolatey repository based on a keyword or string. |
Managing Installed Packages
Command |
Description |
choco list -lo |
List all packages currently installed on your system. |
choco outdated |
Display a list of installed packages that have newer versions available. |
choco upgrade all |
Upgrade all installed packages to their latest versions. |
choco outdated --local-only |
List outdated packages that were installed locally. |
choco upgrade all --local-only |
Upgrade all packages installed locally that have newer versions available. |
Advanced Package Management
Command |
Description |
choco pin <package> |
Prevent a specific package from being upgraded, effectively pinning it to its current version. |
Further Resources