我在 ProGet 中创建了一个名为“Chocolatey”的 Chocolatey 提要。现在我如何从 Chocolatey 使用它?
我尝试运行此命令来添加源:
PS> choco source add --name=ProGet --source="http://my-proget-server/feeds/Chocolatey"
Chocolatey v0.10.8
Added ProGet - http://my-proget-server/feeds/Chocolatey (Priority 0)
该命令的作用与将“ ProGet ”列为源一样多:
PS> choco source list
Chocolatey v0.10.8
chocolatey - https://chocolatey.org/api/v2/ | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
ProGet - http://my-proget-server/feeds/Chocolatey | Priority 0|Bypass Proxy - False|Self-Service - False|Admin Only - False.
然后我禁用了默认源:
PS> choco source disable --name=chocolatey
Chocolatey v0.10.8
Disabled chocolatey
但我必须错误地设置 ProGet 源,因为choco search
它不起作用:
PS> choco search curl
Chocolatey v0.10.8
The remote server returned an error: (400) Bad Request.