AnyPackage.PSResourceGet
is an AnyPackage provider that facilitates installing PSResourceGet resources from NuGet repositories.
AnyPackage.PSResourceGet documentation is located in Provider Catalog on how to use the provider and what dynamic parameters exist.
NOTE! Microsoft.PowerShell.PSResourceGet is required. Due to a PSResourceGet issue, prerelease modules cannot be defined as dependencies, so manual installation of PSResourceGet is required.
# Install Microsoft.PowerShell.PSResourceGet
Install-Module Microsoft.PowerShell.PSResourceGet -AllowPrerelease -AllowClobber -Force
Install-Module AnyPackage.PSResourceGet
If PSResourceGet is already installed.
Install-PSResource -Name AnyPackage, AnyPackage.PSResourceGet -SkipDependenciesCheck
Import-Module AnyPackage.PSResourceGet
Find-Package -Name PSReadLine
Find-Package -Name PS*
Find-Package Scoop | Install-Package
Install-Package -Name Scoop
Get-Package -Name Scoop
Get-Package -Name 7zip | Uninstall-Package
Uninstall-Package -Name 7zip
Get-Package -Name 7zip | Update-Package
Uninstall-Package
Find-Package -Name PSReadLine | Save-Package
Save-Package -Name PSReadLine -Path C:\Temp
Publish-Package -Path C:\Temp\module\module.psd1
Register-PackageSource -Provider PSResourceGet -PSGallery
Find-Package -Name Scoop | Install-Package
Unregister-PackageSource -Name PSGallery
Register-PackageSource -Name Test -Location C:\Temp\repo
Find-Package -Name Scoop -Source Test | Install-Package
Unregister-PackageSource -Name Test
There are a few missing dynamic parameters:
- Save-Package -AsNupkg
- Save-Package -IncludeXml
- Install-Package -NoClobbler