Chocolatey的安装路径在哪里? [英] Where is the Chocolatey installation path?

查看:938
本文介绍了Chocolatey的安装路径在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找使用 PowerShell 的当前 Chocolatey 安装路径.

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

推荐答案

安装时设置了一个环境变量,ChocolateyInstall,设置为C:\Chocolatey默认情况下,在小于 0.9.8.27 的 Chocolatey 版本中.之后,默认为 C:\ProgramData\Chocolatey.

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.

注意:默认情况下,Windows 上的 C:\ProgramData 文件夹是隐藏的.您需要通过 Folder Options | 启用隐藏文件和文件夹.查看,或者您可以通过直接复制/粘贴到 Windows 资源管理器地址栏中来直接导航到上面显示的路径.

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.

在 Chocolatey 0.9.9 版本中,它主动从旧文件夹位置移动到新文件夹位置.

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

如果需要,您还可以在安装 Chocolatey 之前预先创建此环境变量以控制其安装位置.

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

这篇关于Chocolatey的安装路径在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆