Feature request: Add the ability to prevent packages from being installed using a 'blacklist' #374
Labels
0 - _Triaging
New tickets that need to be hashed out a bit more before they hit the backlog.
Edition - Business
Enhancement
Enhancements are things that are improvements or features.
Priority_LOW
Represents tickets that are of lower priority, can be taken care of whenever.
Checklist
Is Your Feature Request Related To A Problem? Please describe.
Describe The Solution. Why is it needed?
Similar to the ability to pin a certain version of a package, this feature request suggests the ability to blacklist certain packages:
Conceptual example:
choco disallow bisq*
would addbisq*
to a blacklist. (Note the use of*
as a wildcard here.)choco install bisq
would checkbisq
against the list and find a match, therefore it will fail the installation with an error "package is disallowed" and abort the installation.Additional Context
Josh King suggested on Discord that this could be implemented using a pre-install hook, and I am currently working on a proof of concept for that, in the form of a global pre-install hook.
Related Issues
No response
The text was updated successfully, but these errors were encountered: