How do you manually set PowerShell's OneGet repository source to Chocolatey?
I was looking for the same. This works on the PowerShell version that comes with Windows 10 TP:
register-packagesource -Name chocolatey -Provider PSModule -Trusted -Location http://chocolatey.org/api/v2/ -Verbose
Erik's answer didn't work for me. It gives an error:
register-packagesource : Unable to find package providers (PSModule)
This worked though:
PS> Get-PackageSource -Provider chocolatey
And then this command works (for example):
PS> find-package -name chocolatey -provider chocolatey
For reference, my PowerShell version is:
Major Minor Build Revision
----- ----- ----- --------
5 0 10586 122