Posts Working with PowerShell Repositories
Post
Cancel

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:

1
Get-Command -Module PackageManagement

Also, NuGet and PowerShell Gallery are included:

1
Get-PackageSource

To know further details about a particular repository:

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

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

1
Update-Module

Working with PowerShell Repositories

This post is licensed under CC BY 4.0 by the author.