src/PowerShell/Help/Microsoft.WinGet.Client/Get-WinGetPackage.md
Lists installed packages.
Get-WinGetPackage [-Tag <String>] [-Command <String>] [-Count <UInt32>] [-Id <String>] [-Name <String>]
[-Moniker <String>] [-Source <String>] [[-Query] <String[]>] [-MatchOption <PSPackageFieldMatchOption>]
[<CommonParameters>]
This command lists all of the packages installed on your system. The output includes packages
installed from WinGet sources and packages installed by other methods. Packages that have package
identifiers starting with MSIX or ARP could not be correlated to a WinGet source.
Get-WinGetPackage
This example shows how to list all packages installed on your system.
Get-WinGetPackage -Id "Microsoft.PowerShell"
This example shows how to get an installed package by its package identifier.
Get-WinGetPackage -Name "PowerShell"
This example shows how to get installed packages that match a name value. The command does a substring comparison of the provided name with installed package names.
Get-WinGetPackage | Where-Object IsUpdateAvailable
This example shows how to list all packages that have an available upgrade from one of the configured sources.
Specify the name of the command defined in the package manifest.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Limits the number of items returned by the command.
Type: System.UInt32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the package identifier for the package you want to list. By default, the command does a case-insensitive substring comparison on the package identifier.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify matching logic used for search. The parameter accepts the following values:
EqualsEqualsCaseInsensitiveStartsWithCaseInsensitiveContainsCaseInsensitiveType: Microsoft.WinGet.Client.PSObjects.PSPackageFieldMatchOption
Parameter Sets: (All)
Aliases:
Accepted values: Equals, EqualsCaseInsensitive, StartsWithCaseInsensitive, ContainsCaseInsensitive
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the moniker of the package you want to list.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the name of the package to list. By default, the command does a case-insensitive comparison of the package name.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify one or more strings to search for. By default, the command searches all configured sources. The command compares the value provided to the following package manifest properties:
PackageIdentifierPackageNameMonikerTagsThe command does a case-insensitive substring comparison of these properties.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify the name of the WinGet source of the package.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specify a package tag to search for.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.