再次更新,买了新电脑装新软件很麻烦,又用了这个。。。

具体方法是新增一个环境变量即可,老方法应该是不能再用吧,这么久了。。。。
ChocolateyInstall
在这里插入图片描述
文档里写的很清楚了:
The package is installed into $env:ChocolateyInstall\lib<pkgId>. The package install location is not configurable - the package must install here for tracking, upgrade, and uninstall purposes. The software that may be installed later during this process is configurable. See Terminology to understand the difference between “package” and “software” as the terms relate to Chocolatey.

https://docs.chocolatey.org/en-us/getting-started

============================
Chocolatey 是一款非常好用的windows包管理工具,但是默认安装在c盘(如下图)非常蛋疼,那么怎么安装到E盘呢?
在这里插入图片描述
先在E盘新建一个文件夹,比如我新建了一个E:\Chocolatey 这个文件夹,然后
1.打开powershell(最好是管理员打开)然后输入

& setx.exe ChocolateyInstall E:\Chocolatey /M

显示: 成功: 指定的值已得到保存。
2. 然后更新环境变量

refreshenv

显示 :Refreshing environment variables from registry for cmd.exe. Please wait…Finished…
这样子 之后再安装了新的软件就可以到这里了(如下图)哦!

在这里插入图片描述

原来的软件可以考虑删掉了(应该吧)…
参考自:https://stackoverflow.com/questions/44754755/how-to-change-default-chocolatey-install-directory-using-cmd-only

GitHub 加速计划 / col / COLA
11.69 K
3.04 K
下载
🥤 COLA: Clean Object-oriented & Layered Architecture
最近提交(Master分支:3 个月前 )
bda50471 - 5 个月前
65e9e39d bump org.apache.maven.plugins:maven-compiler-plugin from 3.11.0 to 3.13.0 (#496) bump org.apache.maven.plugins:maven-surefire-plugin from 3.1.2 to 3.2.5 (#497) bump org.springframework.boot:spring-boot-dependencies from 3.1.0 to 3.3.0.(#498) bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0 to 3.7.0 (#499) bump commons-cli:commons-cli from 1.5.0 to 1.8.0 (#500) bump org.jacoco:jacoco-maven-plugin from 0.8.10 to 0.8.12 (#501) bump org.apache.maven.plugins:maven-source-plugin from 3.2.1 to 3.3.1 (#502) bump org.wiremock:wiremock-standalone from 3.0.1 to 3.0.3 (#503) 5 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐