Created
January 26, 2016 16:12
-
-
Save ploegert/37306e68ca7e2553fb18 to your computer and use it in GitHub Desktop.
Package Repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Reference Site: | |
| #http://learn-powershell.net/2014/04/03/checking-out-oneget-in-powershell-v5/ | |
| #Show List of what commands are possible | |
| get-command -module PackageManagement | |
| <# | |
| CommandType Name Version Source | |
| ----------- ---- ------- ------ | |
| Cmdlet Find-Package 1.0.0.0 PackageManagement | |
| Cmdlet Get-Package 1.0.0.0 PackageManagement | |
| Cmdlet Get-PackageProvider 1.0.0.0 PackageManagement | |
| Cmdlet Get-PackageSource 1.0.0.0 PackageManagement | |
| Cmdlet Install-Package 1.0.0.0 PackageManagement | |
| Cmdlet Register-PackageSource 1.0.0.0 PackageManagement | |
| Cmdlet Save-Package 1.0.0.0 PackageManagement | |
| Cmdlet Set-PackageSource 1.0.0.0 PackageManagement | |
| Cmdlet Uninstall-Package 1.0.0.0 PackageManagement | |
| Cmdlet Unregister-PackageSource 1.0.0.0 PackageManagement | |
| #> | |
| Get-PackageSource | |
| <# | |
| Name ProviderName IsTrusted IsRegistered IsValidated Location | |
| ---- ------------ --------- ------------ ----------- -------- | |
| nuget.org NuGet False True False https://www.nuget.org/api/v2/ | |
| PSGallery PSModule True True False https://www.powershellgallery.com/api/v2/ | |
| myNuGetSource PSModule True True False https://www.myget.org/F/powershellgetdemo/api/v2 | |
| #> | |
| #Register Package Source | |
| Register-PackageSource ` | |
| -Name chocolatey ` | |
| -Location http://chocolatey.org/api/v2 ` | |
| -Provider chocolatey -Trusted -Verbose | |
| Find-Package -Name Sysinternals | |
| <# | |
| Name Version Source Summary | |
| ---- ------- ------ ------- | |
| sysinternals 2016.01.04.20... chocolatey Sysinternals - utilities to help you manage, troubleshoot and diagnose your Windows systems and applications. | |
| #> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment