2018-03-11 06:28:05 +00:00
|
|
|
# choco upgrade
|
|
|
|
|
|
|
|
> Upgrade one or more packages with Chocolatey.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://chocolatey.org/docs/commands-upgrade>.
|
2018-03-11 06:28:05 +00:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- Upgrade one or more packages:
|
2018-03-11 06:28:05 +00:00
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`choco upgrade {{package1 package2 ...}}`
|
2018-03-11 06:28:05 +00:00
|
|
|
|
|
|
|
- Upgrade to a specific version of a package:
|
|
|
|
|
|
|
|
`choco upgrade {{package}} --version {{version}}`
|
|
|
|
|
|
|
|
- Upgrade all packages:
|
|
|
|
|
|
|
|
`choco upgrade all`
|
|
|
|
|
|
|
|
- Upgrade all except specified comma-separated packages:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`choco upgrade all --except "{{package1,package2,...}}"`
|
2018-03-11 06:28:05 +00:00
|
|
|
|
|
|
|
- Confirm all prompts automatically:
|
|
|
|
|
|
|
|
`choco upgrade {{package}} --yes`
|
|
|
|
|
|
|
|
- Specify a custom source to receive packages from:
|
|
|
|
|
|
|
|
`choco upgrade {{package}} --source {{source_url|alias}}`
|
|
|
|
|
|
|
|
- Provide a username and password for authentication:
|
|
|
|
|
|
|
|
`choco upgrade {{package}} --user {{username}} --password {{password}}`
|