Skip to content

anypackage/chocolatey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnyPackage.Chocolatey

gallery-image build-image cf-image

AnyPackage.Chocolatey is an AnyPackage provider that facilitates installing Chocolatey packages from any NuGet repository.

Install AnyPackage.Chocolatey

Install-Module AnyPackage.Chocolatey -Force

Import AnyPackage.Chocolatey

Import-Module AnyPackage.Chocolatey

Sample usages

Search for a package

Find-Package -Name nodejs

Find-Package -Name firefox*

Install a package

Find-Package nodejs | Install-Package

Install-Package -Name 7zip

Get list of installed packages

Get-Package nodejs

Uninstall a package

Get-Package keepass-plugin-winhello | Uninstall-Package

Manage package sources

Register-PackageSource privateRepo -Provider Chocolatey -Location 'https://somewhere/out/there/api/v2/'
Find-Package nodejs -Source privateRepo | Install-Package
Unregister-PackageSource privateRepo

AnyPackage.Chocolatey integrates with Choco.exe to manage and store source information

Known Issues

Compatibility

AnyPackage.Chocolatey works with PowerShell for both FullCLR/'Desktop' (ex 5.1) and CoreCLR (ex: 7.0.1), though Chocolatey itself still requires FullCLR.

Users must upgrade to v0.1.0 or higher of this provider module prior to the release of Chocolatey v2 to ensure continued compatibility.

Save a package

Save-Package is not supported with the AnyPackage.Chocolatey provider, due to Chocolatey not supporting package downloads without special licensing.

Legal and Licensing

AnyPackage.Chocolatey is licensed under the MIT license.