4

I'd like to install the package available at chocolatey, but listed as hidden\unlisted:

This package is unlisted and hidden from package listings.

Example of such package:

https://chocolatey.org/packages/napiprojekt

Chocolatey command line cinst napiprojekt yields an error:

Failures - napiprojekt - napiprojekt not installed. The package was not found with the source(s) listed. If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not. Version: "" Source(s): "https://chocolatey.org/api/v2/"

How can I force Chocolatey to install hidden and unlisted package?

3
  • Based on the error, you have not provided Chocolatey, a valid source for the package.
    – Ramhound
    Commented Oct 27, 2016 at 19:08
  • @Ramhound: I want to install it from the official Chocolatey repo. Commented Oct 27, 2016 at 19:12
  • It does not appear to be in that repoistory based on the error that is being generated.
    – Ramhound
    Commented Oct 27, 2016 at 20:30

1 Answer 1

6

To install an unlisted package, you need to know the version you are attempting to install and pass --version ### with choco install pkgname.

However if you read the comments, this package was unlisted because of the VirusTotal scan results - https://www.virustotal.com/en/file/d1baa923cf2a8ed8c93393b74df3a29907da85ccb2eb82795d431f6493f87fca/analysis/1454729257/

It's probably better to understand why something is unlisted first before attempting to install it. Normally packages that are safe or known to be good are not going to be unlisted.

2
  • Another example: maintainers set package as unlisted, when downloads URL stopped working.
    – agabrys
    Commented Oct 28, 2016 at 16:21
  • That is an anti-pattern - with pro licensees the package may still work for them due to the CDN. Commented Oct 28, 2016 at 16:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .