2018-03-24 14:23:24 +00:00
|
|
|
# choco pin
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Pin a package at a version with Chocolatey.
|
2018-03-24 14:23:24 +00:00
|
|
|
> Pinned packages are skipped automatically when upgrading.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <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}}`
|