NAME
Get-PackageSource
SYNOPSIS
Gets a list of package sources that are registered for a package provider.SYNTAX
Get-PackageSource [[-Name]
] [-ConfigFile ] [-Force] [-ForceBootstrap] [-Location ] [-ProviderName {msi | NuGet | msu | Programs | PowerShellGet | psl | chocolatey}] [-SkipValidate]
[] Get-PackageSource [[-Name]
] [-Force] [-ForceBootstrap] [-Location ] [-PackageManagementProvider
] [-ProviderName {msi | NuGet | msu | Programs | PowerShellGet | psl | chocolatey}] [-PublishLocation
] [-ScriptPublishLocation ] [-ScriptSourceLocation ] [ ] DESCRIPTION
The Get-PackageSource gets a list of package sources that are registered with Package Management on the local
computer. If you specify a package provider, Get-PackageSource gets only those sources that are associated with
the specified provider. Otherwise, the command returns all package sources that are registered with Package Management.PARAMETERS
-ConfigFile
{{Fill ConfigFile Description}} Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false-Force [
Forces the command to run without asking for user confirmation. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false] -ForceBootstrap [
Indicates that this cmdlet forces Package Management to automatically install the package provider. Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false] -Location
Specifies the location of the Package Management source or repository. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false-Name
Specifies the name of the Package Management source. Required? false Position? 0 Default value None Accept pipeline input? False Accept wildcard characters? false-PackageManagementProvider
Specifies the Package Management provider. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false-ProviderName
Specifies the provider name. The acceptable values for this parameter are:- msi
- msu
- PowerShellGet
- nuget
- chocolatey
Required? false Position? named Default value NoneAccept pipeline input? True (ByPropertyName)
Accept wildcard characters? false-PublishLocation
Specifies the publish location for the package source. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false-ScriptPublishLocation
Specifies the script publish location. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false-ScriptSourceLocation
Specifies the script source location. Required? false Position? named Default value None Accept pipeline input? False Accept wildcard characters? false-SkipValidate [
{{Fill SkipValidate Description}} Required? false Position? named Default value False Accept pipeline input? False Accept wildcard characters? false] This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). INPUTS
OUTPUTS
PackageSource[] Specifies one or more package sources.NOTES
Example 1: Get all package sources
PS C:\>Get-PackageSource
This command gets all package sources that are registered with Package Management on the local computer.Example 2: Get all package sources for a specific provider
PS C:\>Get-PackageSource -ProviderName "PSModule"
This command gets all package sources that are registered for the PSModule provider.Example 3: Get all package sources for a specific provider
PS C:\>Get-PackageProvider "PSModule" | Get-PackageSource
This command gets all package sources for the PSModule provider by piping the results of the Get-PackageProvider
cmdlet to Get-PackageSource .
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkID=517137 about_PackageManagementRegister-PackageSource
Set-PackageSource
Unregister-PackageSource