Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Created July 14, 2022 17:51
Show Gist options
  • Save jpluimers/a469744d5a4cafa810b31b8c6e164819 to your computer and use it in GitHub Desktop.
Save jpluimers/a469744d5a4cafa810b31b8c6e164819 to your computer and use it in GitHub Desktop.
Restoring zero-sized `.nupkg` files: related https://github.com/chocolatey/choco/discussions/2765
C:\bin\bin>powershell
Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\bin\bin> Get-ChildItem $env:ChocolateyInstall/lib/*/*.nupkg | % {
>> choco install $_.basename --skip-powershell
>> }
>>
Chocolatey v0.11.3
Installing the following packages:
7zip
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path '7zip\7zip.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
7zip.install
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path '7zip.install\7zip.install.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
beyondcompare
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'beyondcompare\beyondcompare.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
choco-cleaner
By installing, you accept licenses for the packages.
choco-cleaner v0.0.8.4 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.
Chocolatey installed 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Warnings:
- choco-cleaner - choco-cleaner v0.0.8.4 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.
Chocolatey v0.11.3
Installing the following packages:
chocolatey-compatibility.extension
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'chocolatey-compatibility.extension\chocolatey-compatibility.
Chocolatey v0.11.3
Installing the following packages:
chocolatey-core.extension
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'chocolatey-core.extension\chocolatey-core.extension.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
chocolatey-dotnetfx.extension
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'chocolatey-dotnetfx.extension\chocolatey-dotnetfx.extension.
Chocolatey v0.11.3
Installing the following packages:
curl
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'curl\curl.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
dotnet4.7.1
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at
https://chocolatey.org/compare
Unable to read package from path 'dotnet4.7.1\dotnet4.7.1.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
dotnetfx
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'dotnetfx\dotnetfx.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
Everything
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'Everything\Everything.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
fiddler
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Did you know the proceeds of Pro (and some proceeds from other
licensed editions) go into bettering the community infrastructure?
Your support ensures an active community, keeps Chocolatey tip-top,
plus it nets you some awesome features!
https://chocolatey.org/compare
Unable to read package from path 'fiddler\fiddler.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
gimp
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'gimp\gimp.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
git
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'git\git.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
git.install
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'git.install\git.install.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
hg
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'hg\hg.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
imagemagick
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'imagemagick\imagemagick.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
imagemagick.app
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'imagemagick.app\imagemagick.app.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
InkScape
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'InkScape\InkScape.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
KB2919355
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'KB2919355\KB2919355.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
KB2919442
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'KB2919442\KB2919442.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
notepadplusplus
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'notepadplusplus\notepadplusplus.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
notepadplusplus.install
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'notepadplusplus.install\notepadplusplus.install.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
paint.net
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'paint.net\paint.net.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
sed
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'sed\sed.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
SourceTree
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'SourceTree\SourceTree.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
sysinternals
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'sysinternals\sysinternals.nupkg'.
Chocolatey v0.11.3
Installing the following packages:
vcredist2010
By installing, you accept licenses for the packages.
Chocolatey installed 0/0 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Unable to read package from path 'vcredist2010\vcredist2010.nupkg'.
PS C:\bin\bin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment