A Powershell module for viewing Chocolatey package sources
To get the chocolateyInstall.ps1
(main file) of a Chocolatey package, use the command:
Get-ChocolateyPackageSource "vlc" | Write-Host
To prevent the downloaded package files from being cleaned up, pass $true
to the command as well:
Get-ChocolateyPackageSource "vlc" $true | Write-Host
Run: Install-Module -Name chocolateySourceExtensions
or
Clone the code anywhere. In Powershell, write:
Import-Module "<path-to-cloned-directory>/chocolateySourceExtensions.psm1"