C:\tools vs C:\ProgramData\chocolatey\tools\ vs C:\ProgramData\chocolatey\lib\ directories #2891
-
I don't quite understand chocolatey package installation/storage and I'm hoping somebody can educate me. I was cleaning up the Why do they do this? There is already a tools directory at Basically what is the difference between |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
For my answer I'm assuming Chocolatey CLI is installed to
I don't know of any reason it wouldn't work for the current version of Chocolatey CLI. But I definitely would not recommend it because there could well be something that I am missing, and/or it may cause problems with a future version of Chocolatey CLI. |
Beta Was this translation helpful? Give feedback.
For my answer I'm assuming Chocolatey CLI is installed to
C:\ProgramData\chocolatey
.C:\ProgramData\chocolatey\tools\
is a directory that Chocolatey CLI uses to store tools that it includes by default, and uses while installing packages. These tools are7z.exe
,checksum.exe
, andshimgen.exe
currently. These are not intended to be used directly, and are a part of the internals of Chocolatey CLI. They cannot easily be setup as packages because they are used while installing packages, so it's a chicken and egg problem if they were to be installed intoC:\ProgramData\chocolatey\lib\
, and they are intended to be kept in lockstep with the version of Chocolatey CLI that is installed to ensure th…