tldr/pages/windows/choco-upgrade.md

33 lines
798 B
Markdown
Raw Normal View History

2018-03-11 06:28:05 +00:00
# choco upgrade
> Upgrade one or more packages with Chocolatey.
> More information: <https://chocolatey.org/docs/commands-upgrade>.
2018-03-11 06:28:05 +00:00
- Upgrade one or more space-separated packages:
`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:
`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}}`