Skip to content

anypackage/psresourceget

Repository files navigation

AnyPackage.PSResourceGet

gallery-image build-image cf-image

AnyPackage.PSResourceGet is an AnyPackage provider that facilitates installing PSResourceGet resources from NuGet repositories.

Documentation

AnyPackage.PSResourceGet documentation is located in Provider Catalog on how to use the provider and what dynamic parameters exist.

Install AnyPackage.PSResourceGet

Install-Module AnyPackage.PSResourceGet

Import AnyPackage.PSResourceGet

Import-Module AnyPackage.PSResourceGet

Sample usages

Search for a package

Find-Package -Name PSReadLine

Find-Package -Name PS*

Install a package

Find-Package Scoop | Install-Package

Install-Package -Name Scoop

Get list of installed packages

Get-Package -Name Scoop

Uninstall a package

Get-Package -Name 7zip | Uninstall-Package

Uninstall-Package -Name 7zip

Update a package

Get-Package -Name 7zip | Update-Package

Uninstall-Package

Saving a package

Find-Package -Name PSReadLine | Save-Package

Save-Package -Name PSReadLine -Path C:\Temp

Publishing a package

Publish-Package -Path C:\Temp\module\module.psd1

Manage official package sources

Register-PackageSource -Provider PSResourceGet -PSGallery
Find-Package -Name Scoop | Install-Package
Unregister-PackageSource -Name PSGallery

Manage unofficial package sources

Register-PackageSource -Name Test -Location C:\Temp\repo
Find-Package -Name Scoop -Source Test | Install-Package
Unregister-PackageSource -Name Test

Known Issues

Missing PSResourceGet parameters

There are a few missing dynamic parameters:

  • Save-Package -AsNupkg
  • Save-Package -IncludeXml
  • Install-Package -NoClobbler