Forrest logo
back to the choco tool

choco-pin:tldr:a6853

choco-pin: Pin a package at a specific version.
$ choco pin add --name ${package} --version ${version}
try on your machine

The command you provided is specific to the Chocolatey package manager, likely used on Windows systems. Here's a breakdown of the command:

choco - This is the executable that runs the Chocolatey package manager.

pin - This command instructs Chocolatey to "pin" a specific package to a specific version. When you "pin" a package, it prevents subsequent upgrades or downgrades of that package, keeping it at the specified version.

add - This flag indicates that we want to add a pin for a package.

--name ${package} - This is a placeholder for the name of the package you want to pin. You would replace ${package} with the actual name of the package.

--version ${version} - This is a placeholder for the version of the package you want to pin. You would replace ${version} with the actual version of the package.

Overall, this command allows you to pin a package to a specific version within Chocolatey, preventing any unintentional updates or downgrades for that particular package.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the choco tool