Where is the Chocolatey installation path?

前端 未结 2 874
野趣味
野趣味 2021-01-01 10:18

I am looking to find out the current Chocolatey installation path using PowerShell.

相关标签:
2条回答
  • 2021-01-01 10:56

    There is an environment variable set on installation, ChocolateyInstall, which is set to C:\Chocolatey by default in versions of Chocolatey less than 0.9.8.27. After that, this defaults to C:\ProgramData\Chocolatey.

    NOTE: By default, the C:\ProgramData folder on Windows is hidden. You will either need to enable hidden files and folders through Folder Options | View or you can navigate directly to the path shown above by copy/pasting directly into the Windows Explorer address bar.

    In version 0.9.9 of Chocolatey, it actively moves from the old folder location to the new one.

    You can also pre-emptively create this environment variable before installing Chocolatey to control where it gets installed if required.

    0 讨论(0)
  • 2021-01-01 10:59

    When you install Chocolatey they add the Chocolatey /bin path to your path variable.

    In PowerShell:

    $env:Path
    
    0 讨论(0)
提交回复
热议问题