2018-03-24 14:23:24 +00:00
|
|
|
# choco pin
|
|
|
|
|
|
|
|
> Pin a package at a specific version with Chocolatey.
|
|
|
|
> Pinned packages are skipped automatically when upgrading.
|
2019-03-18 11:30:08 +00:00
|
|
|
> Homepage: <https://chocolatey.org/docs/commands-pin>.
|
2018-03-24 14:23:24 +00:00
|
|
|
|
|
|
|
- Display a list of pinned packages and their versions:
|
|
|
|
|
|
|
|
`choco pin list`
|
|
|
|
|
|
|
|
- Pin a package at its current version:
|
|
|
|
|
|
|
|
`choco pin add --name {{package}}`
|
|
|
|
|
|
|
|
- Pin a package at a specific version:
|
|
|
|
|
|
|
|
`choco pin add --name {{package}} --version {{version}}`
|
|
|
|
|
|
|
|
- Remove a pin for a specific package:
|
|
|
|
|
|
|
|
`choco pin remove --name {{package}}`
|