oneget

Skip confirmation while using Install-Package?

江枫思渺然 提交于 2019-12-10 10:37:34
问题 I have added ChocolateyGet as a provider on Powershell so I can use it with PackageManagement (OneGet), it works but every package I try to install warns: https://www.chocolatey.org is not a trusted package source Then asks for confirmation. It also asks me if I agree to the license of the package. I wanted to make a script to automatically install some packages, but I needed this script to be unattended, and it's not possible now because it asks those two previous questions. Is there anyway

Skip confirmation while using Install-Package?

泄露秘密 提交于 2019-12-06 07:35:30
I have added ChocolateyGet as a provider on Powershell so I can use it with PackageManagement (OneGet), it works but every package I try to install warns: https://www.chocolatey.org is not a trusted package source Then asks for confirmation. It also asks me if I agree to the license of the package. I wanted to make a script to automatically install some packages, but I needed this script to be unattended, and it's not possible now because it asks those two previous questions. Is there anyway to circumvent/automatically respond these confirmations? Like the y or yes command on Linux? You need

Invalid Web Uri error on Register-PSRepository

﹥>﹥吖頭↗ 提交于 2019-12-04 11:42:46
问题 After Windows November update ( PackageManagement and PowerShellGet modules of 1.0.0.1 version) I can't register HTTPS NuGet servers as PSRepository anymore: Register-PSRepository -Name test -SourceLocation https://some-nuget/api/v2 It returns error: # Register-PSRepository : The specified Uri 'https://some-nuget/api/v2' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements. 回答1: This is caused with a bug related to accessing HTTPS