OneGet / oneget

PackageManagement (aka OneGet) is a package manager for Windows
MIT License
2.38k stars 190 forks source link

Install-Package failed chocolatey provider #201

Closed pulporange closed 7 years ago

pulporange commented 8 years ago

Hi there i've tried to install ie. vlc and keepass package through Install-Package Multiple times [chocolatey provider]

PS C:\WINDOWS\system32>`

jianyunt commented 8 years ago

@pulporange, the Chocolatey provider under OneGet project is only a prototype as a proof of concept and Microsoft internal team does not maintain it. In this case, Rob Reynolds is developing the chocolatey provider: https://github.com/chocolatey/chocolatey-oneget. Issue is tracked https://github.com/chocolatey/chocolatey-oneget/issues/5

pulporange commented 8 years ago

Hi @jianyunt i've build the c# project with VStudio => it creates a bunch of dll, future chocolatey provider for PackageManagement, correct me if i'm wrong i've installed them using the p$ script provided on the github repo install-provider.ps1

Here is a result

PS C:\> Get-PackageProvider -ListAvailable

Choco                    1.0.0.0
chocolatey               1.0.0.0
msi                      3.0.0.0          AdditionalArguments
msu                      3.0.0.0
NuGet                    2.8.5.206        Destination, ExcludeVersion, Scope, Headers, FilterOnTag, Contains, AllowP...
PowerShellGet            1.0.0.1          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, ...
Programs                 3.0.0.0          IncludeWindowsInstaller, IncludeSystemComponent

Maybe i'm missing something but the the Register-PackageSource is not ok

PS C:\> Register-PackageSource -Name "chocolatey" -Location "http://chocolatey.org/api/v2/" -ProviderName "Choco" -Verbose
VERBOSE: Performing the operation "Register Package Source." on target "Package Source 'chocolatey'
(http://chocolatey.org/api/v2/) in provider 'Choco'.".

PS C:\> Get-PackageSource

nuget.org                        NuGet            False      https://api.nuget.org/v3/index.json
PSGallery                        PowerShellGet    True       https://www.powershellgallery.com/api/v2/
jianyunt commented 8 years ago

It looks like Choco has not implemented OneGet/AddPackageSource() which supports Register-PackageSource cmdlet. @ferventcoder, any plan to support it?

ferventcoder commented 8 years ago

The source at that location is still behind and with where Garrett had left it at that point. We should support whatever is needed to make it work correctly.

jianyunt commented 8 years ago

@pulporange, can you try the ChocolateyGet provider instead to see if it satisfies your scenario.

pulporange commented 7 years ago

Hi @jianyunt Sorry for the late response, i'll give it a try this week-end Thanks for the update on this

pulporange commented 7 years ago

I've tested it from provider install to app uninstall, it works like a charm