OneGet in action

PS C:\> import-module .\OneGet.psd1
PS C:\> get-command -Module OneGet
 
CommandType     Name                                 ModuleName
-----------     ----                                 ----------
Cmdlet          Add-PackageSource                    OneGet
Cmdlet          Find-Package                         OneGet
Cmdlet          Get-Package                          OneGet
Cmdlet          Get-PackageSource                    OneGet
Cmdlet          Install-Package                      OneGet
Cmdlet          Remove-PackageSource                 OneGet
Cmdlet          Uninstall-Package                    OneGet

get a list of registered package sources

PS C:\> Get-PackageSource
 
Name         Location                      Provider     IsTrusted
----         --------                      --------     ---------
chocolatey   http://chocolatey.org/api/v2  Chocolatey   False

Let's go look for some packages.

PS C:\> find-package -Name zoomit -AllVersions
 
Name         Version     Status      Source         Summary                                                    
----         -------     ------      ------         -------                                                     
zoomit       4.42        Available   chocolatey     ZoomIt is a screen zoom and... 
zoomit       4.5         Available   chocolatey     ZoomIt is a screen zoom and... 
zoomit       4.50        Available   chocolatey     ZoomIt is a screen zoom and...

Install a package

PS C:\> Install-Package -name zoomit
 
Name           Version     Status      Source        Summary                       
----           -------     ------      ------         -------                      
zoomit         4.50        Installed   chocolatey     ZoomIt is ascreen zoom and...

Show what packages are installed

PS C:\> Get-Package
 
Name           Version     Status       Source        Summary                                                    
----           -------     ------       ------         -------                                                    
cyg-get        1.1.1       Installed    Local File     A utility to install Cygwin...
zoomit         4.50        Installed    Local File     ZoomIt is ascreen zoom and...

(another way to show it:)
PS C:\> get-package | format-table status,name,Version -AutoSize
 
Status    Name    Version
------    ----    -------
Installed cyg-get 1.1.1
Installed zoomit  4.50 

Last edited Apr 2, 2014 at 6:25 PM by fearthecowboy, version 1