Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
From the author of

Setting Up Package Repositories

In Linux, command-line package managers like apt rely on software repositories to locate and download packages. We can look at a repository as a centralized software gallery. In PowerShell, these package repositories are known as package sources. Let’s see what ships by default with Windows PowerShell v5 preview:

Get-PackageSource | Format-List

Name         : PSGallery
Location     : https://www.powershellgallery.com/api/v2/
Source       : PSGallery
ProviderName : PSModule
Provider     : Microsoft.OneGet.Implementation.PackageProvider
IsTrusted    : False
IsRegistered : True
IsValidated  : False
Details      : {[InstallationPolicy, Untrusted], [OneGetProvider, NuGet], [PublishLocation,

The output tells us that, by default, PowerShell v5 can access community-supplied PowerShell modules from the online PowerShell Gallery website. Figure 1 shows the front page of the site.

Figure 1

Figure 1 The Microsoft PowerShell Gallery.

  • + Share This
  • 🔖 Save To Your Account