Last active
September 11, 2017 15:57
-
-
Save AnthonyMastrean/5387874 to your computer and use it in GitHub Desktop.
Export installed Chocolatey packages to a packages.config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$packages = Get-ChildItem (Join-Path $ENV:chocolateyinstall 'lib') |
I know this is a very old Gist, but for anyone searching all this command does is output the actual DIR listing to the variable and will not generate the package.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some thoughts...
nuget
can't be used to report the version and string splitting will get hard with package names containing dots. We'll have to unpack every package and inspect it's nuspec XML file directly?shell.application
cannot unzip a non.zip
file?