KB:Powershell PackageManagement and PowerShellGet
PackageManagement and PowerShellGet, which operate within Windows. PackageManagement acts as a framework for package delivery, while PowerShellGet is a module within PackageManagement specifically for managing PowerShell packages. Here's a condensed breakdown:
PackageManagement:
- It's a framework for package delivery in Windows.
- Administered through PowerShell.
- Consists of PackageProviders (like package managers) and PackageSources (where providers get packages).
PowerShellGet:
- A PowerShell module using PackageManagement for delivering PowerShell packages.
- Utilizes PSRepositories (virtual wrappers for PackageSources).
- Manages modules and scripts from sources like PowerShell Gallery.
- Facilitates package installation, updating, and publishing.
Summary:
- PSRepository serves as a wrapper for PackageSource.
- PSRepository has custom properties for managing URIs.
- PowerShellGet uses PackageManagement in the background.
- PowerShellGet registers itself as a PackageProvider and interacts with NuGet.
In essence, PackageManagement deals with software packages beyond PowerShell, while PowerShellGet focuses on managing PowerShell modules and scripts, abstracting access to the framework and NuGet.
Ref: https://stackoverflow.com/questions/49544596/powershell-package-management-repository-vs-provider-vs-source
Comments
Post a Comment