Working with PowerShell Repositories

Working with PowerShell Repositories

Package Management is becoming more and more important these days to keep the ball rolling; this is a first approach on working with PowerShell Repositories, using NuGet Gallery and latest PowerShell v7.0.0-preview4

PowerShell7 comes with PackageManagement Module, which is basic for my purpose:

Get-Command -Module PackageManagement

Also, NuGet and PowerShell Gallery are included:

Get-PackageSource

To know further details about a particular repository:

Get-PSRepository -Name "PSGallery" | Format-List * -Force

Last but not least, important to keep modules updated (not applicable in this example)

Update-Module

Working with PowerShell Repositories

Eloy Salamanca